Testing microphone and HDMI sound

cat /proc/asound/cards
root@FriendlyARM:~# cat /proc/asound/cards
0 [audiocodec ]: audiocodec – audiocodec
audiocodec
1 [sndhdmi ]: sndhdmi – sndhdmi
sndhdmi
root@FriendlyARM:~# arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: audiocodec [audiocodec], device 0: SUNXI-CODEC sndcodec-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@FriendlyARM:~# arecord -d 10 /tmp/test-mic.wav
Recording WAVE ‘/tmp/test-mic.wav’ : Unsigned 8 bit, Rate 8000 Hz, Mono
arecord: set_params:1233: Sample format non available
Available formats:
– S16_LE
– S24_LE
– S32_LE
– S20_3LE
root@FriendlyARM:~# arecord -vv -fdat foo.wav
Recording WAVE ‘foo.wav’ : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Hardware PCM card 0 ‘audiocodec’ device 0 subdevice 0
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S16_LE
subformat : STD
channels : 2
rate : 48000
exact rate : 48000 (48000/1)
msbits : 16
buffer_size : 24000
period_size : 6000
period_time : 125000
tstamp_mode : NONE
tstamp_type : MONOTONIC
period_step : 1
avail_min : 6000
period_event : 0
start_threshold : 1
stop_threshold : 24000
silence_threshold: 0
silence_size : 0
boundary : 1572864000
appl_ptr : 0
hw_ptr : 0
# + | 02%^C
Aborted by signal Interrupt…
# + | 02%
aplay -l foo.wav

root@FriendlyARM:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: audiocodec [audiocodec], device 0: SUNXI-CODEC sndcodec-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: sndhdmi [sndhdmi], device 0: SUNXI-HDMIAUDIO sndhdmi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
speaker-test -c 2 -r 48000 -D hw:1,0

(for others, the hw:x,y is x = card, y = device)

This just runs a sound test with static bouncing back and forth. Once it has played out of each speaker, hit Ctrl+c to stop it, and then check in your sound settings to see if the HDMI output is now listed under the internal device.

so 1,0

speaker-test -c 2 -r 48000 -D hw:1,0

arecord -vv -fdat foo.wav

aplay -Dhw:1,0 foo.wav

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s