* Re: es1968 - AC97 debugged
[not found] <20030205184042.5a4c6766.046-136912@telia.com>
@ 2003-02-05 17:52 ` Takashi Iwai
0 siblings, 0 replies; only message in thread
From: Takashi Iwai @ 2003-02-05 17:52 UTC (permalink / raw)
To: Voluspa; +Cc: alsa-user, alsa-devel
At Wed, 5 Feb 2003 18:40:42 +0100,
Voluspa wrote:
>
>
> By deleting one test done to the ac97 codec, the es1968 driver loads (and works). With this I've reached the end of my debugging capabilities:
ah, thanks!
this is something what i've already seen on the kernel oss driver, but
didn't know that it actually affects to alsa driver.
perhaps the easy and general fix would be to prevent reading
AC97_EXTENDED_MID on this codec chip.
could you tell me which ac97 codec is detected on your machine?
please check /proc/asound/card0/ac97#0.
thanks,
Takashi
> --- alsa-driver-0.9.0rc6/alsa-kernel/pci/ac97/ac97_codec.c Wed Oct 30 15:20:08 2002
> +++ debug-alsa-driver-0.9.0rc6/alsa-kernel/pci/ac97/ac97_codec.c Wed Feb 5 18:10:11 2003
> @@ -1534,16 +1534,11 @@
> /* the REC_GAIN register is used for tests */
> end_time = jiffies + HZ;
> do {
> - unsigned short ext_mid;
>
> /* use preliminary reads to settle the communication */
> snd_ac97_read(ac97, AC97_RESET);
> snd_ac97_read(ac97, AC97_VENDOR_ID1);
> snd_ac97_read(ac97, AC97_VENDOR_ID2);
> - /* modem? */
> - ext_mid = snd_ac97_read(ac97, AC97_EXTENDED_MID);
> - if (ext_mid != 0xffff && (ext_mid & 1) != 0)
> - goto __access_ok;
> /* test if we can write to the record gain volume register */
> snd_ac97_write_cache(ac97, AC97_REC_GAIN, 0x8a05);
> if ((err = snd_ac97_read(ac97, AC97_REC_GAIN)) == 0x8a05)
>
> Regards,
> Mats Johannesson
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Alsa-user mailing list
> Alsa-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/alsa-user
>
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-05 17:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20030205184042.5a4c6766.046-136912@telia.com>
2003-02-05 17:52 ` es1968 - AC97 debugged 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.