Re: AMD64 / Debian / Sound
On Wed, Mar 09, 2005 at 10:53:20AM -0500, Austin Denyer wrote:
> On Wed, 9 Mar 2005 09:53:03 -0500, lsorense@csclub.uwaterloo.ca (Lennart
> Sorensen) wrote:
>
> > On Wed, Mar 09, 2005 at 09:47:06AM -0500, Austin Denyer wrote:
> > > Modconf did not list either of those drivers.
> > >
> > > Where would I find them?
> >
> > modconf? Whatever is that?
> >
> > i just add snd-intel8x0 to /etc/modules and it works, at least with
> > debian kernel-image builds of 2.6 kernels since they have alsa enabled
> > as modules by default.
>
> OK, I added snd-intel8x0 to /etc/modules:
>
> ================
> ozz@Athlon64:~$ cat /etc/modules
> # /etc/modules: kernel modules to load at boot time.
> #
> # This file should contain the names of kernel modules that are
> # to be loaded at boot time, one per line. Comments begin with
> # a "#", and everything on the line after them are ignored.
>
> forcedeth
> ide-cd
> ide-disk
> ide-generic
> psmouse
> r8169
> sd_mod
> snd-ac97-codec
^--- no need to list this. It will be loaded when needed
automatically.
> snd-mixer-oss
> snd-pcm-oss
> snd-intel8x0
> ozz@Athlon64:~$
> =================
>
> The output of lsmod is as follwos:
>
> =================
> Athlon64:~# lsmod
> Module Size Used by
> ipv6 264232 8
> af_packet 23308 2
> eth1394 21776 0
> aic79xx 260828 0
> ohci1394 33540 0
> ieee1394 372632 2 eth1394,ohci1394
> joydev 11456 0
> usbhid 33600 0
> ehci_hcd 30788 0
> ohci_hcd 21252 0
> st 40996 0
> aic7xxx 180696 0
> sata_nv 9732 0
> libata 42632 1 sata_nv
> ext2 70160 1
> snd_intel8x0 35988 0
> gameport 5120 1 snd_intel8x0
> snd_mpu401_uart 8192 1 snd_intel8x0
> snd_rawmidi 26532 1 snd_mpu401_uart
> snd_seq_device 9164 1 snd_rawmidi
> snd_pcm_oss 56680 0
> snd_pcm 100876 2 snd_intel8x0,snd_pcm_oss
> snd_page_alloc 12944 2 snd_intel8x0,snd_pcm
> snd_timer 24904 1 snd_pcm
> snd_mixer_oss 19520 1 snd_pcm_oss
> tsdev 8576 0
> mousedev 11852 2
> evdev 10944 0
> snd_ac97_codec 73220 1 snd_intel8x0
> snd 56936 9
> snd_intel8x0,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_pcm_oss,snd
> _pcm,snd_timer,snd_mixer_oss,snd_ac97_codec soundcore 11232
> 1 snd sd_mod 21440 0
> scsi_mod 129888 5 aic79xx,st,aic7xxx,libata,sd_mod
> r8169 18436 0
> psmouse 19340 0
> ide_cd 42016 0
> cdrom 39208 1 ide_cd
> forcedeth 18432 0
> genrtc 10068 0
> ext3 119760 7
> jbd 58224 1 ext3
> mbcache 9928 2 ext2,ext3
> ide_generic 1856 0
> ide_disk 20864 11
> amd74xx 14768 1
> ide_core 154336 4 ide_cd,ide_generic,ide_disk,amd74xx
> unix 29696 58
> font 9152 0
> vesafb 6960 0
> cfbcopyarea 4160 1 vesafb
> cfbimgblt 3328 1 vesafb
> cfbfillrect 4352 1 vesafb
> Athlon64:~#
> ===========================
>
> If I try to play a sound file such as an mp3 (I'm testing with aplay) I
> get the following error:
>
> ==========================
> Athlon64:/# aplay test.mp3
> ALSA lib confmisc.c:550:(snd_determine_driver) could not open control
> for card 0
> ALSA lib conf.c:3461:(_snd_config_evaluate) function
> snd_func_card_driver returned error: No such device
> ALSA lib confmisc.c:387:(snd_func_concat) error evaluating strings
> ALSA lib conf.c:3461:(_snd_config_evaluate) function snd_func_concat
> returned error: No such device
> ALSA lib confmisc.c:945:(snd_func_refer) error evaluating name
> ALSA lib conf.c:3461:(_snd_config_evaluate) function snd_func_refer
> returned error: No such device
> ALSA lib conf.c:3930:(snd_config_expand) Evaluate error: No such device
> ALSA lib pcm.c:2068:(snd_pcm_open_noupdate) Unknown PCM default aplay:
> main:508: audio open error: No such device
> Athlon64:/mnt/hdb7/temp/hda3Temp/My Music#
> =========================
>
> Any more clues?
>
> I really do appreciate the help Guys.
Make sure /dev/adsp* and friends exist. If they don't the snddevices
script in alsa-base /usr/share/alsa-base/snddevices will create all the
alsa device nodes if you run it.
Check /proc/asound/cards and see if it actually has recognized any
hardware.
Run lspci -n |grep 0401 and we can see what PCI ID the sound has and
maybe look that up in the driver sources to make sure this really is the
driver you should be using. On my nforce2 I see:
0000:00:05.0 0401: 10de:006b (rev a2)
0000:00:06.0 0401: 10de:006a (rev a1)
Which is the AC97 and the MCP devices (I believe the MCP is the DSP the
nforce and nforce2 have).
I can check the driver in this case doing this:
modinfo snd-intel8x0|grep -i 10de|grep -i 006[ab]
which shows:
alias: pci:v000010DEd0000006Asv*sd*bc*sc*i*
So the snd-intel8x0 knows about pci vendor 000010DE device 0000006A
which matches 10de:006a. Most kernel drivers seem to have such aliases
to help out userspace module loading utilities and such.
Len Sorensen
Reply to: