* [patch] ac97_codec(modem): MC97 registers reset.
@ 2005-04-05 0:54 Sasha Khapyorsky
2005-04-07 19:24 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Sasha Khapyorsky @ 2005-04-05 0:54 UTC (permalink / raw)
To: tiwai, perex, alsa-devel
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.
Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
Index: alsa-kernel/pci/ac97/ac97_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v
retrieving revision 1.180
diff -u -b -B -r1.180 ac97_codec.c
--- alsa-kernel/pci/ac97/ac97_codec.c 29 Mar 2005 15:33:28 -0000 1.180
+++ alsa-kernel/pci/ac97/ac97_codec.c 2 Apr 2005 22:44:12 -0000
@@ -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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [patch] ac97_codec(modem): MC97 registers reset.
2005-04-05 0:54 [patch] ac97_codec(modem): MC97 registers reset Sasha Khapyorsky
@ 2005-04-07 19:24 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2005-04-07 19:24 UTC (permalink / raw)
To: Sasha Khapyorsky; +Cc: perex, alsa-devel
At Tue, 05 Apr 2005 03:54:47 +0300,
Sasha Khapyorsky wrote:
>
> 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.
>
> Signed-off-by: Sasha Khapyorsky <sashak@smlink.com>
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-07 19:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-05 0:54 [patch] ac97_codec(modem): MC97 registers reset Sasha Khapyorsky
2005-04-07 19:24 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.