5 Aug
2024
5 Aug
'24
2:37 a.m.
We can use snd_pcm_is_playback/capture(). Let's use it.
Signed-off-by: Kuninori Morimoto kuninori.morimoto.gx@renesas.com --- sound/firewire/motu/motu-pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/firewire/motu/motu-pcm.c b/sound/firewire/motu/motu-pcm.c index d410c2efbde57..411d2b3dccbb8 100644 --- a/sound/firewire/motu/motu-pcm.c +++ b/sound/firewire/motu/motu-pcm.c @@ -101,7 +101,7 @@ static int init_hw_info(struct snd_motu *motu, struct snd_motu_packet_format *formats; int err;
- if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) { + if (snd_pcm_is_capture(substream)) { hw->formats = SNDRV_PCM_FMTBIT_S32; stream = &motu->tx_stream; formats = &motu->tx_packet_formats;
--
2.43.0