diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2019-01-25 14:35:06 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-28 18:09:10 +0000 |
commit | f403906da05cdea38c222ef472fdc4df29ece47f (patch) | |
tree | 981d3d76bb2958afad5a452b911f9d6f55efaed6 /sound/soc/intel/boards | |
parent | 3a934e7c75b446a104bdea3dd676d7199db9a7bd (diff) | |
download | linux-f403906da05cdea38c222ef472fdc4df29ece47f.tar.gz linux-f403906da05cdea38c222ef472fdc4df29ece47f.tar.bz2 linux-f403906da05cdea38c222ef472fdc4df29ece47f.zip |
ASoC: Intel: cht_bsw_rt5672: platform name fixup support
Add helper to override dailink platform name, if passed as parameter
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards')
-rw-r--r-- | sound/soc/intel/boards/cht_bsw_rt5672.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/intel/boards/cht_bsw_rt5672.c b/sound/soc/intel/boards/cht_bsw_rt5672.c index 9de64f447e7b..f1c1f9dd5353 100644 --- a/sound/soc/intel/boards/cht_bsw_rt5672.c +++ b/sound/soc/intel/boards/cht_bsw_rt5672.c @@ -400,6 +400,7 @@ static int snd_cht_mc_probe(struct platform_device *pdev) int ret_val = 0; struct cht_mc_private *drv; struct snd_soc_acpi_mach *mach = pdev->dev.platform_data; + const char *platform_name; const char *i2c_name; int i; @@ -426,6 +427,14 @@ static int snd_cht_mc_probe(struct platform_device *pdev) } } + /* override plaform name, if required */ + platform_name = mach->mach_params.platform; + + ret_val = snd_soc_fixup_dai_links_platform_name(&snd_soc_card_cht, + platform_name); + if (ret_val) + return ret_val; + drv->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3"); if (IS_ERR(drv->mclk)) { dev_err(&pdev->dev, |