Sound device access causing kernel crash on SAM9263

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 19, 2009 at 6:45 PM, John Martindale
<jm at practicalcontrol.com> wrote:
> Hi all,
>
> I'm trying to port pjsip (version 1.4.5) to an embedded target - AT91SAM9263
> Evaluation Board - which has a built in AC97 codec.

[snip]

>
> So...
> arecord works (finally, after much hacking!), if I supply parameters
> -fS16_LE -c2 tmp.wav (stereo, 16bit)
> aplay works, if I play something recorded as above - e.g. mono recordings
> are refused
>

So that's probably the reason, i.e. the device only wants to work with
stereo. Try running pjsua with the following options and ee if it
works:

 $ pjsua --stereo --playback-dev=3 --capture-dev=3

You may also need to set --clock-rate and --snd-clock-rate to 8000 to
minimize resampling.

Cheers
 Benny

> Using pjsip-apps/bin/samples/<platform>/auddemo:
> l (List Devices) comes up with the following
>   0: PA [Atmel AC97: Atmel AC97 (hw:0,0)] (2/2)
>   1: PA [dmix] (0/2)
>   2: PA [default] (2/2)
>   3: PA [/dev/dsp] (16/16)
>
> If I do 't 3 3 8000 10 2', everything is OK
> If I do 'p 3 tmp.wav', eveything is OK
> If I use device 1 for the test it complains about number of channels (I
> guess that's the 0 in 0/2)
> If I use device 0 or 2, I get a kernel Oops:
>
> [ 3456.950000] Unable to handle kernel paging request at virtual address
> 33cd87fe
> [ 3456.950000] pgd = c3b54000
> [ 3456.960000] [33cd87fe] *pgd=00000000
> [ 3456.960000] Internal error: Oops: 1 [#1] PREEMPT
> [ 3456.960000] Modules linked in: ext3 jbd rfcomm hidp l2cap bluetooth
> [ 3456.960000] CPU: 0    Not tainted  (2.6.28 #1)
> [ 3456.960000] PC is at set_page_dirty+0x24/0xbc
> [ 3456.960000] LR is at set_page_dirty_balance+0x18/0x48
> <lots more debug - not sure if any of it helps here>
>
> Using the pjsip demo app produces a similar kernel error after printing:
> 10:54:34.373  pjsua_media.c  Opening sound device PCM at 16000/1/20ms
>
>
> Practical Control Ltd
> 448 Brightside Lane
> Sheffield
> S9 2SP
> T: 0114 2561888
> F: 0114 2617052
> www.practicalcontrol.com
>
> Registered in England: 4117809
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> This message contains confidential information and is intended only for the
> individual named. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and delete
> this e-mail from your system. If you are not the intended recipient you are
> notified that disclosing, copying, distributing or taking any action in
> reliance on the contents of this information is strictly prohibited.
>
> Any views or opinions presented in this email are solely those of the author
> and do not necessarily represent those of the company. Employees of
> Practical Control are expressly required not to make defamatory statements
> and not to infringe or authorise any infringement of copyright or any other
> legal right by email communications. Any such communication is contrary to
> company policy and outside the scope of the employment of the individual
> concerned. The company will not accept any liability in respect of such
> communication, and the employee responsible will be personally liable for
> any damages or other liability arising.
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>



-- 
Best regards,

 Benny



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux