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 <mengw@codeaurora.org>
This commit is contained in:
Meng Wang 2019-09-04 09:22:07 +08:00
commit b5cf458326

View file

@ -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(