summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2019-10-25 18:31:12 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2019-10-25 18:31:12 -0700
commit1074acfb849942c0d883410c48b1a1dbfed3f0a1 (patch)
tree17555473dcea875677c0dd4ea6bcaa197b37a040
parent10d22b9b49a0208df18acef45bb5a0ad5c290d8d (diff)
parented67b03d500b89674a817bbc6d44f066673fa16d (diff)
downloadandroid_hardware_qcom_audio-1074acfb849942c0d883410c48b1a1dbfed3f0a1.tar.gz
android_hardware_qcom_audio-1074acfb849942c0d883410c48b1a1dbfed3f0a1.tar.bz2
android_hardware_qcom_audio-1074acfb849942c0d883410c48b1a1dbfed3f0a1.zip
Merge "hal: remove sending apply audio path for speaker swap"
-rw-r--r--hal/msm8974/platform.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index 91a04e76..fa175a8a 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -10590,7 +10590,6 @@ int platform_set_swap_mixer(struct audio_device *adev, bool swap_channels)
{
const char *mixer_ctl_name = "Swap channel";
struct mixer_ctl *ctl;
- const char *mixer_path;
struct platform_data *my_data = (struct platform_data *)adev->platform;
// forced to set to swap, but device not rotated ... ignore set
@@ -10599,14 +10598,6 @@ int platform_set_swap_mixer(struct audio_device *adev, bool swap_channels)
ALOGV("%s:", __func__);
- if (swap_channels) {
- mixer_path = platform_get_snd_device_name(SND_DEVICE_OUT_SPEAKER_REVERSE);
- audio_route_apply_and_update_path(adev->audio_route, mixer_path);
- } else {
- mixer_path = platform_get_snd_device_name(SND_DEVICE_OUT_SPEAKER);
- audio_route_apply_and_update_path(adev->audio_route, mixer_path);
- }
-
ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);
if (!ctl) {
ALOGE("%s: Could not get ctl for mixer cmd - %s",__func__, mixer_ctl_name);