diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2018-06-18 21:29:36 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-06-19 17:46:57 +0300 |
commit | 5f15f267daf81a4c7c2a1cd2a0d6743ec7fc8b59 (patch) | |
tree | bd454d4f5c837036f1a1d331bb0061333200a71e /sound/soc | |
parent | 95555f580dca21fac5ea35c10fa92fa034bd403f (diff) | |
download | linux-5f15f267daf81a4c7c2a1cd2a0d6743ec7fc8b59.tar.xz |
ASoC: Intel: Skylake: cleanup before moving ACPI tables
There is no need to deal with DMICs if the DSP is not present and
there is no ACPI machine ID found.
Simplify before moving these ACPI tables to sound/soc/intel/common
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')
-rw-r--r-- | sound/soc/intel/skylake/skl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c index 0a8f0768e987..6dec748e8949 100644 --- a/sound/soc/intel/skylake/skl.c +++ b/sound/soc/intel/skylake/skl.c @@ -500,10 +500,12 @@ static int skl_find_machine(struct skl *skl, void *driver_data) skl->mach = mach; skl->fw_name = mach->fw_filename; - pdata = skl->mach->pdata; + pdata = mach->pdata; - if (mach->pdata) + if (pdata) { skl->use_tplg_pcm = pdata->use_tplg_pcm; + pdata->dmic_num = skl_get_dmic_geo(skl); + } return 0; } @@ -930,8 +932,6 @@ static int skl_probe(struct pci_dev *pci, pci_set_drvdata(skl->pci, ebus); - skl_dmic_data.dmic_num = skl_get_dmic_geo(skl); - /* check if dsp is there */ if (bus->ppcap) { /* create device for dsp clk */ |