Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aeeb179f authored by Eric Laurent's avatar Eric Laurent
Browse files

audio policy config: add USB_HEADSET device

Add definitions and routes for USB_HEADSET device
in default audio policy configuration for USB HAL.

Bug: 36220140
Test: check music/video playback, voice/VoIP
calls, OK google and  Camcorder with and without USB headset

Change-Id: Ic62b38fc9628c8ec44ddca17e82419be4f1e0fea
parent af69fd92
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -30,14 +30,18 @@
                     samplingRates="44100" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
        </devicePort>
        <devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink"/>
        <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"/>
        <devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source"/>
        <devicePort tagName="USB Headset In" type="AUDIO_DEVICE_IN_USB_HEADSET" role="source"/>
    </devicePorts>
    <routes>
        <route type="mix" sink="USB Host Out"
               sources="usb_accessory output"/>
        <route type="mix" sink="USB Device Out"
               sources="usb_device output"/>
        <route type="mix" sink="USB Headset Out"
               sources="usb_device output"/>
        <route type="mix" sink="usb_device input"
               sources="USB Device In"/>
               sources="USB Device In,USB Headset In"/>
    </routes>
</module>