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

Commit 04a84133 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dsp: fix to race condition in voice call mute command handling."

parents 8de21409 d6093c7f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -7204,6 +7204,16 @@ int voc_enable_device(uint32_t session_id)
			goto done;
		}
		v->voc_state = VOC_RUN;

		if (v->lch_mode == 0) {
			pr_debug("%s: dev_mute = %d, ramp_duration = %d ms\n",
				__func__, v->dev_rx.dev_mute,
				 v->dev_rx.dev_mute_ramp_duration_ms);
			ret = voice_send_device_mute_cmd(v,
					VSS_IVOLUME_DIRECTION_RX,
					v->dev_rx.dev_mute,
					v->dev_rx.dev_mute_ramp_duration_ms);
		}
	} else {
		pr_debug("%s: called in voc state=%d, No_OP\n",
			 __func__, v->voc_state);