2011-09-30 19:01:08     Recording Audio Test

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

2011-09-30 19:01:08     Recording Audio Test

Armando Lopez (MEXICO)

Message: 103662   

 

hello!

 

well, i have a problem. i can't enable the mic, i used the EXT-BF5xx-AUDIO blackfin extender board with the TCM-BF518

 

i used this toolchain:

 

blackfin-toolchain-2010R1-RC4

 

blackfin-toolchain-elf-gcc-4.3-2010R1-RC4

 

blackfin-toolchain-uclibc-defaul-2010R1-RC4

 

i follow this steps:

 

root : />modprobe spi_bfin5xx

 

root : />modprobe snd-ad183x

 

root : />modprobe snd-pcm-oss

 

root:/> amixer                                                                

Simple mixer control 'Playback Deemphasis',0                                  

  Capabilities: enum                                                          

  Items: 'None' '44.1kHz' '32kHz' '48kHz'                                     

  Item0: '48kHz'                                                              

Simple mixer control 'ADC High Pass Filter',0                                 

  Capabilities: pswitch pswitch-joined                                        

  Playback channels: Mono                                                     

  Mono: Playback [on]                                                         

Simple mixer control 'ADC1',0                                                 

  Capabilities: pswitch                                                       

  Playback channels: Front Left - Front Right                                 

  Mono:                                                                       

  Front Left: Playback [on]                                                   

  Front Right: Playback [on]                                                  

Simple mixer control 'ADC2',0                                                 

  Capabilities: pswitch                                                       

  Playback channels: Front Left - Front Right                                 

  Mono:                                                                       

  Front Left: Playback [on]                                                   

  Front Right: Playback [on]                                                  

Simple mixer control 'DAC1',0                                                 

  Capabilities: volume pswitch                                                

  Playback channels: Front Left - Front Right                                 

  Capture channels: Front Left - Front Right                                  

  Limits: 0 - 1023                                                            

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

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

Simple mixer control 'DAC2',0                                                 

  Capabilities: volume pswitch                                                

  Playback channels: Front Left - Front Right                                 

  Capture channels: Front Left - Front Right                                  

  Limits: 0 - 1023                                                            

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

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

Simple mixer control 'DAC3',0                                                 

  Capabilities: volume pswitch                                                

  Playback channels: Front Left - Front Right                                 

  Capture channels: Front Left - Front Right                                  

  Limits: 0 - 1023                                                            

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

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

 

root:/> lsmod                                                                 

Module                        Size    Used by    Not tainted                          

snd_pcm_oss              24806  0                                               

snd_mixer_oss            9523    1 snd_pcm_oss                                   

snd_ad183x                 809     0                                               

snd_soc_bf5xx_tdm     1809    1 snd_ad183x                                    

snd_soc_ad183x          7925    1 snd_ad183x                                    

snd_bf5xx_tdm            1741    1 snd_ad183x                                    

snd_soc_bf5xx_sport   9244    2 snd_soc_bf5xx_tdm,snd_bf5xx_tdm               

snd_soc_core              31222  4 snd_ad183x,snd_soc_bf5xx_tdm,snd_soc_ad183x,sndm

snd_pcm                     37710  3 snd_pcm_oss,snd_bf5xx_tdm,snd_soc_core        

snd_page_alloc            2677    1 snd_pcm                                       

snd_timer                    11500  1 snd_pcm                                       

snd                             29785  5 snd_pcm_oss,snd_mixer_oss,snd_soc_core,snd_pcm,r

soundcore                   3223    1 snd                                           

spi_bfin5xx                  7137    0

 

 

 

root:/proc> cat asound/cards                                                  

0 [bf5xxad183x    ]: AD183X - bf5xx_ad183x                                   

                      bf5xx_ad183x (AD183X)

 

 

root:/> arecord -l                                                            

**** List of CAPTURE Hardware Devices ****                                    

card 0: bf5xxad183x [bf5xx_ad183x], device 0: AD183X AD183X-0 []              

  Subdevices: 1/1                                                             

  Subdevice #0: subdevice #0

 

root:/> cat /proc/asound/pcm                                                  

00-00: AD183X AD183X-0 :  : playback 1 : capture 1

 

root:/> tone                                                                  

TONE: generating sine wave at 1000 Hz...

 

and i can hear the sound. everthing seems fine.

 

but when i used:

 

root:/> arecord -f cd -v hello.wav                                            

Recording WAVE 'hello.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

Plug PCM: Rate conversion PCM (48000, sformat=S32_LE)                         

Its setup is:                                                                 

  stream       : CAPTURE                                                      

  access       : RW_INTERLEAVED                                               

  format       : S16_LE                                                       

  subformat    : STD                                                          

  channels     : 2                                                            

  rate         : 44100                                                        

  exact rate   : 44100 (44100/1)                                              

  msbits       : 16                                                           

  buffer_size  : 3763                                                         

  period_size  : 940                                                          

  period_time  : 21333                                                        

  tstamp_mode  : NONE                                                         

  period_step  : 1                                                            

  avail_min    : 940                                                          

  period_event : 0                                                            

  start_threshold  : 1                                                        

  stop_threshold   : 3763                                                     

  silence_threshold: 0                                                        

  silence_size : 0                                                            

  boundary     : 986447872                                                    

Slave: Mmap emulation PCM                                                     

Its setup is:                                                                 

  stream       : CAPTURE                                                      

  access       : MMAP_INTERLEAVED                                             

  format       : S32_LE                                                       

  subformat    : STD                                                          

  channels     : 2                                                            

  rate         : 48000                                                        

  exact rate   : 48000 (48000/1)                                              

  msbits       : 32                                                           

  buffer_size  : 4096                                                         

  period_size  : 1024                                                         

  period_time  : 21333                                                        

  tstamp_mode  : NONE                                                         

  period_step  : 1                                                            

  avail_min    : 1024                                                         

  period_event : 0                                                            

  start_threshold  : 1                                                        

  stop_threshold   : 4096                                                     

  silence_threshold: 0                                                        

  silence_size : 0                                                            

  boundary     : 1073741824                                                   

Slave: Hardware PCM card 0 'bf5xx_ad183x' device 0 subdevice 0                

Its setup is:                                                                 

  stream       : CAPTURE                                                      

  access       : RW_INTERLEAVED                                               

  format       : S32_LE                                                       

  subformat    : STD                                                          

  channels     : 2                                                            

  rate         : 48000                                                        

  exact rate   : 48000 (48000/1)                                              

  msbits       : 32                                                           

  buffer_size  : 4096                                                         

  period_size  : 1024                                                         

  period_time  : 21333                                                        

  tstamp_mode  : NONE                                                         

  period_step  : 1                                                            

  avail_min    : 1024                                                         

  period_event : 0                                                            

  start_threshold  : 1                                                        

  stop_threshold   : 4096                                                     

  silence_threshold: 0                                                        

  silence_size : 0                                                            

  boundary     : 1073741824                                                   

snd_pcm_update_hw_ptr0: 6 callbacks suppressed                                

^CAborted by signal Interrupt...                                              

root:/> aplay hello.wav                                                       

Playing WAVE 'hello.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo 

snd_pcm_update_hw_ptr0: 6 callbacks suppressed

 

i can't hear nothing!

 

i used:

 

root:/> arecord -f cd | aplay &                                               

[1] 249 arecord -f cd                                                         

root:/> Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Ste

reo                                                                           

Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo     

snd_pcm_update_hw_ptr0: 10 callbacks suppressed                               

snd_pcm_update_hw_ptr0: 11 callbacks suppressed                               

snd_pcm_update_hw_ptr0: 10 callbacks suppressed                               

snd_pcm_update_hw_ptr0: 10 callbacks suppressed                               

fg                                                                            

snd_pcm_update_hw_ptr0: 10 callbacks suppressed                               

^CAborted by signal Interrupt...                                            

Aborted by signal Interrupt...

 

but not hear nothing!

 

and

 

root:/> mixer                                                                 

Usage: mixer {  } <value>                                                     

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

root:/> mixer +rec mic                                                        

Invalid recording source mic                                                  

root:/> vrec -w|vplay                                                         

Recording WAVE : Speed 8000 Hz Mono ...                                       

Playing WAVE : Speed 8000 Hz Mono ...                                         

^C                                                                            

 

so i can hear a level very low noise, but not my voice.

 

and i don't know what to do.

 

any suggestions?

 

Best Regards

 

Armando.

QuoteReplyEditDelete

 

 

2011-10-02 22:35:42     Re: Recording Audio Test

Aaron Wu (CHINA)

Message: 103685   

 

Could you check if you have microphone installed on your system? And check if the switch jumpers for Microphone is properly set if there is any. From your log the driver works fine, for schematic and detailed information of your add on card please search in https://blackfin.uclinux.org/gf/project/stamp/frs

QuoteReplyEditDelete

 

 

2011-10-03 13:34:44     Re: Recording Audio Test

Armando Lopez (MEXICO)

Message: 103700   

 

hello

 

how i can check if i have microphone installed on my system?

 

i  already check the schematic and everything seems fine

 

thanks

 

regards.

 

Armando

QuoteReplyEditDelete

 

 

2011-10-04 01:54:23     Re: Recording Audio Test

Aaron Wu (CHINA)

Message: 103703   

 

Assume you are using the AD1836 add on audio card, schematic attached. The pink connector J4 is for microphone connection.

 

I did not see any on board microphone, so you are supposed to connect your own one for recording. If you have connected an external microphone of your own, speak to it and record, but hear nothing when playing back, first try adjust HDR1 setting for a higher preamp gain and try again.

 

If this does not work you may want to set up a scope to probe if there is any waveform on PIN 1 and 2 of HDR3 when setting the pre-amp gain to 20 or 40dB and speaking to the microphone.

 

If none of the above help you may try to hold a tweezer by hand , keep touching it to any terminal of L1 and L2, and recording, this will introduce some noise into the circuit. During playing back if you could hear some noise then the board and the driver works, check if your microphone is OK.

 

AD1836AZ_sch_July_15_2008.pdf

QuoteReplyEditDelete

Outcomes