From b5cf45832696953488308daeaececa2e348b8043 Mon Sep 17 00:00:00 2001 From: Meng Wang Date: Wed, 4 Sep 2019 09:22:07 +0800 Subject: [PATCH] asoc: hdmi: return 0 when get_audio_edid_blk is NULL when get_audio_edid_blk is NULL, msm_ext_disp_edid_ctl_info returns error value. And it would cause tinymix doesn't have full mix cmd list. Return 0 instead to avoid such issue. Change-Id: Ic13067483b373fa4a81b663ece3d3e4a18ea8a87 Signed-off-by: Meng Wang --- asoc/codecs/msm_hdmi_codec_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asoc/codecs/msm_hdmi_codec_rx.c b/asoc/codecs/msm_hdmi_codec_rx.c index 8d2507e461e7..5144b923b03e 100644 --- a/asoc/codecs/msm_hdmi_codec_rx.c +++ b/asoc/codecs/msm_hdmi_codec_rx.c @@ -100,7 +100,7 @@ static int msm_ext_disp_edid_ctl_info(struct snd_kcontrol *kcontrol, uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES; uinfo->count = 0; mutex_unlock(&codec_data->dp_ops_lock); - return -EINVAL; + return 0; } rc = codec_data->ext_disp_ops.get_audio_edid_blk(