aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 6424b10ac29c..f30f3fe4a41b 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -312,6 +312,10 @@ int snd_soc_default_readable_register(struct snd_soc_codec *codec,
312 unsigned int reg); 312 unsigned int reg);
313int snd_soc_default_writable_register(struct snd_soc_codec *codec, 313int snd_soc_default_writable_register(struct snd_soc_codec *codec,
314 unsigned int reg); 314 unsigned int reg);
315int snd_soc_platform_read(struct snd_soc_platform *platform,
316 unsigned int reg);
317int snd_soc_platform_write(struct snd_soc_platform *platform,
318 unsigned int reg, unsigned int val);
315 319
316/* Utility functions to get clock rates from various things */ 320/* Utility functions to get clock rates from various things */
317int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots); 321int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots);
@@ -658,6 +662,10 @@ struct snd_soc_platform_driver {
658 /* probe ordering - for components with runtime dependencies */ 662 /* probe ordering - for components with runtime dependencies */
659 int probe_order; 663 int probe_order;
660 int remove_order; 664 int remove_order;
665
666 /* platform IO - used for platform DAPM */
667 unsigned int (*read)(struct snd_soc_platform *, unsigned int);
668 int (*write)(struct snd_soc_platform *, unsigned int, unsigned int);
661}; 669};
662 670
663struct snd_soc_platform { 671struct snd_soc_platform {