[WFD] Connect WiFi display, plug in wired headphones, sound should go to headset side
Source: Internet
Author: User
[WFD] Connect WiFi display, plug in wired headphones, sound should go to headset side[DESCRIPTION]
Connect WiFi display, plug in Wired headphones, play music or multimedia, sound on the TV side.
[Solution]
This is the Android default design, if you want to change, modify the policy section,
AudioPolicyManager.cpp's Getdeviceforstrategy function,
Case Strategy_media,
Will enter the IF (!mchangepriorsubmix) selection to Device2 = Availableoutputdevicetypes &
Audio_device_out_remote_submix;
This audio_device_out_remote_submix is 0x8000.
If you want to switch out from the headset, modify the following:
Case Strategy_media: {
uint32_t device2 = Audio_device_none;
#ifdef Mtk_audio
if (!mchangepriorsubmix) {
#endif
if (strategy! = strategy_sonification) {
No sonification on remote submix (e.g. WFD)
if (Availableoutputdevicetypes&audio_device_out_wired_headphone)
{
Device2 = availableoutputdevicetypes & Audio_device_out_wired_headphone;
}else if (availableoutputdevicetypes&audio_device_out_wired_headset)
{
Device2 = availableoutputdevicetypes & Audio_device_out_wired_headset;
}else{
Device2 = availableoutputdevicetypes & Audio_device_out_remote_submix;
}
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.