From: Amadeusz Sławiński Date: Fri, 26 Nov 2021 14:03:54 +0000 (+0100) Subject: ALSA: hda: Simplify DMIC-in-NHLT check X-Git-Tag: v6.1-rc5~2159^2~28^2~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8235a08bbc6be993c5de1de1f5d7a07110831248;p=platform%2Fkernel%2Flinux-starfive.git ALSA: hda: Simplify DMIC-in-NHLT check Only DMIC endpoint presence is relevant, not its configuration. Signed-off-by: Amadeusz Sławiński Signed-off-by: Cezary Rojewski Link: https://lore.kernel.org/r/20211126140355.1042684-3-cezary.rojewski@intel.com Signed-off-by: Takashi Iwai --- diff --git a/sound/hda/intel-dsp-config.c b/sound/hda/intel-dsp-config.c index b9ac9e9..26f8665 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); }