[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.


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 &
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) {
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;
Device2 = availableoutputdevicetypes & Audio_device_out_remote_submix;

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.