[alsa-devel] Unable to play aplay

vasudha rao vasudha.jrao at gmail.com
Wed Sep 17 09:32:28 CEST 2008


Hi,

> 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..







> ----- Original Message ----
> > From: vasudha rao <vasudha.jrao at gmail.com>
> > To: aggarwal <anuj.aggarwal at gmail.com>
> > Cc: alsa-devel at alsa-project.org
> > Sent: Tuesday, September 16, 2008 17:08:30
> > Subject: Re: [alsa-devel] Unable to play aplay
> >
> > I 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.ko
> >
> > After 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 = 4032c000
> > Bad pte = 5fc3f05f, process = aplay, vm_flags = 800fb, vaddr = 4032d000
> > Unable 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 tainted
> > sp : c3bb3e6c  ip : ff7ffffd  fp : c3bb3e80
> > r10: 4032e000  r9 : c001f380  r8 : c3bb2000
> > r7 : c3449764  r6 : 00000000  r5 : c3bb3ea0  r4 : c34a8c00
> > r3 : 00000093  r2 : 00000013  r1 : 00006000  r0 : c0aa3800
> > Flags: nzcv  IRQs off  FIQs on  Mode SVC_32  Segment user
> > Control: 5317F
> > Table: 2346C000  DAC: 00000015
> > Process aplay (pid: 916, stack limit = 0xc3bb2250)
> > Stack: (0xc3bb3e6c to 0xc3bb4000)
> > 3e60:                            00000000 c3e192ec c3bb3ecc c3bb3e84
> > c0067c58
> > 3e80: bf019030 c346d008 c001f3c0 5fc3f05f 00000000 00000000 c346d008
> > 00000000
> > 3ea0: 00000002 ffffffeb c3d2b040 c3449764 c001f380 c001f3b4 c3bb3fb0
> > 4032e000
> > 3ec0: c3bb3f04 c3bb3ed0 c00293a4 c0067b2c 00022b70 00000000 00000017
> > ffffffff
> > 3ee0: c027900c 00000017 c3bb3fb0 4032e000 40388000 400cb5fc c3bb3fac
> > c3bb3f08
> > 3f00: c00295c0 c00292dc c3bb3f2c c0377f20 ffffffe7 c0844123 00000000
> > c0023ec4
> > 3f20: 400cb5fc c3bb3f40 c3bb3f34 bf018af4 bf018194 c3bb3f5c c3bb3f44
> > c00823d0
> > 3f40: bf018ad0 c0377f20 00022b70 00000004 c3bb3f84 c3bb3f60 c00826ac
> > c00823a4
> > 3f60: 000014c2 ffffffff c3bb3fac c3bb3f78 c01f7ee0 c00275a8 c3d2b080
> > c3d2b154
> > 3f80: 0082ca24 ffffffff 40388734 ffffffff 40389734 00000008 00000004
> > 00000004
> > 3fa0: 00000000 c3bb3fb0 c0023cc8 c0029594 00000000 4032e000 40354000
> > 00000100
> > 3fc0: 00006800 40389734 00000008 00000004 00000004 40388000 400cb5fc
> > 00006dcd
> > 3fe0: 00000100 bea539d0 00000100 4008ce20 20000010 ffffffff 00000000
> > 00000029
> > Backtrace:
> > [] (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 = FFFFFFFF
> > Code: 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
> >
> > $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 ?
>
> > No message here..
> >
> > $cat /proc/asound/pcm
> > 00-00: Atmel AC97 : Atmel AC97 : playback 1
> >
> > Why I am not able to here or record sound..??
> > Where I am doing wrong...??
> >
> > Thank you..
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Thu, Sep 11, 2008 at 10:46 AM, vasudha rao wrote:
> >
> > > 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..
> > >
> > > On Thu, Sep 11, 2008 at 10:07 AM, vasudha rao wrote:
> > >
> > >>
> > >>
> > >>
> > >> 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.Aborted
> > >>
> > >> Where I am doing wrong..??
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> Thank you..
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> On Wed, Sep 10, 2008 at 11:54 PM, anuj aggarwal
> > wrote:
> > >>
> > >>> Vasudha,
> > >>>
> > >>> Could you please check the device nodes in /dev/snd folder? 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 pcmC0D0p
> > >>>
> > >>> If the nodes are not there, you have to create them first before
> trying
> > >>> aplay.
> > >>>
> > >>> Regards,
> > >>> Anuj
> > >>>
> > >>>
> > >>> On Wed, Sep 10, 2008 at 6:16 PM, vasudha rao
> > >>> wrote:
> > >>> >
> > >>> > Hi ,
> > >>> >
> > >>> > I want to play and record audio file in my custom atmel 9263 board
> > >>> running
> > >>> > 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]   : control
> > >>> >
> > >>> > Can you tel me where I am doing wrong..??
> > >>> >
> > >>> > Thanks in advance..
> > >>> > _______________________________________________
> > >>> > Alsa-devel mailing list
> > >>> > Alsa-devel at alsa-project.org
> > >>> > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> Best Regards,
> > >>> Anuj Aggarwal
> > >>>
> > >>
> > >>
> > >
> > _______________________________________________
> > Alsa-devel mailing list
> > Alsa-devel at alsa-project.org
> > 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/
>


More information about the Alsa-devel mailing list