]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: soc-dai: Add private data to snd_soc_dai
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 7 Jul 2025 12:41:52 +0000 (13:41 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 15 Jul 2025 18:45:48 +0000 (19:45 +0100)
Add a private data pointer that can be used to store context along
with the DAI. This will be useful to allow the SDCA class library to
store data separately from the CODEC driver itself.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20250707124155.2596744-5-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dai.h

index d19ab5572d2baa05ad8a91b30eb88e29bb43e9f4..166c29557e9d7c89720d418ec0cc5610207c4b43 100644 (file)
@@ -463,6 +463,9 @@ struct snd_soc_dai {
 
        /* bit field */
        unsigned int probed:1;
+
+       /* DAI private data */
+       void *priv;
 };
 
 static inline const struct snd_soc_pcm_stream *