5 Aug
2024
5 Aug
'24
4:04 p.m.
On 05. 08. 24 2:33, Kuninori Morimoto wrote:
Hi ALSA-ML Cc Staging-ML, USB-ML
Many drivers are using below code to know the Sound direction.
if (direction == SNDRV_PCM_STREAM_PLAYBACK)
This patch-set add snd_pcm_is_playback/capture() macro to handle it.
Thank you for your help !!
NAK from my side (overdesign, no improved readability). The defines (SNDRV_PCM_STREAM_*) are enough to check the stream type value correctly.
Jaroslav
--
Jaroslav Kysela perex@perex.cz
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.