plugin: support more channels for agmcap
Add more channel support for agmcap.
Change-Id: I1f2295e7708867eccfa636f87b5f542cec018c25
diff --git a/plugins/tinyalsa/test/agmmixer.c b/plugins/tinyalsa/test/agmmixer.c
index 6f9fa5d..1bdf538 100644
--- a/plugins/tinyalsa/test/agmmixer.c
+++ b/plugins/tinyalsa/test/agmmixer.c
@@ -706,6 +706,36 @@
pcmChannel[1] = PCM_CHANNEL_R;
pcmChannel[2] = PCM_CHANNEL_LB;
pcmChannel[3] = PCM_CHANNEL_RB;
+ } else if (numChannel == 5) {
+ pcmChannel[0] = PCM_CHANNEL_L;
+ pcmChannel[1] = PCM_CHANNEL_R;
+ pcmChannel[2] = PCM_CHANNEL_C;
+ pcmChannel[3] = PCM_CHANNEL_LB;
+ pcmChannel[4] = PCM_CHANNEL_RB;
+ } else if (numChannel == 6) {
+ pcmChannel[0] = PCM_CHANNEL_L;
+ pcmChannel[1] = PCM_CHANNEL_R;
+ pcmChannel[2] = PCM_CHANNEL_C;
+ pcmChannel[3] = PCM_CHANNEL_LFE;
+ pcmChannel[4] = PCM_CHANNEL_LB;
+ pcmChannel[5] = PCM_CHANNEL_RB;
+ } else if (numChannel == 7) {
+ pcmChannel[0] = PCM_CHANNEL_L;
+ pcmChannel[1] = PCM_CHANNEL_R;
+ pcmChannel[2] = PCM_CHANNEL_C;
+ pcmChannel[3] = PCM_CHANNEL_LFE;
+ pcmChannel[4] = PCM_CHANNEL_LB;
+ pcmChannel[5] = PCM_CHANNEL_RB;
+ pcmChannel[6] = PCM_CHANNEL_CS;
+ } else if (numChannel == 8) {
+ pcmChannel[0] = PCM_CHANNEL_L;
+ pcmChannel[1] = PCM_CHANNEL_R;
+ pcmChannel[2] = PCM_CHANNEL_C;
+ pcmChannel[3] = PCM_CHANNEL_LFE;
+ pcmChannel[4] = PCM_CHANNEL_LB;
+ pcmChannel[5] = PCM_CHANNEL_RB;
+ pcmChannel[6] = PCM_CHANNEL_LS;
+ pcmChannel[7] = PCM_CHANNEL_RS;
}
}