aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 4ab3dad4a9c9..01e9c66ddc6d 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -414,7 +414,7 @@ struct snd_soc_codec {
414 struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */ 414 struct snd_ac97 *ac97; /* for ad-hoc ac97 devices */
415 unsigned int active; 415 unsigned int active;
416 unsigned int pcm_devs; 416 unsigned int pcm_devs;
417 void *private_data; 417 void *drvdata;
418 418
419 /* codec IO */ 419 /* codec IO */
420 void *control_data; /* codec control (i2c/3wire) data */ 420 void *control_data; /* codec control (i2c/3wire) data */
@@ -597,6 +597,17 @@ static inline unsigned int snd_soc_write(struct snd_soc_codec *codec,
597 return codec->write(codec, reg, val); 597 return codec->write(codec, reg, val);
598} 598}
599 599
600static inline void snd_soc_codec_set_drvdata(struct snd_soc_codec *codec,
601 void *data)
602{
603 codec->drvdata = data;
604}
605
606static inline void *snd_soc_codec_get_drvdata(struct snd_soc_codec *codec)
607{
608 return codec->drvdata;
609}
610
600#include <sound/soc-dai.h> 611#include <sound/soc-dai.h>
601 612
602#endif 613#endif