From: kdag <fu...@gm...> - 2007-05-07 21:44:38
|
Craig thanks for your answer, I will like to know if phps the card is broken or if i need something else loaded since i dont see anything in dmesg related to it. as you can read in my previous post modules are loaded and /dev/dsp is created but everything in every image (new or old with gcc 4 or with gcc 3.4) fails.. i want to be sure that the gpstix audiocard on top of the connex 400mhz is recognized by the kernel, when i insert the modules i see nothing in the log.. any tool, log, module or thing to check so to be sure that the card is ok? i can only listen with headphones to a hiss with silent short cuts every 2 seconds.. we will place a request for 10 more of this unit combinations, if we just manage to get sound to work properly so your help is very much appreciated. thanks, /alejo Message: 6 Date: Mon, 7 May 2007 11:14:28 -0700 From: Craig Hughes <cr...@gu...> Subject: Re: [Gumstix-users] audio anyone? To: "General mailing list for gumstix users." <gum...@li...> Message-ID: <3A9...@gu...> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed I've been working on audio for the last few days, based of 2.6.21 on the verdex branch. My goal is to get ASOC working. I now have ASOC to the same point as where the older ALSA support was, that is, same symptom as what you see below. I've traced into both, and the problem appears to be a mismatch between the "format" that the hardware device registers it's capable of producing (ie 16-bit LE PCM) and what the userspace tries to default to (no idea what this is, or how/where/why it's being set up). The error in userspace occurs when bplay tries to send an ioctl (GET_BLK_SZ or something) to the /dev/dsp device. The kernel does this thing in ALSA where it sets up a mask on a whole bunch of sounds device params (I think intended to represent what the userspace wants), then applies that mask to the hardware capabilities, then checks if anything came out as {empty set} -- ie whether there's any problem with the hardware doing what userspace wants. The part which seems to be failing is that the intersection of (userspace wants) and (hardware provides) for the sound format is {empty set}. I'm not sure why it is that the default doesn't start off as being something which the hardware actually can do... C On May 5, 2007, at 1:22 PM, kdag wrote: > hola, > > so today i tried tha latest svn code for the buildroot. > i made a new image and loaded the sound modules: > > lsmod > snd_pxa2xx_ac97 6124 0 > snd_pxa2xx_pcm 4672 1 snd_pxa2xx_ac97 > snd_ac97_codec 96536 1 snd_pxa2xx_ac97 > ac97_bus 2112 1 snd_ac97_codec > snd_pcm_oss 39200 0 > snd_pcm 62976 4 snd_pxa2xx_ac97,snd_pxa2xx_pcm > ,snd_ac97_codec,snd_pcm_oss > snd_timer 19612 1 snd_pcm > snd_page_alloc 5960 1 snd_pcm > snd_mixer_oss 14784 1 snd_pcm_oss > snd 46028 6 > snd_pxa2xx_ac97,snd_ac97_codec,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer > _oss > soundcore 6652 1 snd > mcf25 197824 0 > cfio 5152 1 mcf25 > af_packet 16996 0 > g_ether 23552 0 > pxa2xx_udc 14436 1 g_ether > gumstix_gadget 1440 1 pxa2xx_udc > l2cap 20128 2 > hci_uart 8188 3 > bluetooth 49184 6 l2cap,hci_uart > proc_gpio 7128 0 > gumstix_bluetooth 1440 1 bluetooth > pxa2xx_cs 3044 1 > pxa2xx_core 10456 1 pxa2xx_cs > pcmcia 25276 1 cfio > pcmcia_core 31432 4 mcf25,cfio,pxa2xx_core,pcmcia > firmware_class 7680 1 pcmcia > smc91x 16392 0 > mii 4768 1 smc91x > gumstix_smc91x 3040 1 smc91x > unix 23592 14 > > but then tried to use the created /dev/dsp got: > > # bplay phone.wav > bplay: /dev/dsp: Invalid argument > > i also tried brec and it failed with the same error, i've read > examples on how to use sound but nothing on troubleshooting, what i > have is a connex+gpstix > > i have tried with svn code and root.fs images from sourceforge. > > the deadline for the porject is approaching and it heavily relays > in the use of the soundcard, i dont want to have to let this > platform aside since i hope this has to be a small issue im unable > by myself to discover, please help me troubleshooting this. > > /a > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users |