sdm660-common: audio: Use AOSP USB audio configs
* Apparently, this is the fix for DAC Type C Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
parent
88ceea5500
commit
0a671bb3d1
1 changed files with 2 additions and 20 deletions
|
@ -73,7 +73,6 @@
|
||||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
|
||||||
</mixPort>
|
</mixPort>
|
||||||
<mixPort name="hifi_playback" role="source" />
|
|
||||||
<mixPort name="compress_passthrough" role="source"
|
<mixPort name="compress_passthrough" role="source"
|
||||||
flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD AUDIO_OUTPUT_FLAG_NON_BLOCKING">
|
flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD AUDIO_OUTPUT_FLAG_NON_BLOCKING">
|
||||||
<profile name="" format="dynamic"
|
<profile name="" format="dynamic"
|
||||||
|
@ -233,14 +232,6 @@
|
||||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||||
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO"/>
|
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_MONO AUDIO_CHANNEL_OUT_STEREO"/>
|
||||||
</devicePort>
|
</devicePort>
|
||||||
<devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink">
|
|
||||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
|
||||||
samplingRates="44100 48000 64000 88200 96000 128000 176400 192000" channelMasks="dynamic"/>
|
|
||||||
</devicePort>
|
|
||||||
<devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink">
|
|
||||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
|
||||||
samplingRates="44100 48000 64000 88200 96000 128000 176400 192000" channelMasks="dynamic"/>
|
|
||||||
</devicePort>
|
|
||||||
|
|
||||||
<!-- Input devices declaration i.e. Source DEVICE PORT -->
|
<!-- Input devices declaration i.e. Source DEVICE PORT -->
|
||||||
<devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
|
<devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source">
|
||||||
|
@ -271,10 +262,6 @@
|
||||||
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
|
||||||
samplingRates="8000 16000 48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
|
samplingRates="8000 16000 48000" channelMasks="AUDIO_CHANNEL_IN_MONO"/>
|
||||||
</devicePort>
|
</devicePort>
|
||||||
<devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source">
|
|
||||||
</devicePort>
|
|
||||||
<devicePort tagName="USB Headset In" type="AUDIO_DEVICE_IN_USB_HEADSET" role="source">
|
|
||||||
</devicePort>
|
|
||||||
|
|
||||||
</devicePorts>
|
</devicePorts>
|
||||||
<!-- route declaration, i.e. list all available sources for a given sink -->
|
<!-- route declaration, i.e. list all available sources for a given sink -->
|
||||||
|
@ -301,21 +288,16 @@
|
||||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
|
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
|
||||||
<route type="mix" sink="BT SCO Car Kit"
|
<route type="mix" sink="BT SCO Car Kit"
|
||||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
|
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
|
||||||
<route type="mix" sink="USB Device Out"
|
|
||||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,hifi_playback"/>
|
|
||||||
<route type="mix" sink="USB Headset Out"
|
|
||||||
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,hifi_playback"/>
|
|
||||||
<route type="mix" sink="Telephony Tx"
|
<route type="mix" sink="Telephony Tx"
|
||||||
sources="voice_tx"/>
|
sources="voice_tx"/>
|
||||||
<route type="mix" sink="voice_rx"
|
<route type="mix" sink="voice_rx"
|
||||||
sources="Telephony Rx"/>
|
sources="Telephony Rx"/>
|
||||||
<route type="mix" sink="primary input"
|
<route type="mix" sink="primary input"
|
||||||
sources="Wired Headset Mic,BT SCO Headset Mic,FM Tuner,USB Device In,USB Headset In,Telephony Rx"/>
|
sources="Wired Headset Mic,BT SCO Headset Mic,FM Tuner,Telephony Rx"/>
|
||||||
<route type="mix" sink="voip_tx"
|
<route type="mix" sink="voip_tx"
|
||||||
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,FM Tuner,USB Device In,USB Headset In,Telephony Rx"/>
|
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,FM Tuner,Telephony Rx"/>
|
||||||
<route type="mix" sink="record_24"
|
<route type="mix" sink="record_24"
|
||||||
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic"/>
|
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic"/>
|
||||||
<route type="mix" sink="hifi_input" sources="USB Device In,USB Headset In" />
|
|
||||||
</routes>
|
</routes>
|
||||||
|
|
||||||
</module>
|
</module>
|
||||||
|
|
Loading…
Reference in a new issue