diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2024-02-26 13:44:32 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-03-04 09:17:02 +0100 |
commit | ee14bad1d3e3461fddffba280dd1caeb1b3c7a1d (patch) | |
tree | b917ecb7a45c38fb49e3a6b582c8ed2398c3089f /sound/pci | |
parent | 3adb233ec8777fd3a37441e363b91b9de6a9c2d2 (diff) |
ALSA: hda: Reuse for_each_pcm_streams()
Use the macro to improve readability.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240226124432.1203798-6-cezary.rojewski@intel.com
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 12f02cdc9659..2cac337f5263 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -3313,7 +3313,7 @@ int snd_hda_codec_parse_pcms(struct hda_codec *codec) list_for_each_entry(cpcm, &codec->pcm_list_head, list) { int stream; - for (stream = 0; stream < 2; stream++) { + for_each_pcm_streams(stream) { struct hda_pcm_stream *info = &cpcm->stream[stream]; if (!info->substreams) |