]> Gentwo Git Trees - linux/.git/commit
ASoC: soc.h: Add SND_SOC_BYTES_E_ACC() to allow setting access flags
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 20 Nov 2025 13:44:35 +0000 (13:44 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 20 Nov 2025 16:04:20 +0000 (16:04 +0000)
commitd7a82707f19c7a11ce42dd46cb22ca34a58cc9b0
tree5c41978cefa6bce0323d60a97cd8744a0e23ad6f
parentcf6ec18ea6e12569b83af2709d0bd0cc09da198f
ASoC: soc.h: Add SND_SOC_BYTES_E_ACC() to allow setting access flags

Add a macro SND_SOC_BYTES_E_ACC() to allow the access permission flags
to be set. This is the same as SND_SOC_BYTES_E() but with an extra
argument for the access flags.

This will be used by the cs35l56.c driver to create a read-only
volatile byte control. It's preferable to avoid custom control macros
in codec drivers. Code maintenance is easier if all control macros are
defined together in soc.h.

This commit only creates this one macro that is actually going to be used.
There's no point cluttering soc.h with unused macros - that just adds a
maintenance burden. People can add equivalents for the other macros if
they need them.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20251120134437.1179191-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h