Skip to content

Commit 9ff967d

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 <[email protected]> Acked-by: Peter Ujfalusi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent cd59ca8 commit 9ff967d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

891891
if (num_capture >= SOF_HDA_CAPTURE_STREAMS) {
892892
dev_err(sdev->dev, "error: too many capture streams %d\n",
893-
num_playback);
893+
num_capture);
894894
return -EINVAL;
895895
}
896896

0 commit comments

Comments
 (0)