diff options
author | Ajye Huang <ajye_huang@compal.corp-partner.google.com> | 2022-11-08 12:27:16 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-11-15 14:17:45 +0000 |
commit | c7a79f546100300d18585506f8fd0460a874df4a (patch) | |
tree | b53b6250c060fa28f69d0983c14f96948d61fdfe /sound/soc/intel | |
parent | 1a9a5ebe1175537dc817531fe74c5949c3a823c1 (diff) | |
download | lwn-c7a79f546100300d18585506f8fd0460a874df4a.tar.gz lwn-c7a79f546100300d18585506f8fd0460a874df4a.zip |
ASoC: Intel: sof rt5682: remove the duplicate codes
Remove the redundant code to prevent user confuse.
Signed-off-by: Ajye Huang <ajye_huang@compal.corp-partner.google.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20221108042716.2930255-3-ajye_huang@compal.corp-partner.google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r-- | sound/soc/intel/boards/sof_rt5682.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/intel/boards/sof_rt5682.c b/sound/soc/intel/boards/sof_rt5682.c index ffec9e4a5103..0521b0a08b20 100644 --- a/sound/soc/intel/boards/sof_rt5682.c +++ b/sound/soc/intel/boards/sof_rt5682.c @@ -855,10 +855,6 @@ static int sof_audio_probe(struct platform_device *pdev) if (acpi_dev_present("RTL5682", NULL, -1)) sof_rt5682_quirk |= SOF_RT5682S_HEADPHONE_CODEC_PRESENT; - /* Detect the headset codec variant to support machines in DMI quirk */ - if (acpi_dev_present("RTL5682", NULL, -1)) - sof_rt5682_quirk |= SOF_RT5682S_HEADPHONE_CODEC_PRESENT; - if (soc_intel_is_byt() || soc_intel_is_cht()) { is_legacy_cpu = 1; dmic_be_num = 0; |