asoc: tegra-alt: utils: remove hardcoded codec clk
Dara Ramesh [Mon, 25 Aug 2014 00:52:09 +0000 (17:52 -0700)]
- removed hardcoded codec clock (12.28) from clock init,
 for some codec it requires different clock.
- audience requires 19.2 MHz codec clock.

Change-Id: I522fd0a1bebba7c707979c3cf5c3f508a0e0598a
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: http://git-master/r/487488
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Tested-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com>

sound/soc/tegra-alt/tegra_asoc_utils_alt.c

index 1b4bb11..e883891 100644 (file)
@@ -377,9 +377,12 @@ int tegra_alt_asoc_utils_init(struct tegra_asoc_audio_clock_info *data,
                }
        }
 
-       ret = tegra_alt_asoc_utils_set_rate(data, 48000, 256 * 48000, 256 * 48000);
-       if (ret)
-               goto err_put_out1;
+       if (data->soc < TEGRA_ASOC_UTILS_SOC_TEGRA210) {
+               ret = tegra_alt_asoc_utils_set_rate(data, 48000,
+                                       256 * 48000, 256 * 48000);
+               if (ret)
+                       goto err_put_out1;
+       }
 
        return 0;