2010-02-24 11:14:39     Error in sound input on bf 537 ez-kit using ad1836 drive.

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-02-24 11:14:39     Error in sound input on bf 537 ez-kit using ad1836 drive.

Cícero Faria (BRAZIL)

Message: 86470   

 

Hi,

I want to use the linphone, but I'm having problems with the audio recording.

Only hear the sound I can never send, I use the BF537 EZ-kit.

 

root:/> version

kernel:    Linux release 2.6.28.10-ADI-2009R1, build #46 Tue Feb 23 09:50:45 BRT 2010

toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release 2009R1

 

I can't record sound, using any version of software (OSS or ALSA).

 

let's go ..

 

added support for ad1836 drive and see it in the startup

 

ALSA device list:

  #0: ADI ad1836 at PF4 SPORT0,rx/tx dma ch:3/4,err irq:45

 

root:/proc/asound> ls -l /proc/asound/

lrwxrwxrwx    1 root     root            5 Jan  5 14:04 ad1836 -> card0

dr-xr-xr-x    4 root     root            0 Jan  5 14:04 card0

-r--r--r--    1 root     root            0 Jan  5 14:04 cards

-r--r--r--    1 root     root            0 Jan  5 14:04 devices

dr-xr-xr-x    2 root     root            0 Jan  5 14:04 oss

-r--r--r--    1 root     root            0 Jan  5 14:04 pcm

-r--r--r--    1 root     root            0 Jan  5 14:04 timers

-r--r--r--    1 root     root            0 Jan  5 14:04 version

 

when i run mixer, see it

 

root:/> mixer

Usage: mixer { vol } <value>

  or   mixer { +rec|-rec } <devicename>

 

ok, run

 

root:/> mixer +rec vol

Recording source: vol

 

"ok"

 

run

 

root:/>vrec -w -t 10 test.wav

Recording WAVE : Speed 8000 Hz Mono ...

 

and

 

root:/> vplay test.wav

Playing WAVE : Speed 8000 Hz Mono ...

 

but not hear anything

 

I listen any wav ...

 

root:/> vplay usr/share/sounds/linphone/ringback.wav

Playing WAVE : 16 bit, Speed 8000 Hz Mono ...

 

ok, I hear.

 

and output of amixer is

 

root:/> amixer

Simple mixer control 'Master',0

  Capabilities: pvolume pswitch cswitch

  Playback channels: Front Left - Front Right

  Capture channels: Front Left - Front Right

  Limits: Playback 0 - 1023

  Front Left: Playback 1023 [100%] [on] Capture [on]

  Front Right: Playback 1023 [100%] [on] Capture [on]

Simple mixer control 'Tone Contol ADC High-pass Filter',0

  Capabilities: pswitch pswitch-joined

  Playback channels: Mono

  Mono: Playback [off]

Simple mixer control 'Tone Contol DAC De-emphasis',0

  Capabilities: enum

  Items:

  Item0: '$� '

Simple mixer control 'PCM Capture Differential',0

  Capabilities: pswitch

  Playback channels: Front Left - Front Right

  Mono:

  Front Left: Playback [off]

  Front Right: Playback [off]

 

when run aplay or arecord happens this error ...

 

root:/> aplay usr/share/sounds/linphone/ringback.wav

Playing WAVE 'usr/share/sounds/linphone/ringback.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono

aplay: set_params:965: Unable to install hw params:

ACCESS:  RW_INTERLEAVED

FORMAT:  S16_LE

SUBFORMAT:  STD

SAMPLE_BITS: 16

FRAME_BITS: 16

CHANNELS: 1

RATE: 8000

PERIOD_TIME: (42666 42667)

PERIOD_SIZE: (341 342)

PERIOD_BYTES: (682 684)

PERIODS: (3 5)

BUFFER_TIME: 170625

BUFFER_SIZE: 1365

BUFFER_BYTES: 2730

TICK_TIME: 0

 

root:/> arecord -d 10 a.wav     

Recording WAVE 'a.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono

arecord: set_params:965: Unable to install hw params:

ACCESS:  RW_INTERLEAVED

FORMAT:  U8

SUBFORMAT:  STD

SAMPLE_BITS: 8

FRAME_BITS: 8

CHANNELS: 1

RATE: 8000

PERIOD_TIME: (42666 42667)

PERIOD_SIZE: (341 342)

PERIOD_BYTES: (341 342)

PERIODS: (3 5)

BUFFER_TIME: 170625

BUFFER_SIZE: 1365

BUFFER_BYTES: 1365

TICK_TIME: 0

 

 

thank you =)

QuoteReplyEditDelete

 

 

2010-03-02 01:23:51     Re: Error in sound input on bf 537 ez-kit using ad1836 drive.

Barry Song (CHINA)

Message: 86694   

 

Pls cat /proc/interrupts, check whether there is any interrupt in sport rx while you record.

 

If there are not interrupts, pls check the hardware connection of sport. If there are, pls check the hardware connection of microphone.

Attachments

    Outcomes