Skip to content

Commit

Permalink
nash: audio: Add BT SCO to routes list
Browse files Browse the repository at this point in the history
- Issue with returning a valid device descriptor
  since BT SCO is not defined in IOProfile.
- First attempt to retrieve devicedescriptor from
  the available HwModule may fail due to address
  and encoded format conditions.
- Further device descriptor query is based on IOProfile
  with devices defined in audio_policy_configuration.
- This change adds BT SCO to IOProfile.

Change-Id: I52225070e97dd702f965ca5dbb5db9d128df1faf
  • Loading branch information
Sujin Panicker authored and erfanoabdi committed Feb 27, 2020
1 parent 68273b7 commit 3a9ec86
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion audio/audio_policy_configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,11 @@
</devicePort>
<devicePort tagName="Dock Headset" type="AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET" role="sink">
</devicePort>
<devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_ALL_SCO" role="sink">
<devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
</devicePort>
<devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink">
</devicePort>
<devicePort tagName="BT SCO Car Kit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT" role="sink">
</devicePort>
<devicePort tagName="HDMI Out" type="AUDIO_DEVICE_OUT_HDMI" role="sink">
</devicePort>
Expand Down Expand Up @@ -142,6 +146,10 @@
sources="primary output,deep_buffer,compressed_offload"/>
<route type="mix" sink="BT SCO"
sources="primary output,deep_buffer,compressed_offload"/>
<route type="mix" sink="BT SCO Headset"
sources="primary output,deep_buffer,compressed_offload"/>
<route type="mix" sink="BT SCO Car Kit"
sources="primary output,deep_buffer,compressed_offload"/>
<route type="mix" sink="HDMI Out"
sources="primary output,deep_buffer,compressed_offload"/>
<route type="mix" sink="Telephony Tx"
Expand Down

0 comments on commit 3a9ec86

Please sign in to comment.