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

Commit 419e33a2 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Update Bluetooth audio policy for BLE Headset In in v7.0

This is same as Change-Id I1980f8906cc45bf301fd36fc8c03418ac675790c, but
for v7.0 configuration.

Test: Set LE audio device as active
Bug: 150670922
Change-Id: Iaef252e9c8bd2bf83120e4b71d8281b445d5969e
parent 9db33eef
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -22,6 +22,17 @@
                     samplingRates="8000 16000 24000 32000 44100 48000"
                     channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO"/>
        </mixPort>
        <mixPort name="le audio input" role="sink">
            <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
                     samplingRates="8000 16000 24000 32000 44100 48000"
                     channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/>
            <profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED"
                     samplingRates="8000 16000 24000 32000 44100 48000"
                     channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/>
            <profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
                     samplingRates="8000 16000 24000 32000 44100 48000"
                     channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO"/>
        </mixPort>
    </mixPorts>
    <devicePorts>
        <!-- A2DP Audio Ports -->
@@ -45,6 +56,7 @@
        <!-- BLE Audio Ports -->
        <devicePort tagName="BLE Headset Out" type="AUDIO_DEVICE_OUT_BLE_HEADSET" role="sink"/>
        <devicePort tagName="BLE Speaker Out" type="AUDIO_DEVICE_OUT_BLE_SPEAKER" role="sink"/>
        <devicePort tagName="BLE Headset In" type="AUDIO_DEVICE_IN_BLE_HEADSET" role="source"/>
    </devicePorts>
    <routes>
        <route type="mix" sink="BT A2DP Out"
@@ -57,6 +69,8 @@
               sources="hearing aid output"/>
        <route type="mix" sink="BLE Headset Out"
               sources="le audio output"/>
        <route type="mix" sink="le audio input"
               sources="BLE Headset In"/>
        <route type="mix" sink="BLE Speaker Out"
               sources="le audio output"/>
    </routes>