aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/ac97_codec.h6
-rw-r--r--include/sound/soc-dai.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/include/sound/ac97_codec.h b/include/sound/ac97_codec.h
index 251fc1cd5002..9b1c0985480c 100644
--- a/include/sound/ac97_codec.h
+++ b/include/sound/ac97_codec.h
@@ -642,4 +642,10 @@ int snd_ac97_pcm_double_rate_rules(struct snd_pcm_runtime *runtime);
642/* ad hoc AC97 device driver access */ 642/* ad hoc AC97 device driver access */
643extern struct bus_type ac97_bus_type; 643extern struct bus_type ac97_bus_type;
644 644
645/* AC97 platform_data adding function */
646static inline void snd_ac97_dev_add_pdata(struct snd_ac97 *ac97, void *data)
647{
648 ac97->dev.platform_data = data;
649}
650
645#endif /* __SOUND_AC97_CODEC_H */ 651#endif /* __SOUND_AC97_CODEC_H */
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index 05991b0925e0..25d62ac53fc5 100644
--- a/include/sound/soc-dai.h
+++ b/include/sound/soc-dai.h
@@ -179,6 +179,7 @@ struct snd_soc_dai {
179 int ac97_control; 179 int ac97_control;
180 180
181 struct device *dev; 181 struct device *dev;
182 void *ac97_pdata; /* platform_data for the ac97 codec */
182 183
183 /* DAI callbacks */ 184 /* DAI callbacks */
184 int (*probe)(struct platform_device *pdev, 185 int (*probe)(struct platform_device *pdev,