Skip to content
Permalink
Browse files
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>
  • Loading branch information
Amadeusz Sławiński authored and intel-lab-lkp committed Oct 15, 2021
1 parent 418a9f8 commit 2d319eabf52e504c98ef5c0fdd812347b41edd00
Showing 1 changed file with 1 addition and 1 deletion.
@@ -384,7 +384,7 @@ static int snd_intel_dsp_check_dmic(struct pci_dev *pci)

nhlt = intel_nhlt_init();
if (nhlt) {
if (intel_nhlt_get_dmic_geo(nhlt))
if (intel_nhlt_has_endpoint_type(nhlt, NHLT_LINK_DMIC))
ret = 1;
intel_nhlt_free(nhlt);
}

0 comments on commit 2d319ea

Please sign in to comment.