diff options
Diffstat (limited to 'sound/soc/tegra/tegra_asoc_utils.c')
-rw-r--r-- | sound/soc/tegra/tegra_asoc_utils.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/tegra/tegra_asoc_utils.c b/sound/soc/tegra/tegra_asoc_utils.c index 52f0a3f9ce40..dfa85cbb05c8 100644 --- a/sound/soc/tegra/tegra_asoc_utils.c +++ b/sound/soc/tegra/tegra_asoc_utils.c | |||
@@ -28,9 +28,10 @@ | |||
28 | #include "tegra_asoc_utils.h" | 28 | #include "tegra_asoc_utils.h" |
29 | 29 | ||
30 | int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate, | 30 | int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate, |
31 | int mclk, int *mclk_change) | 31 | int mclk) |
32 | { | 32 | { |
33 | int new_baseclock; | 33 | int new_baseclock; |
34 | bool clk_change; | ||
34 | int err; | 35 | int err; |
35 | 36 | ||
36 | switch (srate) { | 37 | switch (srate) { |
@@ -52,10 +53,10 @@ int tegra_asoc_utils_set_rate(struct tegra_asoc_utils_data *data, int srate, | |||
52 | return -EINVAL; | 53 | return -EINVAL; |
53 | } | 54 | } |
54 | 55 | ||
55 | *mclk_change = ((new_baseclock != data->set_baseclock) || | 56 | clk_change = ((new_baseclock != data->set_baseclock) || |
56 | (mclk != data->set_mclk)); | 57 | (mclk != data->set_mclk)); |
57 | if (!*mclk_change) | 58 | if (!clk_change) |
58 | return 0; | 59 | return 0; |
59 | 60 | ||
60 | data->set_baseclock = 0; | 61 | data->set_baseclock = 0; |
61 | data->set_mclk = 0; | 62 | data->set_mclk = 0; |