]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: SOF: Intel: hda-stream: Fix incorrect variable used in error message
authorColin Ian King <colin.i.king@gmail.com>
Tue, 2 Sep 2025 12:06:39 +0000 (13:06 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 2 Sep 2025 13:37:32 +0000 (14:37 +0100)
The dev_err message is reporting an error about capture streams however
it is using the incorrect variable num_playback instead of num_capture.
Fix this by using the correct variable num_capture.

Fixes: a1d1e266b445 ("ASoC: SOF: Intel: Add Intel specific HDA stream operations")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20250902120639.2626861-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-stream.c

index aa6b0247d5c99e58771b3d8b16e271b7f92ac142..a34f472ef1751f1257def27b602dc0102c8cd35c 100644 (file)
@@ -890,7 +890,7 @@ int hda_dsp_stream_init(struct snd_sof_dev *sdev)
 
        if (num_capture >= SOF_HDA_CAPTURE_STREAMS) {
                dev_err(sdev->dev, "error: too many capture streams %d\n",
-                       num_playback);
+                       num_capture);
                return -EINVAL;
        }