diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2015-05-24 20:16:59 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2015-05-24 20:16:59 -0700 |
commit | deb25d02fdfd1e7f1035148488b9051c0a5688d1 (patch) | |
tree | b0b3238a173878b0fd0690aa62f079e8e6af9ba9 /hal/msm8960 | |
parent | dcb434424986ce448b402699bc4b18ef9c905b7c (diff) | |
parent | bbd4e9d084c5d08c790efffebb4ee7508b422c10 (diff) | |
download | hardware_qcom_audio-deb25d02fdfd1e7f1035148488b9051c0a5688d1.tar.gz hardware_qcom_audio-deb25d02fdfd1e7f1035148488b9051c0a5688d1.tar.bz2 hardware_qcom_audio-deb25d02fdfd1e7f1035148488b9051c0a5688d1.zip |
Merge "hal: Add provision to select hpx backend based on the codec type"
Diffstat (limited to 'hal/msm8960')
-rw-r--r-- | hal/msm8960/platform.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hal/msm8960/platform.c b/hal/msm8960/platform.c index f9b7851f..e5ecda13 100644 --- a/hal/msm8960/platform.c +++ b/hal/msm8960/platform.c @@ -230,6 +230,8 @@ void *platform_init(struct audio_device *adev) char value[PROPERTY_VALUE_MAX]; struct platform_data *my_data; const char *snd_card_name; + const char *mixer_ctl_name = "Set HPX ActiveBe"; + struct mixer_ctl *ctl = NULL; adev->mixer = mixer_open(MIXER_CARD); @@ -340,6 +342,13 @@ void *platform_init(struct audio_device *adev) } } + /* Configure active back end for HPX*/ + ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); + if (ctl) { + ALOGI(" sending HPX Active BE information "); + mixer_ctl_set_value(ctl, 0, false); + } + return my_data; } |