[Linux-stm32] [PATCH v2 00/16] ASoC: Replace dpcm_playback/capture to playback/capture_only
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Thu Apr 4 23:13:56 UTC 2024
Hi Jerome
Thank you for your feedback
> playback_only and capture_only have implication on each other. If one is
> set, the other can/must not be set. This leads to conditions which can
> be fairly hard to read and possibly bugs.
(snip)
> Wouldn't it be better to replace those 2 flags with a single bitfield ?
>
> something like:
>
> unsigned int directions;
> #define PLAYBACK_VALID BIT(0)
> #define CAPTURE_VALID BIT(1)
I think Amadeusz indicated similar idea, and basically I can agree about
it. But in this patch-set, I want focus to removing dpcm_xxx flag as 1st
step. So I'm happy to create such patch-set, but I want to handle it as
another patch-set.
Thank you for your help !!
Best regards
---
Renesas Electronics
Ph.D. Kuninori Morimoto
More information about the Linux-stm32
mailing list