Skip to content

Commit

Permalink
Optimize: doc about software pcm ac101
Browse files Browse the repository at this point in the history
  • Loading branch information
turmary committed May 21, 2018
1 parent a8d0a23 commit 983d483
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
#Take care of that the captured mic audio is on the first 6 channels

#It will play sound file a.wav on AC101
aplay -D ac101 a.wav
#Do not use -D plughw:1,0 directly except your wave file is single channel only.
#It will play a mono channel sound file mono_to_play.wav
#The file to play must be mono channel or else the speaker output nothing.
aplay -D plughw:1,0 mono_to_play.wav

#Doing capture && playback the same time
arecord -D hw:1,0 -f S32_LE -r 16000 -c 8 to_be_record.wav &
Expand Down
14 changes: 11 additions & 3 deletions asound_6mic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@

pcm.!default {
type asym
playback.pcm "ac101"
playback.pcm "playback"
capture.pcm "ac108"
}

pcm.playback {
type plug
slave.pcm "hw:0,0"
slave {
rate 48000
format S32_LE
pcm "hw:1,0"
}
}

pcm.dmixed {
Expand All @@ -25,7 +29,11 @@ pcm.ac108 {

pcm.multiapps {
type dsnoop
slave.pcm "hw:1,0"
slave {
rate 48000
format S32_LE
pcm "hw:1,0"
}
ipc_key 666666
}

Expand Down

0 comments on commit 983d483

Please sign in to comment.