Unable to play aplay
HI!
----- Original Message ----
Quoted 92 lines
From: vasudha rao <[email protected]>
To: aggarwal <[email protected]>
Cc: [email protected]
Sent: Tuesday, September 16, 2008 17:08:30
Subject: Re: [alsa-devel] Unable to play aplayI inserted modules to my linux kernel (2.6.20)like..
$insmod snd.ko
$insmod snd-timer.ko
$insmod snd-page-alloc.ko
$insmod snd-pcm.ko
$insmod ac97_bus.ko
$insmod snd-ac97-codec.ko
$insmod snd-at91-ac97.koAfter this, I am getting,
$aplay
No error messages..
$aplay laughter.wav
Playing WAVE 'laughter.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono Bad pte =5fc3e05f, process = aplay,vm_flags= 800fb, vaddr =4032c000Bad pte =5fc3f05f, process = aplay,vm_flags= 800fb, vaddr =4032d000Unable to handle kernel paging request at virtual address ff800001 pgd = c346c000 [ff800001] *pgd=00000000 Internal error: Oops: 1 [#1] Modules linked in: snd_at91_ac97 snd_ac97_codec ac97_bus snd_pcm snd_page_alloc snd_timer snd CPU: 0 PC is at snd_pcm_mmap_data_nopage+0xc4/0xe8 [snd_pcm] LR is at 0x4032e000 pc : [] lr : [<4032e000>] Not taintedsp :
c3bb3e6cip :ff7ffffdfp :c3bb3e80
r10:4032e000r9 :c001f380r8 :c3bb2000
r7 :c3449764r6 : 00000000 r5 :c3bb3ea0r4 :c34a8c00r3 : 00000093 r2 : 00000013 r1 : 00006000 r0 :c0aa3800
Flags: nzcv IRQs off FIQs on ModeSVC_32Segment user
Control: 5317F
Table: 2346C000 DAC: 00000015
Process aplay (pid: 916, stack limit =0xc3bb2250)Stack: (0xc3bb3e6c to 0xc3bb4000)3e60: 00000000
c3e192ecc3bb3eccc3bb3e84c0067c58
3e80:bf019030c346d008c001f3c05fc3f05f00000000 00000000c346d00800000000
3ea0: 00000002 ffffffebc3d2b040c3449764c001f380c001f3b4c3bb3fb04032e000
3ec0:c3bb3f04c3bb3ed0c00293a4c0067b2c00022b7000000000 00000017 ffffffff
3ee0:c027900c00000017c3bb3fb04032e00040388000400cb5fcc3bb3facc3bb3f08
3f00:c00295c0c00292dcc3bb3f2cc0377f20ffffffe7c084412300000000c0023ec4
3f20:400cb5fcc3bb3f40c3bb3f34bf018af4bf018194c3bb3f5cc3bb3f44c00823d0
3f40:bf018ad0c0377f2000022b7000000004c3bb3f84c3bb3f60c00826acc00823a4
3f60:000014c2ffffffffc3bb3facc3bb3f78c01f7ee0c00275a8c3d2b080c3d2b154
3f80:0082ca24ffffffff 40388734 ffffffff 40389734 00000008 00000004 00000004
3fa0: 00000000c3bb3fb0c0023cc8c0029594000000004032e00040354000 00000100
3fc0: 00006800 40389734 00000008 00000004 00000004 40388000400cb5fc00006dcd
3fe0: 00000100bea539d0000001004008ce2020000010 ffffffff 00000000 00000029Backtrace: [] (snd_pcm_mmap_data_nopage+0x0/0xe8 [snd_pcm]) from [] (__handle_mm_fault+0x13c/0x760)r5 = C3E192EC r4 = 00000000
[] (__handle_mm_fault+0x0/0x760) from [] (do_page_fault+0xd8/0x20c)
[] (do_page_fault+0x0/0x20c) from [] (do_DataAbort+0x3c/0xa0)
[] (do_DataAbort+0x0/0xa0) from [] (ret_from_exception+0x0/0x10)
r8 = 00000004 r7 = 00000004 r6 = 00000008 r5 = 40389734 r4 = FFFFFFFFCode: 1590c00c e10f2000 e3823080 e121f003 (e59c3004)Segmentation fault
$aplay -l
card 0: AC97 [Atmel AC97], device 0: Atmel AC97 [Atmel AC97]
Subdevices: 1/1
Subdevice #0: subdevice #0
Quoted 7 lines
$arecord
ALSA lib pcm_dmix.c:812:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
arecord: main:446: audio open error: Invalid argument$arecord -l
As far as arecord is concerned,check if your codec chip has an ADC, what mixer controls are available for recording? Are u setting them ?
Quoted 148 lines
No message here..
$cat
/proc/asound/pcm
00-00: Atmel AC97 : Atmel AC97 : playback 1Why I am not able to here or record sound..??
Where I am doing wrong...??Thank you..
Quoted 66 lines · vasudha rao
Hi anuj ,
Sorry my mistake..that time I hav not loaded conf files in
/usr/share/.. I loaded now..
So now when I give command like,-------------------------------------------------
$aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AC97 [Atmel AC97], device 0: Atmel AC97 [Atmel AC97]
Subdevices: 1/1
Subdevice #0: subdevice #0
---------------------------------------------------but,aplay not proper,,
----------------------------
$aplay
aplay: main:508: audio open error: Inappropriate ioctl for device
----------------------------Where I am doing wrong..??
Thank you..
Quoted 40 lines · vasudha rao
Hi Anuj,
Nodes were not there before..I created now..
Now when I did $aplay -l ,
I got,**** List of PLAYBACK Hardware Devices ***
*ALSA lib control.c:739:(snd_ctl_open_noupdate) Invalid CTL hw:0
aplay: device_list:208: control open (0): No such file or directory
aplay: conf.c:3083:snd_config_update_free: Assertion `update->count > 0 &&update->finfo' failed.AbortedWhere I am doing wrong..??
Thank you..
On Wed, Sep 10, 2008 at 11:54 PM, anuj aggarwal
Quoted 51 lines · wrote:
Quoted 51 lines
Quoted 51 lines
Vasudha,
Could you please check the device nodes in
/dev/sndfolder? The desired output is:[root@ /home]# ls -l
/dev/snd/crw-rw---- 1 root root 116, 5 Jan 1 00:00 controlC0 crw-rw---- 1 root root 116, 4 Jan 1 00:00 pcmC0D0c crw-rw---- 1 root root 116, 3 Jan 1 00:00 pcmC0D0pIf the nodes are not there, you have to create them first before trying aplay.
Regards,
AnujQuoted 4 lines · vasudha rao
Hi ,
I want to play and record audio file in my custom atmel 9263 board
running
Quoted 23 lines
with linux(2.6.20).
when I tried to play aplay for a wave file, I got$aplay
/home/alarm.wav
ALSA lib pcm.c:1707:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:446: audio open error: No such file or directory$aplay -l
aplay: device_list:187: no soundcards found...$cat
/proc/asound/devices
2: : timer
3: : sequencer
4: [ 0- 0]: digital audio playback
5: [ 0] : controlCan you tel me where I am doing wrong..??
Thanks in advance..
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-develQuoted 7 lines
Quoted 6 lines
Quoted 4 lines
--
Best Regards,
Anuj Aggarwal
Quoted 4 lines
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Get your preferred Email name!
Now you can @ymail.com and @rocketmail.com.
http://mail.promotions.yahoo.com/newdomains/aa/
Hi,
Quoted 1 line
As far as arecord is concerned,check if your codec chip has an ADC, what
mixer controls are available for recording? Are u setting them ?
My codec chip is AD1981B..it is having 2 adc s and 2 dac s..
As I understood ur question, I am using alsamixer for controlling.. In this there is no capture option to control..
Since I am using 2.6.20 linux kernel, which is having in built alsa driver..I inserted these modules only..
Should I cross compile alsa-driver from alsa site and test ??Is this problem related to this..??
I am using alsa for my Atmel's at91sam9263 board..having AC97 based sound card..
What I may do to resolve this ..??
Thank you..
Quoted 265 lines
----- Original Message ----
Quoted 92 lines
From: vasudha rao <[email protected]>
To: aggarwal <[email protected]>
Cc: [email protected]
Sent: Tuesday, September 16, 2008 17:08:30
Subject: Re: [alsa-devel] Unable to play aplayI inserted modules to my linux kernel (2.6.20)like..
$insmod snd.ko
$insmod snd-timer.ko
$insmod snd-page-alloc.ko
$insmod snd-pcm.ko
$insmod ac97_bus.ko
$insmod snd-ac97-codec.ko
$insmod snd-at91-ac97.koAfter this, I am getting,
$aplay
No error messages..
$aplay laughter.wav
Playing WAVE 'laughter.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono Bad pte =5fc3e05f, process = aplay,vm_flags= 800fb, vaddr =4032c000Bad pte =5fc3f05f, process = aplay,vm_flags= 800fb, vaddr =4032d000Unable to handle kernel paging request at virtual address ff800001 pgd = c346c000 [ff800001] *pgd=00000000 Internal error: Oops: 1 [#1] Modules linked in: snd_at91_ac97 snd_ac97_codec ac97_bus snd_pcm snd_page_alloc snd_timer snd CPU: 0 PC is at snd_pcm_mmap_data_nopage+0xc4/0xe8 [snd_pcm] LR is at 0x4032e000 pc : [] lr : [<4032e000>] Not taintedsp :
c3bb3e6cip :ff7ffffdfp :c3bb3e80
r10:4032e000r9 :c001f380r8 :c3bb2000
r7 :c3449764r6 : 00000000 r5 :c3bb3ea0r4 :c34a8c00r3 : 00000093 r2 : 00000013 r1 : 00006000 r0 :c0aa3800
Flags: nzcv IRQs off FIQs on ModeSVC_32Segment user
Control: 5317F
Table: 2346C000 DAC: 00000015
Process aplay (pid: 916, stack limit =0xc3bb2250)Stack: (0xc3bb3e6c to 0xc3bb4000)3e60: 00000000
c3e192ecc3bb3eccc3bb3e84c0067c58
3e80:bf019030c346d008c001f3c05fc3f05f00000000 00000000c346d00800000000
3ea0: 00000002 ffffffebc3d2b040c3449764c001f380c001f3b4c3bb3fb04032e000
3ec0:c3bb3f04c3bb3ed0c00293a4c0067b2c00022b7000000000 00000017 ffffffff
3ee0:c027900c00000017c3bb3fb04032e00040388000400cb5fcc3bb3facc3bb3f08
3f00:c00295c0c00292dcc3bb3f2cc0377f20ffffffe7c084412300000000c0023ec4
3f20:400cb5fcc3bb3f40c3bb3f34bf018af4bf018194c3bb3f5cc3bb3f44c00823d0
3f40:bf018ad0c0377f2000022b7000000004c3bb3f84c3bb3f60c00826acc00823a4
3f60:000014c2ffffffffc3bb3facc3bb3f78c01f7ee0c00275a8c3d2b080c3d2b154
3f80:0082ca24ffffffff 40388734 ffffffff 40389734 00000008 00000004 00000004
3fa0: 00000000c3bb3fb0c0023cc8c0029594000000004032e00040354000 00000100
3fc0: 00006800 40389734 00000008 00000004 00000004 40388000400cb5fc00006dcd
3fe0: 00000100bea539d0000001004008ce2020000010 ffffffff 00000000 00000029Backtrace: [] (snd_pcm_mmap_data_nopage+0x0/0xe8 [snd_pcm]) from [] (__handle_mm_fault+0x13c/0x760)r5 = C3E192EC r4 = 00000000
[] (__handle_mm_fault+0x0/0x760) from [] (do_page_fault+0xd8/0x20c)
[] (do_page_fault+0x0/0x20c) from [] (do_DataAbort+0x3c/0xa0)
[] (do_DataAbort+0x0/0xa0) from [] (ret_from_exception+0x0/0x10)
r8 = 00000004 r7 = 00000004 r6 = 00000008 r5 = 40389734 r4 = FFFFFFFFCode: 1590c00c e10f2000 e3823080 e121f003 (e59c3004)Segmentation fault
$aplay -l
card 0: AC97 [Atmel AC97], device 0: Atmel AC97 [Atmel AC97]
Subdevices: 1/1
Subdevice #0: subdevice #0Quoted 7 lines
$arecord
ALSA lib pcm_dmix.c:812:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
arecord: main:446: audio open error: Invalid argument$arecord -l
As far as arecord is concerned,check if your codec chip has an ADC, what mixer controls are available for recording? Are u setting them ?
Quoted 21 lines
No message here..
$cat
/proc/asound/pcm
00-00: Atmel AC97 : Atmel AC97 : playback 1Why I am not able to here or record sound..??
Where I am doing wrong...??Thank you..
Quoted 5 lines
Quoted 3 lines · vasudha rao
Hi anuj ,
Sorry my mistake..that time I hav not loaded conf files in
/usr/share/.. I
Quoted 30 lines
Quoted 30 lines
loaded now..
So now when I give command like,-------------------------------------------------
$aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AC97 [Atmel AC97], device 0: Atmel AC97 [Atmel AC97]
Subdevices: 1/1
Subdevice #0: subdevice #0
---------------------------------------------------but,aplay not proper,,
----------------------------
$aplay
aplay: main:508: audio open error: Inappropriate ioctl for device
----------------------------Where I am doing wrong..??
Thank you..
Quoted 7 lines · vasudha rao
Hi Anuj,
Nodes were not there before..I created now..
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Now when I did $aplay -l ,
I got,**** List of PLAYBACK Hardware Devices ***
*ALSA lib control.c:739:(snd_ctl_open_noupdate) Invalid CTL hw:0
aplay: device_list:208: control open (0): No such file or directory
aplay: conf.c:3083:snd_config_update_free: Assertion `update->count >0
Quoted 33 lines
Quoted 26 lines
Quoted 26 lines
&&
update->finfo' failed.AbortedWhere I am doing wrong..??
Thank you..
On Wed, Sep 10, 2008 at 11:54 PM, anuj aggarwal
Quoted 6 lines · wrote:
Quoted 6 lines
Quoted 6 lines
Vasudha,
Could you please check the device nodes in
/dev/sndfolder? The desired output is:Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
[root@ /home]# ls -l
/dev/snd/crw-rw---- 1 root root 116, 5 Jan 1 00:00 controlC0 crw-rw---- 1 root root 116, 4 Jan 1 00:00 pcmC0D0c crw-rw---- 1 root root 116, 3 Jan 1 00:00 pcmC0D0pIf the nodes are not there, you have to create them first before
trying
Quoted 46 lines
Quoted 39 lines
Quoted 39 lines
Quoted 39 lines
aplay.
Regards,
AnujQuoted 4 lines · vasudha rao
Hi ,
I want to play and record audio file in my custom atmel 9263 board
running
Quoted 23 lines
with linux(2.6.20).
when I tried to play aplay for a wave file, I got$aplay
/home/alarm.wav
ALSA lib pcm.c:1707:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:446: audio open error: No such file or directory$aplay -l
aplay: device_list:187: no soundcards found...$cat
/proc/asound/devices
2: : timer
3: : sequencer
4: [ 0- 0]: digital audio playback
5: [ 0] : controlCan you tel me where I am doing wrong..??
Thanks in advance..
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-develQuoted 7 lines
Quoted 6 lines
Quoted 4 lines
--
Best Regards,
Anuj AggarwalQuoted 4 lines
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-develGet your preferred Email name!
Now you can @ymail.com and @rocketmail.com.
http://mail.promotions.yahoo.com/newdomains/aa/