configs: add support for MMAP IRQ mode streams

Add support for MMAP IRQ mode streams.
Original change-id: I79ee079475d23f01aaf730a488b79831fd070df1

Change-Id: Ia2d18d8971c2a44c135b7cb388f99fa544286f59
This commit is contained in:
Revathi Uddaraju 2017-11-13 16:20:42 +05:30
parent 9dff3597ae
commit 62bf5e0c9d
8 changed files with 411 additions and 8 deletions

View File

@ -72,7 +72,6 @@
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD6" type="out" id="30"/>
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD7" type="out" id="31"/>
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD8" type="out" id="32"/>
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD9" type="out" id="33"/>
<usecase name="USECASE_VOICEMMODE1_CALL" type="in" id="2"/>
<usecase name="USECASE_VOICEMMODE1_CALL" type="out" id="2"/>
<usecase name="USECASE_VOICEMMODE2_CALL" type="in" id="19"/>
@ -88,6 +87,8 @@
<usecase name="USECASE_AUDIO_RECORD_LOW_LATENCY" type="in" id="17" />
<usecase name="USECASE_AUDIO_PLAYBACK_ULL" type="out" id="17" />
<usecase name="USECASE_AUDIO_PLAYBACK_EXT_DISP_SILENCE" type="out" id="27" />
<usecase name="USECASE_AUDIO_PLAYBACK_MMAP" type="out" id="33" />
<usecase name="USECASE_AUDIO_RECORD_MMAP" type="in" id="33" />
<usecase name="USECASE_AUDIO_HFP_SCO" type="in" id="35" />
<usecase name="USECASE_AUDIO_HFP_SCO_WB" type="in" id="35" />
<usecase name="USECASE_AUDIO_PLAYBACK_VOIP" type="out" id="16" />

View File

@ -42,7 +42,6 @@
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD6" type="out" id="30"/>
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD7" type="out" id="31"/>
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD8" type="out" id="32"/>
<usecase name="USECASE_AUDIO_PLAYBACK_OFFLOAD9" type="out" id="33"/>
<usecase name="USECASE_VOICEMMODE1_CALL" type="in" id="2"/>
<usecase name="USECASE_VOICEMMODE1_CALL" type="out" id="2"/>
<usecase name="USECASE_VOICEMMODE2_CALL" type="in" id="19"/>
@ -58,6 +57,8 @@
<usecase name="USECASE_AUDIO_RECORD_LOW_LATENCY" type="in" id="17" />
<usecase name="USECASE_AUDIO_PLAYBACK_ULL" type="out" id="17" />
<usecase name="USECASE_AUDIO_PLAYBACK_EXT_DISP_SILENCE" type="out" id="27" />
<usecase name="USECASE_AUDIO_PLAYBACK_MMAP" type="out" id="33" />
<usecase name="USECASE_AUDIO_RECORD_MMAP" type="in" id="33" />
<usecase name="USECASE_AUDIO_HFP_SCO" type="in" id="12" />
<usecase name="USECASE_AUDIO_HFP_SCO_WB" type="in" id="12" />
<usecase name="USECASE_AUDIO_PLAYBACK_VOIP" type="out" id="16" />

View File

@ -73,6 +73,10 @@
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
<mixPort name="mmap_no_irq_out" role="source" flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_MMAP_NOIRQ">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
<mixPort name="hifi_playback" role="source" />
<mixPort name="compress_passthrough" role="source"
flags="AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING">
@ -192,6 +196,11 @@
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="8000,16000,48000" channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
</mixPort>
<mixPort name="mmap_no_irq_in" role="sink" flags="AUDIO_INPUT_FLAG_MMAP_NOIRQ">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000"
channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3"/>
</mixPort>
<mixPort name="hifi_input" role="sink" />
</mixPorts>
@ -304,15 +313,15 @@
<!-- route declaration, i.e. list all available sources for a given sink -->
<routes>
<route type="mix" sink="Earpiece"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Speaker"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Wired Headset"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx"/>
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Wired Headphones"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx"/>
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Line"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx"/>
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="HDMI"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,compress_passthrough"/>
<route type="mix" sink="Proxy"
@ -322,7 +331,7 @@
<route type="mix" sink="BT SCO All"
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"/>
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
<route type="mix" sink="Telephony Tx"
sources="voice_tx"/>
<route type="mix" sink="voice_rx"
@ -333,6 +342,8 @@
sources="Built-In Mic,Built-In Back Mic"/>
<route type="mix" sink="record_24"
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic"/>
<route type="mix" sink="mmap_no_irq_in"
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,USB Device In"/>
<route type="mix" sink="BT A2DP Out"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload"/>
<route type="mix" sink="BT A2DP Headphones"

View File

@ -2185,6 +2185,84 @@
<path name="audio-ull-playback" />
</path>
<path name="mmap-playback">
<ctl name="INT4_MI2S_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback headphones">
<ctl name="INT0_MI2S_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback speaker-and-headphones">
<path name="mmap-playback" />
<path name="mmap-playback headphones" />
</path>
<path name="mmap-playback bt-sco">
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback bt-sco-wb">
<ctl name="BT SampleRate" value="16000" />
<path name="mmap-playback bt-sco" />
</path>
<path name="mmap-playback afe-proxy">
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback usb-headphones">
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback usb-headset">
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback display-port">
<ctl name="DISPLAY_PORT Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-buffer-playback hdmi">
<ctl name="HDMI Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback speaker-and-hdmi">
<path name="mmap-playback hdmi" />
<path name="mmap-playback" />
</path>
<path name="mmap-playback speaker-and-display-port">
<path name="mmap-playback display-port" />
<path name="mmap-playback" />
</path>
<path name="mmap-playback speaker-and-usb-headphones">
<path name="mmap-playback usb-headphones" />
<path name="mmap-playback" />
</path>
<path name="mmap-record">
<ctl name="MultiMedia16 Mixer INT3_MI2S_TX " value="1" />
</path>
<path name="mmap-record bt-sco">
<ctl name="MultiMedia16 Mixer SLIM_7_TX" value="1" />
</path>
<path name="mmap-record bt-sco-wb">
<ctl name="BT SampleRate" value="KHZ_16" />
<path name="mmap-record bt-sco" />
</path>
<path name="mmap-record capture-fm">
<ctl name="MultiMedia16 Mixer SLIM_8_TX" value="1" />
</path>
<path name="mmap-record usb-headset-mic">
<ctl name="MultiMedia16 Mixer USB_AUDIO_TX" value="1" />
</path>
<path name="hifi-playback display-port">
<ctl name="DISPLAY_PORT Mixer MultiMedia2" value="1" />
</path>

View File

@ -2401,4 +2401,82 @@
<path name="audio-ull-playback bt-a2dp" />
<path name="audio-ull-playback" />
</path>
<path name="mmap-playback">
<ctl name="INT4_MI2S_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback headphones">
<ctl name="INT0_MI2S_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback speaker-and-headphones">
<path name="mmap-playback" />
<path name="mmap-playback headphones" />
</path>
<path name="mmap-playback bt-sco">
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback bt-sco-wb">
<ctl name="BT SampleRate" value="16000" />
<path name="mmap-playback bt-sco" />
</path>
<path name="mmap-playback afe-proxy">
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback usb-headphones">
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback usb-headset">
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback display-port">
<ctl name="DISPLAY_PORT Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-buffer-playback hdmi">
<ctl name="HDMI Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback speaker-and-hdmi">
<path name="mmap-playback hdmi" />
<path name="mmap-playback" />
</path>
<path name="mmap-playback speaker-and-display-port">
<path name="mmap-playback display-port" />
<path name="mmap-playback" />
</path>
<path name="mmap-playback speaker-and-usb-headphones">
<path name="mmap-playback usb-headphones" />
<path name="mmap-playback" />
</path>
<path name="mmap-record">
<ctl name="MultiMedia16 Mixer INT3_MI2S_TX" value="1" />
</path>
<path name="mmap-record bt-sco">
<ctl name="MultiMedia16 Mixer SLIM_7_TX" value="1" />
</path>
<path name="mmap-record bt-sco-wb">
<ctl name="BT SampleRate" value="KHZ_16" />
<path name="mmap-record bt-sco" />
</path>
<path name="mmap-record capture-fm">
<ctl name="MultiMedia16 Mixer SLIM_8_TX" value="1" />
</path>
<path name="mmap-record usb-headset-mic">
<ctl name="MultiMedia16 Mixer USB_AUDIO_TX" value="1" />
</path>
</mixer>

View File

@ -2753,6 +2753,84 @@
<path name="audio-ull-playback" />
</path>
<path name="mmap-playback">
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback headphones">
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback speaker-and-headphones">
<path name="mmap-playback" />
<path name="mmap-playback headphones" />
</path>
<path name="mmap-playback bt-sco">
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback bt-sco-wb">
<ctl name="BT SampleRate" value="16000" />
<path name="mmap-playback bt-sco" />
</path>
<path name="mmap-playback afe-proxy">
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback usb-headphones">
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback usb-headset">
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback display-port">
<ctl name="DISPLAY_PORT Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-buffer-playback hdmi">
<ctl name="HDMI Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback speaker-and-hdmi">
<path name="mmap-playback hdmi" />
<path name="mmap-playback" />
</path>
<path name="mmap-playback speaker-and-display-port">
<path name="mmap-playback display-port" />
<path name="mmap-playback" />
</path>
<path name="mmap-playback speaker-and-usb-headphones">
<path name="mmap-playback usb-headphones" />
<path name="mmap-playback" />
</path>
<path name="mmap-record">
<ctl name="MultiMedia16 Mixer SLIM_0_TX" value="1" />
</path>
<path name="mmap-record bt-sco">
<ctl name="MultiMedia16 Mixer SLIM_7_TX" value="1" />
</path>
<path name="mmap-record bt-sco-wb">
<ctl name="BT SampleRate" value="KHZ_16" />
<path name="mmap-record bt-sco" />
</path>
<path name="mmap-record capture-fm">
<ctl name="MultiMedia16 Mixer SLIM_8_TX" value="1" />
</path>
<path name="mmap-record usb-headset-mic">
<ctl name="MultiMedia16 Mixer USB_AUDIO_TX" value="1" />
</path>
<path name="hifi-playback display-port">
<ctl name="DISPLAY_PORT Mixer MultiMedia2" value="1" />
</path>

View File

@ -2731,6 +2731,84 @@
<path name="audio-ull-playback" />
</path>
<path name="mmap-playback">
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback headphones">
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback speaker-and-headphones">
<path name="mmap-playback" />
<path name="mmap-playback headphones" />
</path>
<path name="mmap-playback bt-sco">
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback bt-sco-wb">
<ctl name="BT SampleRate" value="16000" />
<path name="mmap-playback bt-sco" />
</path>
<path name="mmap-playback afe-proxy">
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback usb-headphones">
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback usb-headset">
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback display-port">
<ctl name="DISPLAY_PORT Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-buffer-playback hdmi">
<ctl name="HDMI Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback speaker-and-hdmi">
<path name="mmap-playback hdmi" />
<path name="mmap-playback" />
</path>
<path name="mmap-playback speaker-and-display-port">
<path name="mmap-playback display-port" />
<path name="mmap-playback" />
</path>
<path name="mmap-playback speaker-and-usb-headphones">
<path name="mmap-playback usb-headphones" />
<path name="mmap-playback" />
</path>
<path name="mmap-record">
<ctl name="MultiMedia16 Mixer SLIM_0_TX" value="1" />
</path>
<path name="mmap-record bt-sco">
<ctl name="MultiMedia16 Mixer SLIM_7_TX" value="1" />
</path>
<path name="mmap-record bt-sco-wb">
<ctl name="BT SampleRate" value="KHZ_16" />
<path name="mmap-record bt-sco" />
</path>
<path name="mmap-record capture-fm">
<ctl name="MultiMedia16 Mixer SLIM_8_TX" value="1" />
</path>
<path name="mmap-record usb-headset-mic">
<ctl name="MultiMedia16 Mixer USB_AUDIO_TX" value="1" />
</path>
<path name="hifi-playback display-port">
<ctl name="DISPLAY_PORT Mixer MultiMedia2" value="1" />
</path>

View File

@ -2450,6 +2450,84 @@
<path name="audio-ull-playback" />
</path>
<path name="mmap-playback">
<ctl name="SLIMBUS_0_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback headphones">
<ctl name="SLIMBUS_6_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback speaker-and-headphones">
<path name="mmap-playback" />
<path name="mmap-playback headphones" />
</path>
<path name="mmap-playback bt-sco">
<ctl name="SLIMBUS_7_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback bt-sco-wb">
<ctl name="BT SampleRate" value="16000" />
<path name="mmap-playback bt-sco" />
</path>
<path name="mmap-playback afe-proxy">
<ctl name="AFE_PCM_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback usb-headphones">
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback usb-headset">
<ctl name="USB_AUDIO_RX Audio Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback display-port">
<ctl name="DISPLAY_PORT Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-buffer-playback hdmi">
<ctl name="HDMI Mixer MultiMedia16" value="1" />
</path>
<path name="mmap-playback speaker-and-hdmi">
<path name="mmap-playback hdmi" />
<path name="mmap-playback" />
</path>
<path name="mmap-playback speaker-and-display-port">
<path name="mmap-playback display-port" />
<path name="mmap-playback" />
</path>
<path name="mmap-playback speaker-and-usb-headphones">
<path name="mmap-playback usb-headphones" />
<path name="mmap-playback" />
</path>
<path name="mmap-record">
<ctl name="MultiMedia16 Mixer SLIM_0_TX" value="1" />
</path>
<path name="mmap-record bt-sco">
<ctl name="MultiMedia16 Mixer SLIM_7_TX" value="1" />
</path>
<path name="mmap-record bt-sco-wb">
<ctl name="BT SampleRate" value="KHZ_16" />
<path name="mmap-record bt-sco" />
</path>
<path name="mmap-record capture-fm">
<ctl name="MultiMedia16 Mixer SLIM_8_TX" value="1" />
</path>
<path name="mmap-record usb-headset-mic">
<ctl name="MultiMedia16 Mixer USB_AUDIO_TX" value="1" />
</path>
<path name="hifi-playback display-port">
<ctl name="DISPLAY_PORT Mixer MultiMedia2" value="1" />
</path>