aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2019-04-29 15:29:40 +0200
committerMark Brown <broonie@kernel.org>2019-05-03 14:54:43 +0900
commit726fc60babe4a46e946e69a9dbd3e21aaec4d58e (patch)
tree28426fdf27b2a4056e04865ce0a964ae638bc700 /sound
parentASoC: SOF: remove redundant null checks of dai (diff)
downloadlinux-dev-726fc60babe4a46e946e69a9dbd3e21aaec4d58e.tar.xz
linux-dev-726fc60babe4a46e946e69a9dbd3e21aaec4d58e.zip
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 <jbrunet@baylibre.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/hdmi-codec.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c
index b9d9dde9fbaf..ef6d6959ecc5 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;