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

Commit 2606fac6 authored by npaladug's avatar npaladug Committed by Gerrit - the friendly Code Review server
Browse files

HAL: Support Mute and Unmute feature for compress offload path

Enabling Mute and Unmute feature for compress offload playback.

Change-Id: I53ddb190e9b2874f15b916b3348daca570c80d0f
Suggested-By: Bhargavi Belagod Manjunatha
parent 7e5eeeca
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -881,11 +881,15 @@ static void auto_hal_set_mute_duck_state(struct audio_device *adev,
                    case AUDIO_DEVICE_MUTED:
                        ALOGD("%s: Muting BUS device %s", __func__, ptr);
                        out->muted = true;
                        if (out && out->compr)
                              auto_hal_out_set_compr_volume(out, DUCKED_VOLUME, DUCKED_VOLUME);
                        break;

                    case AUDIO_DEVICE_UNMUTED:
                        ALOGD("%s: Unmuting BUS device %s", __func__, ptr);
                        out->muted = false;
                        if (out && out->compr)
                              auto_hal_out_set_compr_volume(out, out->volume_l, out->volume_r);
                        break;
                }
            }