diff options
author | Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> | 2021-11-26 15:03:54 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-11-30 16:49:08 +0100 |
commit | 8235a08bbc6be993c5de1de1f5d7a07110831248 (patch) | |
tree | 105b31e9ef58986dc6d3eedc230d80b725b0122c /sound/hda | |
parent | 15fa179f3f45415696d376abc84e0098a9586b33 (diff) | |
download | linux-stable-8235a08bbc6be993c5de1de1f5d7a07110831248.tar.gz linux-stable-8235a08bbc6be993c5de1de1f5d7a07110831248.tar.bz2 linux-stable-8235a08bbc6be993c5de1de1f5d7a07110831248.zip |
ALSA: hda: Simplify DMIC-in-NHLT check
Only DMIC endpoint presence is relevant, not its configuration.
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20211126140355.1042684-3-cezary.rojewski@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda')
-rw-r--r-- | sound/hda/intel-dsp-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/hda/intel-dsp-config.c b/sound/hda/intel-dsp-config.c index b9ac9e9e45a4..26f8665da689 100644 --- a/sound/hda/intel-dsp-config.c +++ b/sound/hda/intel-dsp-config.c @@ -384,7 +384,7 @@ static int snd_intel_dsp_check_dmic(struct pci_dev *pci) nhlt = intel_nhlt_init(&pci->dev); if (nhlt) { - if (intel_nhlt_get_dmic_geo(&pci->dev, nhlt)) + if (intel_nhlt_has_endpoint_type(nhlt, NHLT_LINK_DMIC)) ret = 1; intel_nhlt_free(nhlt); } |