aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/soc-utils.c')
-rw-r--r--sound/soc/soc-utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c
index b16aaaeb0aab..1d07b931f3d8 100644
--- a/sound/soc/soc-utils.c
+++ b/sound/soc/soc-utils.c
@@ -54,6 +54,12 @@ int snd_soc_params_to_frame_size(struct snd_pcm_hw_params *params)
54} 54}
55EXPORT_SYMBOL_GPL(snd_soc_params_to_frame_size); 55EXPORT_SYMBOL_GPL(snd_soc_params_to_frame_size);
56 56
57int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots)
58{
59 return fs * snd_soc_calc_frame_size(sample_size, channels, tdm_slots);
60}
61EXPORT_SYMBOL_GPL(snd_soc_calc_bclk);
62
57int snd_soc_params_to_bclk(struct snd_pcm_hw_params *params) 63int snd_soc_params_to_bclk(struct snd_pcm_hw_params *params)
58{ 64{
59 int ret; 65 int ret;