From: Jerome Brunet Date: Mon, 29 Apr 2019 13:29:40 +0000 (+0200) Subject: ASoC: hdmi-codec: stream is already locked in hw_params X-Git-Tag: v5.15~6087^2~8^2~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=726fc60babe4a46e946e69a9dbd3e21aaec4d58e;p=platform%2Fkernel%2Flinux-starfive.git ASoC: hdmi-codec: stream is already locked in hw_params startup() should have run before hw_params() is called, so the current_substream pointer should already be properly set. There is no reason to call hdmi_codec_new_stream() again in the hw_params() callback Signed-off-by: Jerome Brunet Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c index b9d9dde..ef6d695 100644 --- a/sound/soc/codecs/hdmi-codec.c +++ b/sound/soc/codecs/hdmi-codec.c @@ -492,10 +492,6 @@ static int hdmi_codec_hw_params(struct snd_pcm_substream *substream, return ret; } - ret = hdmi_codec_new_stream(substream, dai); - if (ret) - return ret; - hdmi_audio_infoframe_init(&hp.cea); hp.cea.channels = params_channels(params); hp.cea.coding_type = HDMI_AUDIO_CODING_TYPE_STREAM;