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

Commit 940be327 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "platform: msm: check for codec ops"

parents a28c40c4 255c4f67
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -218,6 +218,12 @@ static int msm_ext_disp_update_audio_ops(struct msm_ext_disp *ext_disp,
		goto end;
	}

	if (!ext_disp->ops) {
		pr_err("codec ops not registered\n");
		ret = -EINVAL;
		goto end;
	}

	if (state == EXT_DISPLAY_CABLE_CONNECT) {
		/* connect codec with interface */
		*ext_disp->ops = data->codec_ops;