* Alsa update in mainline broke ATI-IXP sound driver
@ 2006-06-25 19:39 Andi Kleen
2006-06-26 10:11 ` Takashi Iwai
0 siblings, 1 reply; 9+ messages in thread
From: Andi Kleen @ 2006-06-25 19:39 UTC (permalink / raw)
To: perex; +Cc: alsa-devel, linux-kernel, tiwai
Since I updated an ATI x86-64 box to 2.6.17-git6 sound doesn't work anymore.
I just get
ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:955:(snd_func_refer) error evaluating name
ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
no matter how often I try. OSS clients also don't seem to work.
(in older kernels it sometimes didn't work on first try after boot, now it doesn't work
at all)
The module loaded ok:
snd_pcm_oss 39328 0
snd_mixer_oss 14784 1 snd_pcm_oss
snd_atiixp 16536 0
snd_ac97_codec 97980 1 snd_atiixp
snd_ac97_bus 2688 1 snd_ac97_codec
snd_pcm 72328 3 snd_pcm_oss,snd_atiixp,snd_ac97_codec
snd_timer 19784 1 snd_pcm
snd_page_alloc 7824 2 snd_atiixp,snd_pcm
snd 49280 6 snd_pcm_oss,snd_mixer_oss,snd_atiixp,snd_ac97_codec,snd_pcm,snd_timer
00:14.5 Multimedia audio controller: ATI Technologies Inc IXP SB400 AC'97 Audio Controller
I can't find any output from alsa in the kernel log except for
PCI: Enabling device 0000:00:14.5 (0000 -> 0002)
ACPI: PCI Interrupt 0000:00:14.5[B] -> GSI 17 (level, low) -> IRQ 217
when restarting rcalsasoudn
User land is from SUSE 10.0
-Andi
config:
#
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_SND_DYNAMIC_MINORS is not set
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
#
# Generic devices
#
CONFIG_SND_MPU401_UART=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_AC97_BUS=m
# CONFIG_SND_DUMMY is not set
CONFIG_SND_VIRMIDI=m
# CONFIG_SND_MTPAV is not set
CONFIG_SND_SERIAL_U16550=m
CONFIG_SND_MPU401=m
#
# PCI devices
#
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
CONFIG_SND_ATIIXP=m
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alsa update in mainline broke ATI-IXP sound driver
2006-06-25 19:39 Alsa update in mainline broke ATI-IXP sound driver Andi Kleen
@ 2006-06-26 10:11 ` Takashi Iwai
2006-06-26 10:26 ` Andi Kleen
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Takashi Iwai @ 2006-06-26 10:11 UTC (permalink / raw)
To: Andi Kleen; +Cc: perex, alsa-devel, linux-kernel
At Sun, 25 Jun 2006 21:39:35 +0200,
Andi Kleen wrote:
>
>
> Since I updated an ATI x86-64 box to 2.6.17-git6 sound doesn't work anymore.
>
> I just get
>
> ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
> ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
(snip)
> User land is from SUSE 10.0
First check /proc/asound/cards after loading snd-atiixp. If the ATI
IXP entry appears, the device was initialized and set up. If not,
something wrong in the driver initialization.
Then check whether /dev/snd/controlC0 exists. If not, it's likely a
udev thingy. Possibly upgrading udev package might help...
Takashi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alsa update in mainline broke ATI-IXP sound driver
2006-06-26 10:11 ` Takashi Iwai
@ 2006-06-26 10:26 ` Andi Kleen
2006-06-26 16:35 ` Alsa update in mainline broke ATI-IXP sound driver II Andi Kleen
2006-06-26 16:45 ` Andi Kleen
2 siblings, 0 replies; 9+ messages in thread
From: Andi Kleen @ 2006-06-26 10:26 UTC (permalink / raw)
To: Takashi Iwai; +Cc: perex, alsa-devel, linux-kernel
On Monday 26 June 2006 12:11, Takashi Iwai wrote:
> At Sun, 25 Jun 2006 21:39:35 +0200,
> Andi Kleen wrote:
> >
> >
> > Since I updated an ATI x86-64 box to 2.6.17-git6 sound doesn't work anymore.
> >
> > I just get
> >
> > ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
> > ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
> (snip)
> > User land is from SUSE 10.0
>
> First check /proc/asound/cards after loading snd-atiixp. If the ATI
> IXP entry appears, the device was initialized and set up. If not,
> something wrong in the driver initialization.
I'll defer testing because -git9 broke SATA too until after that is fixed.
-Andi (who hasn't had such a low quality kernel for a long time)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alsa update in mainline broke ATI-IXP sound driver II
2006-06-26 10:11 ` Takashi Iwai
2006-06-26 10:26 ` Andi Kleen
@ 2006-06-26 16:35 ` Andi Kleen
2006-06-26 16:45 ` Andi Kleen
2 siblings, 0 replies; 9+ messages in thread
From: Andi Kleen @ 2006-06-26 16:35 UTC (permalink / raw)
To: Takashi Iwai; +Cc: perex, alsa-devel, linux-kernel
On Monday 26 June 2006 12:11, Takashi Iwai wrote:
> At Sun, 25 Jun 2006 21:39:35 +0200,
> Andi Kleen wrote:
> >
> >
> > Since I updated an ATI x86-64 box to 2.6.17-git6 sound doesn't work anymore.
> >
> > I just get
> >
> > ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
> > ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
> (snip)
> > User land is from SUSE 10.0
>
> First check /proc/asound/cards after loading snd-atiixp.
Checking it now. There is no /proc/asound.
% ls /proc/asound
/bin/ls: /proc/asound: No such file or directory
These are my config options
CONFIG_SND=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
# CONFIG_SND_SEQ_DUMMY is not set
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_SND_DYNAMIC_MINORS is not set
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_VERBOSE_PRINTK=y
CONFIG_SND_DEBUG=y
CONFIG_SND_DEBUG_DETECT=y
# CONFIG_SND_PCM_XRUN_DEBUG is not set
#
# Generic devices
#
CONFIG_SND_MPU401_UART=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_AC97_BUS=m
# CONFIG_SND_DUMMY is not set
CONFIG_SND_VIRMIDI=m
# CONFIG_SND_MTPAV is not set
CONFIG_SND_SERIAL_U16550=m
CONFIG_SND_MPU401=m
#
# PCI devices
#
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
CONFIG_SND_ATIIXP=m
> If the ATI
> IXP entry appears, the device was initialized and set up. If not,
> something wrong in the driver initialization.
>
> Then check whether /dev/snd/controlC0 exists. If not, it's likely a
> udev thingy. Possibly upgrading udev package might help...
% ls -l /dev/snd/controlC0
crw------- 1 andi audio 116, 0 2006-06-25 21:38 /dev/snd/controlC0
% grep sound /proc/devices
14 sound
-Andi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alsa update in mainline broke ATI-IXP sound driver II
2006-06-26 10:11 ` Takashi Iwai
2006-06-26 10:26 ` Andi Kleen
2006-06-26 16:35 ` Alsa update in mainline broke ATI-IXP sound driver II Andi Kleen
@ 2006-06-26 16:45 ` Andi Kleen
2006-06-26 17:39 ` Takashi Iwai
2 siblings, 1 reply; 9+ messages in thread
From: Andi Kleen @ 2006-06-26 16:45 UTC (permalink / raw)
To: Takashi Iwai; +Cc: perex, alsa-devel, linux-kernel
On Monday 26 June 2006 12:11, Takashi Iwai wrote:
> At Sun, 25 Jun 2006 21:39:35 +0200,
> Andi Kleen wrote:
> >
> >
> > Since I updated an ATI x86-64 box to 2.6.17-git6 sound doesn't work anymore.
> >
> > I just get
> >
> > ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
> > ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
> (snip)
> > User land is from SUSE 10.0
>
> First check /proc/asound/cards after loading snd-atiixp. If the ATI
> IXP entry appears, the device was initialized and set up. If not,
> something wrong in the driver initialization.
>
> Then check whether /dev/snd/controlC0 exists. If not, it's likely a
> udev thingy. Possibly upgrading udev package might help...
First /proc/asound appeared now - in the first try the modules weren't correctly loaded.
The card is shown there
0 [IXP ]: ATIIXP - ATI IXP
ATI IXP rev 0 with ALC658D at 0xfe029000, irq 217
I added some instrumentation to the driver now and the probe function seems
to run completely - at least it hits its return 0.
The device file is also still there so I don't think udev is to blame.
-Andi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alsa update in mainline broke ATI-IXP sound driver II
2006-06-26 16:45 ` Andi Kleen
@ 2006-06-26 17:39 ` Takashi Iwai
2006-06-26 18:28 ` Andi Kleen
0 siblings, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2006-06-26 17:39 UTC (permalink / raw)
To: Andi Kleen; +Cc: perex, alsa-devel, linux-kernel
At Mon, 26 Jun 2006 18:45:32 +0200,
Andi Kleen wrote:
>
> On Monday 26 June 2006 12:11, Takashi Iwai wrote:
> > At Sun, 25 Jun 2006 21:39:35 +0200,
> > Andi Kleen wrote:
> > >
> > >
> > > Since I updated an ATI x86-64 box to 2.6.17-git6 sound doesn't work anymore.
> > >
> > > I just get
> > >
> > > ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
> > > ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
> > (snip)
> > > User land is from SUSE 10.0
> >
> > First check /proc/asound/cards after loading snd-atiixp. If the ATI
> > IXP entry appears, the device was initialized and set up. If not,
> > something wrong in the driver initialization.
> >
> > Then check whether /dev/snd/controlC0 exists. If not, it's likely a
> > udev thingy. Possibly upgrading udev package might help...
>
> First /proc/asound appeared now - in the first try the modules weren't correctly loaded.
> The card is shown there
>
> 0 [IXP ]: ATIIXP - ATI IXP
> ATI IXP rev 0 with ALC658D at 0xfe029000, irq 217
>
>
> I added some instrumentation to the driver now and the probe function seems
> to run completely - at least it hits its return 0.
>
> The device file is also still there so I don't think udev is to blame.
OK, and still you get the same error like:
ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
...
??
Any change if you set CONFIG_SND_DYNAMIC_MINORS=y ?
Takashi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alsa update in mainline broke ATI-IXP sound driver II
2006-06-26 17:39 ` Takashi Iwai
@ 2006-06-26 18:28 ` Andi Kleen
2006-06-26 18:48 ` Takashi Iwai
0 siblings, 1 reply; 9+ messages in thread
From: Andi Kleen @ 2006-06-26 18:28 UTC (permalink / raw)
To: Takashi Iwai; +Cc: perex, alsa-devel, linux-kernel
> OK, and still you get the same error like:
>
> ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
> ...
> ??
Yes.
> Any change if you set CONFIG_SND_DYNAMIC_MINORS=y ?
With that it finally works. Thanks.
Still can it be fixed?
-Andi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alsa update in mainline broke ATI-IXP sound driver II
2006-06-26 18:28 ` Andi Kleen
@ 2006-06-26 18:48 ` Takashi Iwai
2006-06-29 10:03 ` Andi Kleen
0 siblings, 1 reply; 9+ messages in thread
From: Takashi Iwai @ 2006-06-26 18:48 UTC (permalink / raw)
To: Andi Kleen; +Cc: perex, alsa-devel, linux-kernel
At Mon, 26 Jun 2006 20:28:31 +0200,
Andi Kleen wrote:
>
>
> > OK, and still you get the same error like:
> >
> > ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
> > ...
> > ??
>
> Yes.
>
> > Any change if you set CONFIG_SND_DYNAMIC_MINORS=y ?
>
> With that it finally works. Thanks.
>
> Still can it be fixed?
Well, the bug shall be fixed :)
Unfortunately I cannot reproduce this on my systems that are all based
on SUSE 10.1, and the latest 2.6.17-git works fine even
CONFIG_SND_DYNAMIC_MINORS=n as far as I've tested.
Could you check the strace and what open error occurs?
I suppose it's /dev/snd/controlC0, but don't figure out exactly.
thanks,
Takashi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Alsa update in mainline broke ATI-IXP sound driver II
2006-06-26 18:48 ` Takashi Iwai
@ 2006-06-29 10:03 ` Andi Kleen
0 siblings, 0 replies; 9+ messages in thread
From: Andi Kleen @ 2006-06-29 10:03 UTC (permalink / raw)
To: Takashi Iwai; +Cc: perex, alsa-devel, linux-kernel
On Monday 26 June 2006 20:48, Takashi Iwai wrote:
> At Mon, 26 Jun 2006 20:28:31 +0200,
> Andi Kleen wrote:
> >
> >
> > > OK, and still you get the same error like:
> > >
> > > ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0'
> > > ...
> > > ??
> >
> > Yes.
> >
> > > Any change if you set CONFIG_SND_DYNAMIC_MINORS=y ?
> >
> > With that it finally works. Thanks.
> >
> > Still can it be fixed?
>
> Well, the bug shall be fixed :)
>
> Unfortunately I cannot reproduce this on my systems that are all based
> on SUSE 10.1, and the latest 2.6.17-git works fine even
> CONFIG_SND_DYNAMIC_MINORS=n as far as I've tested.
>
> Could you check the strace and what open error occurs?
> I suppose it's /dev/snd/controlC0, but don't figure out exactly.
Sorry for the delay
(as root) I get
5184 open("/dev/snd/controlC0", O_RDONLY) = -1 EACCES (Permission denied)
5184 open("/dev/snd/controlC1", O_RDONLY) = -1 EACCES (Permission denied)
... (upto 31) ...
5184 open("/dev/sound/dsp", O_WRONLY|O_NONBLOCK) = -1 ENOENT (No such file or d
5184 open("/dev/dsp", O_WRONLY|O_NONBLOCK) = -1 EACCES (Permission denied)
ccontrol0 is
crw------- 1 andi audio 116, 6 2006-06-29 11:49 /dev/snd/controlC0
It also doesn't work as andi
I stuck printks to the EACCES in sound/* and they don't trigger so it must
be somewhere else.
-Andi
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-06-29 10:03 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-25 19:39 Alsa update in mainline broke ATI-IXP sound driver Andi Kleen
2006-06-26 10:11 ` Takashi Iwai
2006-06-26 10:26 ` Andi Kleen
2006-06-26 16:35 ` Alsa update in mainline broke ATI-IXP sound driver II Andi Kleen
2006-06-26 16:45 ` Andi Kleen
2006-06-26 17:39 ` Takashi Iwai
2006-06-26 18:28 ` Andi Kleen
2006-06-26 18:48 ` Takashi Iwai
2006-06-29 10:03 ` Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox