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

Commit 6445f4d4 authored by Siena Richard's avatar Siena Richard Committed by Gerrit - the friendly Code Review server
Browse files

msm: qdsp6v2: set device channels on vocproc



Media format data is used only to account for additional buffering
required in vocproc when a fractional sample rate is set. Set device
channels irrespective of the media format info in order to configure
the input no of channels when a custom topology is used.

CRs-Fixed: 1116092
Change-Id: I6eadba65dbed102aec085d99f28c39e66ea4b89b
Signed-off-by: default avatarSiena Richard <sienar@codeaurora.org>
parent 24377df2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3990,6 +3990,10 @@ static int voice_send_cvp_media_fmt_info_cmd(struct voice_data *v)
{
	int ret;

	ret = voice_send_cvp_device_channels_cmd(v);
	if (ret < 0)
		goto done;

	if (voice_get_cvd_int_version(common.cvd_version) >=
	    CVD_INT_VERSION_2_3) {
		ret = voice_send_cvp_media_format_cmd(v, RX_PATH);
@@ -4002,8 +4006,6 @@ static int voice_send_cvp_media_fmt_info_cmd(struct voice_data *v)

		if (common.ec_ref_ext)
			ret = voice_send_cvp_media_format_cmd(v, EC_REF_PATH);
	} else {
		ret = voice_send_cvp_device_channels_cmd(v);
	}

done: