ac97_codec(modem): MC97 registers reset.
PATCH 1/1 ac97_codec(modem): MC97 registers reset.
Hi,
Actually I don't see any real problem with just AC97_RESET (so this patch is probably optional), but spec (AC97 rev 2.3) recommends to use AC97_EXTENDED_MID for modem codec registers reset and AC97_RESET for audio resisters reset.
Sasha.
Summary: MC97 registers reset
Separated ac97 registers reset for audio and modem (or both) as recommended in AC97 spec.
Index: alsa-kernel/pci/ac97/ac97_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v retrieving revision 1.180
pci/ac97/ac97_codec.c +5 -1
@@ -1872,7 +1872,11 @@ goto __access_ok; } -snd_ac97_write (ac97,AC97_RESET ,0 );/* reset to defaults */ +/* reset to defaults */ +if (!(ac97->scaps &AC97_SCAP_SKIP_AUDIO )) +snd_ac97_write (ac97,AC97_RESET ,0 ); +if (!(ac97->scaps &AC97_SCAP_SKIP_MODEM )) +snd_ac97_write (ac97,AC97_EXTENDED_MID ,0 );if (bus->ops->wait) bus->ops->wait (ac97);else {
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
At Tue, 05 Apr 2005 03:54:47 +0300,
Quoted 11 lines · Sasha Khapyorsky
Hi,
Actually I don't see any real problem with just
AC97_RESET(so this patch is probably optional), but spec (AC97 rev 2.3) recommends to useAC97_EXTENDED_MIDfor modem codec registers reset andAC97_RESETfor audio resisters reset.Sasha.
Quoted 6 lines
Summary: MC97 registers reset
Separated ac97 registers reset for audio and modem (or both) as recommended in AC97 spec.
Signed-off-by Sasha Khapyorsky <[email protected]>
Thanks, all 3 patches are applied to CVS now.
Takashi
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click