FM hard mute changes in FTM mode
This pass correct parameters for setmute and add
support to get status of mute mode in fmhal.
Change-Id: I97141e4559c5919b61ec6c9305566ee2e6552fb2
diff --git a/helium/radio_helium_hal.c b/helium/radio_helium_hal.c
index 4d02987..733c0a5 100644
--- a/helium/radio_helium_hal.c
+++ b/helium/radio_helium_hal.c
@@ -40,7 +40,7 @@
int hci_fm_get_signal_threshold();
int hci_fm_enable_recv_req();
-int hci_fm_mute_mode_req(struct hci_fm_mute_mode_req );
+int hci_fm_mute_mode_req(struct hci_fm_mute_mode_req *);
static int oda_agt;
static int grp_mask;
static int rt_plus_carrier = -1;
@@ -1207,9 +1207,9 @@
case HCI_FM_HELIUM_AUDIO_MUTE:
saved_val = hal->radio->mute_mode.hard_mute;
hal->radio->mute_mode.hard_mute = val;
- ret = hci_fm_mute_mode_req(hal->radio->mute_mode);
+ ret = hci_fm_mute_mode_req(&hal->radio->mute_mode);
if (ret < 0) {
- ALOGE("%s:Error while set FM hard mute %d", LOG_TAG, ret);
+ ALOGE("%s:Error while set FM hard mute :%d", LOG_TAG, ret);
hal->radio->mute_mode.hard_mute = saved_val;
}
break;
@@ -1633,6 +1633,9 @@
case HCI_FM_HELIUM_LOWER_BAND:
val = hal->radio->recv_conf.band_low_limit;
break;
+ case HCI_FM_HELIUM_AUDIO_MUTE:
+ val = hal->radio->mute_mode.hard_mute;
+ return val;
case HCI_FM_HELIUM_SINR_SAMPLES:
set_bit(ch_det_th_mask_flag, CMD_CHDET_SINR_SAMPLE);
ret = hci_fm_get_ch_det_th();