summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-11-19 11:36:10 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-11-25 19:55:46 +0000
commitc0fa59df7214e546f8a37bc677867ac7b67b5c93 (patch)
tree80d1e2e8861f5b84d61d195bf880933c0ace727d /include/sound
parent2449ae85e3c88ef27853aef0d19772149e269ae7 (diff)
downloadop-kernel-dev-c0fa59df7214e546f8a37bc677867ac7b67b5c93.zip
op-kernel-dev-c0fa59df7214e546f8a37bc677867ac7b67b5c93.tar.gz
ASoC: Add BCLK calculation utility for TDM mode too
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 13b117a..0d7718f9 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -230,6 +230,7 @@ int snd_soc_new_pcms(struct snd_soc_device *socdev, int idx, const char *xid);
/* Utility functions to get clock rates from various things */
int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots);
int snd_soc_params_to_frame_size(struct snd_pcm_hw_params *params);
+int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots);
int snd_soc_params_to_bclk(struct snd_pcm_hw_params *parms);
/* set runtime hw params */
OpenPOWER on IntegriCloud