Optimize: doc about software pcm ac101

This commit is contained in:
Peter.Yang 2018-05-21 09:52:38 +00:00
parent a8d0a23583
commit 983d4834bb
2 changed files with 14 additions and 6 deletions

View file

@ -214,9 +214,9 @@ arecord -Dac108 -f S32_LE -r 16000 -c 4 a.wav
arecord -Dac108 -f S32_LE -r 16000 -c 8 a.wav arecord -Dac108 -f S32_LE -r 16000 -c 8 a.wav
#Take care of that the captured mic audio is on the first 6 channels #Take care of that the captured mic audio is on the first 6 channels
#It will play sound file a.wav on AC101 #It will play a mono channel sound file mono_to_play.wav
aplay -D ac101 a.wav #The file to play must be mono channel or else the speaker output nothing.
#Do not use -D plughw:1,0 directly except your wave file is single channel only. aplay -D plughw:1,0 mono_to_play.wav
#Doing capture && playback the same time #Doing capture && playback the same time
arecord -D hw:1,0 -f S32_LE -r 16000 -c 8 to_be_record.wav & arecord -D hw:1,0 -f S32_LE -r 16000 -c 8 to_be_record.wav &

View file

@ -3,13 +3,17 @@
pcm.!default { pcm.!default {
type asym type asym
playback.pcm "ac101" playback.pcm "playback"
capture.pcm "ac108" capture.pcm "ac108"
} }
pcm.playback { pcm.playback {
type plug type plug
slave.pcm "hw:0,0" slave {
rate 48000
format S32_LE
pcm "hw:1,0"
}
} }
pcm.dmixed { pcm.dmixed {
@ -25,7 +29,11 @@ pcm.ac108 {
pcm.multiapps { pcm.multiapps {
type dsnoop type dsnoop
slave.pcm "hw:1,0" slave {
rate 48000
format S32_LE
pcm "hw:1,0"
}
ipc_key 666666 ipc_key 666666
} }