2010-11-18 08:12:18 Alsa driver issue
Shyam sundar (INDIA)
Message: 95944
Hello world,
I am using Alsa 1.0.18 on BF537 board.
When I try to list the sound cards on the board,I do get the following message
root:/> aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: XE3005 [SEMTECH's XE3005], device 0: XE3005PCM0 [XE3005PCM0]
Subdevices: 1/1
Subdevice #0: subdevice #0
When I give the following command, the sound card fails to open
root:/> aplay -D "XE3005"
In aplay: default pcm chosen is XE3005, calling pcm_open
ALSA lib ../../../alsa-lib-1.0.18/src/pcm/pcm.c:2202:(snd_pcm_open_noupdate) Unknown PCM XE3005
aplay: main:552: audio open error: No such file or directory
But when I give the following command, the sound card works
root:/> aplay -D "hw:0,0"
In aplay: default pcm chosen is hw:0,0, calling pcm_open
^CAborted by signal Interrupt...
root:/> aplay -D "plughw:0,0"
In aplay: default pcm chosen is plughw:0,0, calling pcm_open
^CAborted by signal Interrupt...
What could be the problem?
QuoteReplyEditDelete
2010-11-18 08:19:38 Alsa driver issue
Adam Rosenberg (UNITED STATES)
Message: 95945 Shyam,
You would need to setup an alias for XE3005 to hw:0,0,0 in the asound.conf
Details here: alsa.opensrc.org/.asoundrc
-Adam
QuoteReplyEditDelete
2010-11-18 09:31:17 Re: Alsa driver issue
Shyam sundar (INDIA)
Message: 95947
Thanks Adam!
That helped me.
Can you please let me know how can I set the sound card as default sound card?
According to the link, alsa.opensrc.org/.asoundrc
I am suppose to add a line
pcm.!default XE3005
But I am not able to locate.asoundrc file
QuoteReplyEditDelete
2010-11-18 09:33:52 Re: Alsa driver issue
Shyam sundar (INDIA)
Message: 95948
Oooops got the solution !!!
QuoteReplyEditDelete
2010-11-18 09:40:42 Re: Alsa driver issue
Adam Rosenberg (UNITED STATES)
Message: 95949 Shyam,
You can create a file called /etc/asound.conf and it will be found by
Alsa. There is also a .conf file that gets installed to
usr/share/alsa/cards by the Alsa lib. You can find the source of that
file in uclinux-dist/lib/alsa-lib/alsa-lib-1.0.XX/src/conf/cards
What was your solution?
Thanks,
Adam
QuoteReplyEditDelete
2010-11-18 23:48:44 Re: Alsa driver issue
Shyam sundar (INDIA)
Message: 95967
Hi Adam,
Thanks for the help !
In the file,uClinux-dist/lib/alsa-lib/alsa-lib-1.0.18/src/conf/pcm/default.conf
I replaced contents of the file with the following lines
pcm.XE3005 {
type hw
card 0
device 0
}
pcm.!default XE3005
QuoteReplyEditDelete
2010-11-18 23:52:14 Re: Alsa driver issue
Shyam sundar (INDIA)
Message: 95968
And copied the default.conf as /etc/asound.conf !!