From: Pierre-Louis Bossart Date: Thu, 16 Jun 2022 21:53:40 +0000 (-0500) Subject: ASoC: SOF: Intel: hda-stream: report error on stream not opened X-Git-Tag: v6.0-rc1~93^2~8^2~37^2~91^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3abc88730a0e45247296a561a12e811b5d2d2236;p=thirdparty%2Fkernel%2Flinux.git ASoC: SOF: Intel: hda-stream: report error on stream not opened We report -ENODEV but only use dev_dbg, this is inconsistent. dev_err() makes sense here. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Reviewed-by: Péter Ujfalusi Reviewed-by: Bard Liao Link: https://lore.kernel.org/r/20220616215351.135643-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/intel/hda-stream.c b/sound/soc/sof/intel/hda-stream.c index daeb64c495e40..d3403b7a2b2ea 100644 --- a/sound/soc/sof/intel/hda-stream.c +++ b/sound/soc/sof/intel/hda-stream.c @@ -271,7 +271,7 @@ int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag) HDA_VS_INTEL_EM2_L1SEN, HDA_VS_INTEL_EM2_L1SEN); if (!found) { - dev_dbg(sdev->dev, "%s: stream_tag %d not opened!\n", + dev_err(sdev->dev, "%s: stream_tag %d not opened!\n", __func__, stream_tag); return -ENODEV; }