em28xx: Fix for KWorld 330U AC97

From: Robert Krakora <rob.krak...@messagenetsystems.com>

Fix for KWorld 330U AC97

Many thanks to Devin and Mauro again!!!

Priority: normal

Signed-off-by: Robert Krakora <rob.krak...@messagenetsystems.com>

diff -r 6896782d783d linux/drivers/media/video/em28xx/em28xx-core.c
--- a/linux/drivers/media/video/em28xx/em28xx-core.c    Wed Jan 14
10:06:12 2009 -0200
+++ b/linux/drivers/media/video/em28xx/em28xx-core.c    Wed Jan 14
12:47:00 2009 -0500
@@ -424,7 +424,7 @@

       xclk = dev->board.xclk & 0x7f;
       if (!dev->mute)
-               xclk |= 0x80;
+               xclk |= EM28XX_XCLK_AUDIO_UNMUTE;

       ret = em28xx_write_reg(dev, EM28XX_R0F_XCLK, xclk);
       if (ret < 0)
@@ -437,6 +437,10 @@
       /* Sets volume */
       if (dev->audio_mode.ac97 != EM28XX_NO_AC97) {
               int vol;
+
+               em28xx_write_ac97(dev, AC97_POWER_DOWN_CTRL, 0x4200);
+               em28xx_write_ac97(dev, AC97_EXT_AUD_CTRL, 0x0031);
+               em28xx_write_ac97(dev, AC97_PCM_IN_SRATE, 0xbb80);

               /* LSB: left channel - both channels with the same level */
               vol = (0x1f - dev->volume) | ((0x1f - dev->volume) << 8);
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to