Browse Source

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 <[email protected]>
Meng Wang 5 years ago
parent
commit
b5cf458326
1 changed files with 1 additions and 1 deletions
  1. 1 1
      asoc/codecs/msm_hdmi_codec_rx.c

+ 1 - 1
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(