ac97: Fix AD1819 volume range (try 2)
PATCH 1/1 ac97: Fix AD1819 volume range (try 2)
AD1819 volume registers can hold extra bits which do not affect the actual volume. Add a res_table to the codec patch to fix the problem. PCM, line and mic volume were tested.
---
sound/pci/ac97/ac97_patch.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
sound/pci/ac97/ac97_patch.c +12 -0
@@ -1380,6 +1380,17 @@ static void ad1888_resume(struct snd_ac9#endif +static const struct snd_ac97_res_table ad1819_restbl[] = { + {AC97_PHONE ,0x9f1f }, + {AC97_MIC ,0x9f1f }, + {AC97_LINE ,0x9f1f }, + {AC97_CD ,0x9f1f }, + {AC97_VIDEO ,0x9f1f }, + {AC97_AUX ,0x9f1f }, + {AC97_PCM ,0x9f1f }, + { }/* terminator */ +}; +int patch_ad1819 (struct snd_ac97 * ac97) {unsigned short scfg;
@@ -1387,6 +1398,7 @@ int patch_ad1819(struct snd_ac97 * ac97)// patch for Analog Devices scfg =snd_ac97_read (ac97,AC97_AD_SERIAL_CFG );snd_ac97_write_cache (ac97,AC97_AD_SERIAL_CFG , scfg |0x7000 );/* select all codecs */ + ac97->res_table = ad1819_restbl;return 0 ; }
Signature · 3 lines
Ville Syrjälä [email protected] http://www.sci.fi/~syrjala/
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
Takashi Iwai
AppliedAt Sun, 03 Sep 2006 05:48:25 +0300,
Quoted 6 lines · [email protected] wrote:
AD1819 volume registers can hold extra bits which do not affect the actual volume. Add a
res_tableto the codec patch to fix the problem. PCM, line and mic volume were tested.Signed-off-by Ville Syrjala <[email protected]>
Applied. Thanks.
Takashi
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642