Skip to content

Commit 5f86d41

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: soc-dai: Add private data to snd_soc_dai
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 <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c57ad86 commit 5f86d41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/sound/soc-dai.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,9 @@ struct snd_soc_dai {
463463

464464
/* bit field */
465465
unsigned int probed:1;
466+
467+
/* DAI private data */
468+
void *priv;
466469
};
467470

468471
static inline const struct snd_soc_pcm_stream *

0 commit comments

Comments
 (0)