Skip to content

Commit 8a82e3a

Browse files
ColinIanKinggregkh
authored andcommitted
ASoC: SOF: Intel: hda-stream: Fix incorrect variable used in error message
[ Upstream commit 35fc531 ] 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: a1d1e26 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8b19c81 commit 8a82e3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/intel/hda-stream.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ int hda_dsp_stream_init(struct snd_sof_dev *sdev)
655655

656656
if (num_capture >= SOF_HDA_CAPTURE_STREAMS) {
657657
dev_err(sdev->dev, "error: too many capture streams %d\n",
658-
num_playback);
658+
num_capture);
659659
return -EINVAL;
660660
}
661661

0 commit comments

Comments
 (0)