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

Commit 3ddb05d1 authored by Kamal Negi's avatar Kamal Negi Committed by Gerrit - the friendly Code Review server
Browse files

radio-iris: Fix bit masking for program service



Use correct bit masking for program service enable in RDS group
processing.

Change-Id: I3dcfc401783dedbbf11d72028eac7e58a5aa893b
Signed-off-by: default avatarKamal Negi <kamaln@codeaurora.org>
parent 610be619
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -4347,8 +4347,7 @@ static int iris_vidioc_s_ctrl(struct file *file, void *priv,
		break;
	case V4L2_CID_PRIVATE_IRIS_RDSGROUP_PROC:
		saved_val = radio->g_rds_grp_proc_ps;
		rds_grps_proc = radio->g_rds_grp_proc_ps | ctrl->value;
		radio->g_rds_grp_proc_ps = (rds_grps_proc >> RDS_CONFIG_OFFSET);
		radio->g_rds_grp_proc_ps |= ctrl->value;
		retval = hci_fm_rds_grps_process(
				&radio->g_rds_grp_proc_ps,
				radio->fm_hdev);
@@ -4362,7 +4361,7 @@ static int iris_vidioc_s_ctrl(struct file *file, void *priv,
		break;
	case V4L2_CID_PRIVATE_IRIS_PSALL:
		saved_val = radio->g_rds_grp_proc_ps;
		rds_grps_proc = (ctrl->value << RDS_CONFIG_OFFSET);
		rds_grps_proc = (ctrl->value << RDS_PS_OFFSET);
		radio->g_rds_grp_proc_ps |= rds_grps_proc;
		retval = hci_fm_rds_grps_process(
				&radio->g_rds_grp_proc_ps,
+1 −0
Original line number Diff line number Diff line
@@ -609,6 +609,7 @@ struct hci_fm_spur_data {
#define AF_SIZE_OFFSET 6
#define AF_LIST_OFFSET 7
#define RT_A_B_FLAG_OFFSET 4
#define RDS_PS_OFFSET  1
/*FM states*/

enum radio_state_t {