Commit 3ae5f36a authored by Krzysztof Helt's avatar Krzysztof Helt Committed by Jaroslav Kysela

[ALSA] opti93x: fix sound ouput for Opti930

This patch fixes silenced output from the Opti930.
Signed-off-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Acked-by: default avatarRene Herman <rene.herman@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 38f58227
...@@ -491,16 +491,9 @@ static int __devinit snd_opti9xx_configure(struct snd_opti9xx *chip) ...@@ -491,16 +491,9 @@ static int __devinit snd_opti9xx_configure(struct snd_opti9xx *chip)
break; break;
#else /* OPTi93X */ #else /* OPTi93X */
case OPTi9XX_HW_82C930:
case OPTi9XX_HW_82C931: case OPTi9XX_HW_82C931:
case OPTi9XX_HW_82C933: case OPTi9XX_HW_82C933:
snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(6), 0x02, 0x03); /*
snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(3), 0x00, 0xff);
snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(4), 0x10 |
(chip->hardware == OPTi9XX_HW_82C930 ? 0x00 : 0x04),
0x34);
snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(5), 0x20, 0xbf);
/*
* The BTC 1817DW has QS1000 wavetable which is connected * The BTC 1817DW has QS1000 wavetable which is connected
* to the serial digital input of the OPTI931. * to the serial digital input of the OPTI931.
*/ */
...@@ -510,6 +503,13 @@ static int __devinit snd_opti9xx_configure(struct snd_opti9xx *chip) ...@@ -510,6 +503,13 @@ static int __devinit snd_opti9xx_configure(struct snd_opti9xx *chip)
* or digital input signal. * or digital input signal.
*/ */
snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(26), 0x01, 0x01); snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(26), 0x01, 0x01);
case OPTi9XX_HW_82C930: /* FALL THROUGH */
snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(6), 0x02, 0x03);
snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(3), 0x00, 0xff);
snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(4), 0x10 |
(chip->hardware == OPTi9XX_HW_82C930 ? 0x00 : 0x04),
0x34);
snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(5), 0x20, 0xbf);
break; break;
#endif /* OPTi93X */ #endif /* OPTi93X */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment