]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/sound/ac97_codec.h
ALSA: Allow passing platform_data to devices attached to AC97 bus
[net-next-2.6.git] / include / sound / ac97_codec.h
index 251fc1cd5002db04a7c0d5bddbdb3891542a6665..9b1c0985480cbb3ab6d6735191fbfc93cdcf9c0a 100644 (file)
@@ -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 */