Skip to content

Commit 0a6e699

Browse files
leungv-githubTreeHugger Robot
authored and
TreeHugger Robot
committed
Revert "Remove audio-coupled-haptics support"
This reverts commit fd3f417. Reason for revert: functional implementation of audio coupled haptics feature working again Bug: 178431048 Test: manually verify audio-coupled-haptics is working for Pixel ringtones on P21 devices Change-Id: Ibda582e6b4f95dcf9bd5497dbc3580eb1569f9a2
1 parent bbc1857 commit 0a6e699

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

audio/oriole/config/audio_policy_configuration.xml

+5-7
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@
4848
samplingRates="8000 16000 24000 32000 44100 48000"
4949
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO"/>
5050
</mixPort>
51-
<!-- TODO(186720581): revert this change when b/178431048 is fixed
5251
<mixPort name="haptic" role="source">
5352
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
5453
samplingRates="48000"
5554
channelMasks="AUDIO_CHANNEL_OUT_STEREO_HAPTIC_A" />
5655
</mixPort>
57-
-->
5856
<mixPort name="raw" role="source" flags="AUDIO_OUTPUT_FLAG_RAW AUDIO_OUTPUT_FLAG_FAST">
5957
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
6058
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
@@ -176,21 +174,21 @@
176174
<!-- route declaration, i.e. list all available sources for a given sink -->
177175
<routes>
178176
<route type="mix" sink="Speaker"
179-
sources="primary output,deep buffer,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
177+
sources="primary output,deep buffer,haptic,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
180178
<route type="mix" sink="Speaker Safe"
181-
sources="primary output,deep buffer,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
179+
sources="primary output,deep buffer,haptic,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
182180
<route type="mix" sink="Earpiece"
183-
sources="primary output,deep buffer,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
181+
sources="primary output,deep buffer,haptic,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
184182
<route type="mix" sink="BT A2DP Out"
185183
sources="primary output,deep buffer,compressed_offload,voip_rx"/>
186184
<route type="mix" sink="BT A2DP Headphones"
187185
sources="primary output,deep buffer,compressed_offload,voip_rx"/>
188186
<route type="mix" sink="BT A2DP Speaker"
189187
sources="primary output,deep buffer,compressed_offload,voip_rx"/>
190188
<route type="mix" sink="USB Device Out"
191-
sources="primary output,deep buffer,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
189+
sources="primary output,deep buffer,haptic,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
192190
<route type="mix" sink="USB Headset Out"
193-
sources="primary output,deep buffer,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
191+
sources="primary output,deep buffer,haptic,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
194192
<route type="mix" sink="BT SCO"
195193
sources="primary output,deep buffer,compressed_offload,voip_rx"/>
196194
<route type="mix" sink="BT SCO Headset"

audio/raven/config/audio_policy_configuration.xml

+5-7
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@
4848
samplingRates="8000 16000 24000 32000 44100 48000"
4949
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO"/>
5050
</mixPort>
51-
<!-- TODO(186720581): revert this change when b/178431048 is fixed
5251
<mixPort name="haptic" role="source">
5352
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
5453
samplingRates="48000"
5554
channelMasks="AUDIO_CHANNEL_OUT_STEREO_HAPTIC_A" />
5655
</mixPort>
57-
-->
5856
<mixPort name="raw" role="source" flags="AUDIO_OUTPUT_FLAG_RAW AUDIO_OUTPUT_FLAG_FAST">
5957
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
6058
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
@@ -176,21 +174,21 @@
176174
<!-- route declaration, i.e. list all available sources for a given sink -->
177175
<routes>
178176
<route type="mix" sink="Speaker"
179-
sources="primary output,deep buffer,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
177+
sources="primary output,deep buffer,haptic,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
180178
<route type="mix" sink="Speaker Safe"
181-
sources="primary output,deep buffer,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
179+
sources="primary output,deep buffer,haptic,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
182180
<route type="mix" sink="Earpiece"
183-
sources="primary output,deep buffer,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
181+
sources="primary output,deep buffer,haptic,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
184182
<route type="mix" sink="BT A2DP Out"
185183
sources="primary output,deep buffer,compressed_offload,voip_rx"/>
186184
<route type="mix" sink="BT A2DP Headphones"
187185
sources="primary output,deep buffer,compressed_offload,voip_rx"/>
188186
<route type="mix" sink="BT A2DP Speaker"
189187
sources="primary output,deep buffer,compressed_offload,voip_rx"/>
190188
<route type="mix" sink="USB Device Out"
191-
sources="primary output,deep buffer,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
189+
sources="primary output,deep buffer,haptic,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
192190
<route type="mix" sink="USB Headset Out"
193-
sources="primary output,deep buffer,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
191+
sources="primary output,deep buffer,haptic,raw,compressed_offload,mmap_no_irq_out,voip_rx"/>
194192
<route type="mix" sink="BT SCO"
195193
sources="primary output,deep buffer,compressed_offload,voip_rx"/>
196194
<route type="mix" sink="BT SCO Headset"

0 commit comments

Comments
 (0)