Enabling dual mics in mixer paths .xml file

566 views
Skip to first unread message

Paul Kalebu

unread,
Feb 4, 2019, 10:09:07 AM2/4/19
to android-porting
I've set some tinymix configurations to capture input from two mics at once. I've tested it with tinycap and it works just fine. I've tried adding those configurations to the mixer paths file (mixer_paths_tasha.xml), but it doesn't seem to be working. 

Configurations:

<path name="dual-mic">

       <ctl name="AIF1_CAP Mixer SLIM TX7" value="1" />

       <ctl name="AIF1_CAP Mixer SLIM TX8" value="1" />

       <ctl name="SLIM TX7 MUX" value="DEC7" />

       <ctl name="ADC MUX7" value="DMIC" />

       <ctl name="DMIC MUX7" value="DMIC0" />

       <ctl name="SLIM TX8 MUX" value="DEC8" />

       <ctl name="ADC MUX8" value="DMIC" />

       <ctl name="DMIC MUX8" value="DMIC5" />

       <ctl name="SLIM_0_TX Channels" value="Two" />

       <ctl name="MultiMedia1 Mixer SLIM_0_TX" value="1" />

</path>




Does anyone know how I can go about setting up dual mic input for an app running on Android through the mixer paths .xml file? If that's not possible is there another alternative?


Tranphong Vu

unread,
Feb 5, 2019, 1:24:29 PM2/5/19
to paul....@gmail.com, android-porting
Hi my friend,
You need to check your mixer file. Use tinymix to check the work of your configuration file. If it work with tinymix configuration it should work with your configuration file, Android framework does not effects this. This happens in kernel layer. With my experience your mixer configuration is applied before the other so it does not work as u want.

Vào Th 2, 4 thg 2, 2019 lúc 22:09 Paul Kalebu <paul....@gmail.com> đã viết:
--
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paul Kalebu

unread,
Feb 5, 2019, 1:24:35 PM2/5/19
to Tranphong Vu, android-porting
Hi Tranphong,

The code I attached is from my mixer file. For some reason, the configurations aren't being set correctly when I try to capture audio. Is there another file I should be looking at? Would you happen to know which file reads the mixer paths .xml file?

kiran kadam

unread,
Apr 8, 2020, 10:54:04 AM4/8/20
to android-porting
if its working using tinycap then from mixer path same should work framework does not impact this  as mentioned earlier.you can double check if if you have made changes in proper xml file and your dual mic configuration is being set correctly from logcat if not then you need to make neccessary changes in hal for same.

Paul Kalebu

unread,
Apr 8, 2020, 6:52:58 PM4/8/20
to embed...@gmail.com, android-porting
All set, thank you

--
--
unsubscribe: android-porti...@googlegroups.com
website: http://groups.google.com/group/android-porting

---
You received this message because you are subscribed to the Google Groups "android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-porti...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages