diff options
author | Simon Je <sje@nvidia.com> | 2013-06-11 15:24:53 +0900 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-06-13 18:41:49 -0700 |
commit | 64c5fddd67769c7eeaff8d61c3fe49d4b4625986 (patch) | |
tree | 730a49862c9b068edfb79c43ed3f9f59c2b6fe44 /sound | |
parent | 595f673c183fca4376a7867ddd6820a19998d2f9 (diff) |
asoc: tegra: add use_codec_jd_irq to allow AP to be able to use codec irq
Bug 1287224
Change-Id: I1e9d76cd1a6a0d3a0f90c7453afa98387e5129f3
Signed-off-by: Simon Je <sje@nvidia.com>
Reviewed-on: http://git-master/r/237530
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/tegra/tegra_rt5640.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/tegra/tegra_rt5640.c b/sound/soc/tegra/tegra_rt5640.c index 7b3ed820fc37..93c3c5f81c80 100644 --- a/sound/soc/tegra/tegra_rt5640.c +++ b/sound/soc/tegra/tegra_rt5640.c @@ -1031,6 +1031,12 @@ static __devinit int tegra_rt5640_driver_probe(struct platform_device *pdev) goto err_unregister_card; } + if (pdata->use_codec_jd_irq) { + codec = card->rtd[DAI_LINK_HIFI].codec; + if (!strncmp(pdata->codec_name, "rt5639", 6)) + rt5639_irq_jd_reg_init(codec); + } + #ifndef CONFIG_ARCH_TEGRA_2x_SOC ret = tegra_asoc_utils_set_parent(&machine->util_data, pdata->i2s_param[HIFI_CODEC].is_i2s_master); |