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

Commit c6a0d5d4 authored by Krishna Kishor Jha's avatar Krishna Kishor Jha
Browse files

audio-hal: changes for fm tuner

adding mix port and device port for fm tuner.

Change-Id: Ieefe029f0dd764b7cbb08f5aa94dbe5e60300adb
parent 73ba50db
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@
                <item>Front Passenger In Bus</item>
                <item>Rear Seat In Bus</item>
                <item>Echo Reference</item>
                <item>FM Tuner</item>
            </attachedDevices>
            <defaultOutputDevice>Media Bus</defaultOutputDevice>
            <mixPorts>
@@ -98,6 +99,11 @@
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
                        samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
                </mixPort>
                <mixPort name="mixport_tuner0" role="sink">
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
                             samplingRates="48000"
                             channelMasks="AUDIO_CHANNEL_IN_STEREO"/>
                </mixPort>
                <mixPort name="nav_guidance" role="source">
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
                             samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
@@ -325,6 +331,11 @@
                             samplingRates="16000,48000"
                             channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
                </devicePort>
                <devicePort tagName="FM Tuner" type="AUDIO_DEVICE_IN_FM_TUNER" role="source"> 
                    <profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
                             samplingRates="48000"
                             channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO"/>
                </devicePort>
            </devicePorts>
            <routes>
                <route type="mix" sink="Media Bus"
@@ -373,6 +384,8 @@
                       sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
                <route type="mix" sink="BT A2DP Speaker"
                       sources="primary output,deep_buffer,compressed_offload,voip_rx"/>
                <route type="mix" sink="mixport_tuner0"
                       sources="FM Tuner"/>
            </routes>
        </module>