Audio switching between Headset and speaker

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Audio switching between Headset and speaker

474 Views
divyeshmarne0
Contributor III

Hi team

Im using imx8mm with android 11 code.

So im integrating IMX with TLV320AIC3104 audio codec.

Im able to hear voice properly from all the outputs.

But the problem is that : 

Whenever we are playing any audio file. It is playing from all the outputs at the same time.

What needs to be done to assign priorities between Headphone and Speaker.

Example: if audio is playing from speaker, at the same time if I plugged in headset, that time audio sound should route to headset from speaker and spkr output should turned off

Thanks

Tags (1)
0 Kudos
1 Reply

465 Views
b36401
NXP Employee
NXP Employee

You can refer to chapter 8.2 "Audio configuration" of Android User's Guide:
https://www.nxp.com/docs/en/user-guide/ANDROID_USERS_GUIDE.pdf

0 Kudos