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

Commit b5cf4583 authored by Meng Wang's avatar Meng Wang
Browse files

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: default avatarMeng Wang <mengw@codeaurora.org>
parent 47673f2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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(