diff options
author | Stephen Warren <swarren@nvidia.com> | 2011-04-19 17:25:09 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-04-20 08:49:55 -0400 |
commit | 075413966a6ea389f78f4cc2e957708c1d6db8c5 (patch) | |
tree | 7f67ad032800ff3469d772c214885778bf9e41d5 /sound/soc/tegra/tegra_asoc_utils.h | |
parent | acb8303f15768c72796f3f95bb32a955333e0fbc (diff) |
ASoC: Tegra: Don't return mclk_changed from utils_set_rate
Only the clock programming code needs to know whether the clocks changed,
and that is encapsulated within tegra_asoc_utils_set_rate(). The machine
driver's call to snd_soc_dai_set_sysclk(codec_dai, ...) is safe
irrespective of whether the clocks changed.
(Applying Mark's TrimSlice review comments to the existing driver)
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/tegra/tegra_asoc_utils.h')
-rw-r--r-- | sound/soc/tegra/tegra_asoc_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra_asoc_utils.h b/sound/soc/tegra/tegra_asoc_utils.h index bbba7afdfc2c..4818195da25c 100644 --- a/sound/soc/tegra/tegra_asoc_utils.h +++ b/sound/soc/tegra/tegra_asoc_utils.h | |||
@@ -36,7 +36,7 @@ struct tegra_asoc_utils_data { | |||
36 | }; | 36 | }; |
37 | 37 | ||
38 | int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate, | 38 | int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate, |
39 | int mclk, int *mclk_change); | 39 | int mclk); |
40 | int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data, | 40 | int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data, |
41 | struct device *dev); | 41 | struct device *dev); |
42 | void tegra_asoc_utils_fini(struct tegra_asoc_utils_data *data); | 42 | void tegra_asoc_utils_fini(struct tegra_asoc_utils_data *data); |