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>
This commit is contained in:
Родитель
15fa179f3f
Коммит
8235a08bbc
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче