aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zary <linux@rainbow-software.org>2012-07-16 02:30:18 -0400
committerTakashi Iwai <tiwai@suse.de>2012-07-16 05:24:05 -0400
commitb4e2a16f992288f1c5cddda1948c53ba3dde9cb3 (patch)
treedfc8185f1afcc49f7b83b25bc89898173bfa40be
parentca3273fb594ae4e953042c956eb40141ba46ad2c (diff)
ALSA: wss_lib: Fix resume on Yamaha OPL3-SAx
Yamaha OPL3-SAx chips don't resume properly when playback is running - garbage is played after resume. Restoring the CS4231_PLAYBK_FORMAT register last fixes the problem. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/isa/wss/wss_lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/isa/wss/wss_lib.c b/sound/isa/wss/wss_lib.c
index 00ca9fc4de0..360b08b03e1 100644
--- a/sound/isa/wss/wss_lib.c
+++ b/sound/isa/wss/wss_lib.c
@@ -1656,6 +1656,10 @@ static void snd_wss_resume(struct snd_wss *chip)
1656 break; 1656 break;
1657 } 1657 }
1658 } 1658 }
1659 /* Yamaha needs this to resume properly */
1660 if (chip->hardware == WSS_HW_OPL3SA2)
1661 snd_wss_out(chip, CS4231_PLAYBK_FORMAT,
1662 chip->image[CS4231_PLAYBK_FORMAT]);
1659 spin_unlock_irqrestore(&chip->reg_lock, flags); 1663 spin_unlock_irqrestore(&chip->reg_lock, flags);
1660#if 1 1664#if 1
1661 snd_wss_mce_down(chip); 1665 snd_wss_mce_down(chip);