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

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

Merge "ASoC: codecs: fix edid error when hdmi ops is null"

parents e9bd8270 e41138f3
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -38,8 +38,12 @@ static int msm_hdmi_edid_ctl_info(struct snd_kcontrol *kcontrol,


	codec_data = snd_soc_codec_get_drvdata(codec);
	codec_data = snd_soc_codec_get_drvdata(codec);


	if (!codec_data->hdmi_ops.get_audio_edid_blk)
	if (!codec_data->hdmi_ops.get_audio_edid_blk) {
		return -EINVAL;
		pr_debug("%s: get_audio_edid_blk() is NULL\n", __func__);
		uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
		uinfo->count = 0;
		return 0;
	}


	rc = codec_data->hdmi_ops.get_audio_edid_blk(
	rc = codec_data->hdmi_ops.get_audio_edid_blk(
			codec_data->hdmi_core_pdev,
			codec_data->hdmi_core_pdev,