summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2009-07-22 13:01:03 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-07-23 11:30:56 +0100
commit474828a40f6ddab6e2a3475a19c5c84aa3ec7d60 (patch)
tree15da7b963bbe20704bca139b355a020686f97a52 /include
parenta7569afa8b79ca9272b0d7544335bc05b5b721d6 (diff)
downloadlinux-3.10-474828a40f6ddab6e2a3475a19c5c84aa3ec7d60.tar.gz
linux-3.10-474828a40f6ddab6e2a3475a19c5c84aa3ec7d60.tar.bz2
linux-3.10-474828a40f6ddab6e2a3475a19c5c84aa3ec7d60.zip
ALSA: Allow passing platform_data to devices attached to AC97 bus
This patch allows passing platform_data to devices attached to AC97 bus (like touchscreens, battery measurement chips ...). Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-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 251fc1cd500..9b1c0985480 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);
/* ad hoc AC97 device driver access */
extern struct bus_type ac97_bus_type;
+/* AC97 platform_data adding function */
+static inline void snd_ac97_dev_add_pdata(struct snd_ac97 *ac97, void *data)
+{
+ ac97->dev.platform_data = data;
+}
+
#endif /* __SOUND_AC97_CODEC_H */
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index 05991b0925e..25d62ac53fc 100644
--- a/include/sound/soc-dai.h
+++ b/include/sound/soc-dai.h
@@ -179,6 +179,7 @@ struct snd_soc_dai {
int ac97_control;
struct device *dev;
+ void *ac97_pdata; /* platform_data for the ac97 codec */
/* DAI callbacks */
int (*probe)(struct platform_device *pdev,