diff options
author | Liam Girdwood <lrg@ti.com> | 2011-07-04 06:10:15 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-07-04 15:41:07 -0400 |
commit | f1442bc1e9bd5ff4c2470d66075d066e535a2c86 (patch) | |
tree | 4042a6e01058d504cf8dba8484d32832547c33c3 /include | |
parent | 469bb638dc2a6ea87ea56256f25cc964deb3cf2b (diff) |
ASoC: core - Add platform read and write.
In preparation for ASoC Dynamic PCM (AKA DSP) support.
Allow platform driver to perform IO. Intended for platform DAPM.
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/soc.h | 8 |
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); |
313 | int snd_soc_default_writable_register(struct snd_soc_codec *codec, | 313 | int snd_soc_default_writable_register(struct snd_soc_codec *codec, |
314 | unsigned int reg); | 314 | unsigned int reg); |
315 | int snd_soc_platform_read(struct snd_soc_platform *platform, | ||
316 | unsigned int reg); | ||
317 | int 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 */ |
317 | int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots); | 321 | int 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 | ||
663 | struct snd_soc_platform { | 671 | struct snd_soc_platform { |