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

Commit f0142645 authored by Sidipotu Ashok's avatar Sidipotu Ashok
Browse files

hal: Support the independent back-end for different device

Update to support the independent back-end for different device
such as headphone and speaker so that the audio post-processing can be
applied as device dependent.

Change-Id: I0e4991b01a28829e9ce29582edf5904985b98c72
parent 989d9e56
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -54,5 +54,16 @@
        <param key="spkr_2_tz_name" value="wsatz.12"/>
        <param key="spkr_2_tz_name" value="wsatz.12"/>
        <param key="native_audio_mode" value="src"/>
        <param key="native_audio_mode" value="src"/>
    </config_params>
    </config_params>

    <backend_names>
        <device name="SND_DEVICE_OUT_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_LINE" backend="headphones" interface="SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES" backend="speaker-and-headphones" interface="SLIMBUS_0_RX-and-SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_SPEAKER_AND_LINE" backend="speaker-and-headphones" interface="SLIMBUS_0_RX-and-SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_VOICE_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_VOICE_LINE" backend="headphones" interface="SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_VOICE_TTY_FULL_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_VOICE_TTY_VCO_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
    </backend_names>
</audio_platform_info>
</audio_platform_info>
+181 −32

File changed.

Preview size limit exceeded, changes collapsed.

+231 −110

File changed.

Preview size limit exceeded, changes collapsed.

+11 −1
Original line number Original line Diff line number Diff line
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Copyright (c) 2015, The Linux Foundation. All rights reserved.         -->
<!-- Copyright (c) 2015-16 The Linux Foundation. All rights reserved.         -->
<!--                                                                        -->
<!--                                                                        -->
<!-- Redistribution and use in source and binary forms, with or without     -->
<!-- Redistribution and use in source and binary forms, with or without     -->
<!-- modification, are permitted provided that the following conditions are -->
<!-- modification, are permitted provided that the following conditions are -->
@@ -51,5 +51,15 @@
    <config_params>
    <config_params>
        <param key="native_audio_mode" value="src"/>
        <param key="native_audio_mode" value="src"/>
    </config_params>
    </config_params>
    <backend_names>
        <device name="SND_DEVICE_OUT_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_LINE" backend="headphones" interface="SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_SPEAKER_AND_HEADPHONES" backend="speaker-and-headphones" interface="SLIMBUS_0_RX-and-SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_SPEAKER_AND_LINE" backend="speaker-and-headphones" interface="SLIMBUS_0_RX-and-SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_VOICE_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_VOICE_LINE" backend="headphones" interface="SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_VOICE_TTY_FULL_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
        <device name="SND_DEVICE_OUT_VOICE_TTY_VCO_HEADPHONES" backend="headphones" interface="SLIMBUS_6_RX"/>
    </backend_names>
</audio_platform_info>
</audio_platform_info>
+179 −22

File changed.

Preview size limit exceeded, changes collapsed.

Loading