Testing Audio interface from command line

5,901 views
Skip to first unread message

Aashish Patel

unread,
Mar 7, 2014, 6:21:08 AM3/7/14
to panda...@googlegroups.com
Hi,
I am using android 4.4 (Build from ASOP) on my pandaboard ES. I want to test sound (recording and playback) from command line.
I have tried setting all the controls using tinymix and tried testing using tinyplay and tinycap but not getting anything.

Tested Following things:
1) I am getting system sound (all touch sounds ,alarm,notification)
2) tinyplay testaudio.wav (no sound)
testaudio.wav (44.1khz and 48khz)
the 48khz one show playing sample but I am not geting any sound in headset.
then it exits prompting 
error playing sample
3) tinycap /data/Test_cap.wav -d 0 -c 2 -r 48000 -b 16 -C 
(nothing)


I am trying to compile alsa for arm (from its source) using toolchain from codesourcery, able to configure but make fails with error
For alsa-lib
CC=arm-none-eabi-gcc ./configure --prefix=/home/vvdn-64/alsa/alsa-lib-1.0.27.2/utils/ --host=arm-none-linux

in src/control/cards.c
sys/ioctl.h No such file or directory
I tried commenting that file then some other errot pops up , it shows endian.h error.

Please suggest something from which I will be able to test using alsa or tinyalsa

Thanks in advance


Aashish Patel

unread,
Mar 10, 2014, 6:56:41 AM3/10/14
to panda...@googlegroups.com
#Capture volume
tinymix 65 7

tinymix 4 0 # AMIC Equalizer to High-pass 0dB
tinymix 27 120 # AMIC UL Volume to 120
tinymix 54 11 # MUX_UL11 to AMIC0
tinymix 55 12 # MUX_UL10 to AMIC1
tinymix 76 1 # Analog Right Capture Route to Sub Mic
tinymix 77 1 # Analog Left Capture Route to Main mic

tinymix 5 0 # DMIC Equalizer to High-pass 0dB
tinymix 24 120 # DMIC1 UL Volume to 120
tinymix 62 1 # MUX_UL01 to DMIC0 L
tinymix 63 2 # MUX_UL00 to DMIC0 R 


tinymix 0 0 # DL1 Equalizer to Flat response
tinymix 3 0 # Sidetone Equalizer to Flat response
tinymix 6 120 # DL1 Media Playback Volume to 120
tinymix 23 110 # SDT DL Volume to 110
tinymix 34 1 # DL1 PDM Switch to On
tinymix 36 1 # Sidetone Mixer Playback to On
tinymix 51 1 # DL1 Mixer Multimedia
tinymix 67 15 # Headset Playback Volume to 15
tinymix 71 1 # Earphone Playback Switch to On
tinymix 72 1 # Headset Right Playback to On
tinymix 73 1 # Headset Left Playback to On


with the above settings I was able to capture audio but when I try to play to play it, it shows playing sample but I am not getting any sound

root@panda:/ # tinycap /data/filecapamic.wav -d 1 -b 32 -c 2 -r 48000          
Capturing sample: 2 ch, 48000 hz, 32 bit
^CCaptured 656352 frames
root@panda:/ # tinyplay /data/filecapamic.wav -d 0
Playing sample: 2 ch, 48000 hz, 32 bit


Reply all
Reply to author
Forward
0 new messages