Mute RX device according to volume in set_voice_volume

Port the following change from msm8974 platform

Sends the "Rx Device Mute" mixer ctl  with parameter 1
in platform_set_voice_volume when volume index matches the mute state.
Sends the same ctl with parameter 0 in case RX stream should not be
muted. Part of a change which enables apps with MODIFY_PHONE_STATE
permission to mute the (Voice Call) RX stream.

(original change id I3e0b7b0d72f5c3e7b37e8c109067818153c82947)

Change-Id: Idaf8a949733dcdc32a9b9eff0316013de6f799ce
Bug: 72278858
Test: Port of code currently used for 8974.
1 file changed
tree: 21fa8a5c5af12d0a83ccd68f3cf298058ba57a33
  1. hal/
  2. legacy/
  3. post_proc/
  4. visualizer/
  5. voice_processing/
  6. Android.mk