Re: [PATCH v2 1/4] ALSA: emu10k1: automate encoding of sub-register definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 14 May 2023 19:03:20 +0200,
Oswald Buddenhagen wrote:
> 
> The idea to encode the bitfield manipulation in the register address is
> quite clever, but doing that by hand is ugly and error-prone. So derive
> it automatically from the mask instead.
> 
> Macros cannot #define other macros, so we now declare enums instead.
> 
> This also adds macros for decoding the register definitions. These will
> be used by later commits.
> 
> Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@xxxxxx>
> ---
> v2: added comments

Applied all four patches now.  Thanks.


Takashi



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux