ASoC: Intel: Skylake: Do not check dev_type for dmic link type
Some BIOS have inconsistent dev_type value for DMIC link type. Since there is only one device type for DMIC link type, remove device type check if link type is NHLT_LINK_DMIC. Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com> Acked-By: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
4c761ebfcb
commit
e02b03303f
|
@ -119,11 +119,16 @@ static bool skl_check_ep_match(struct device *dev, struct nhlt_endpoint *epnt,
|
|||
|
||||
if ((epnt->virtual_bus_id == instance_id) &&
|
||||
(epnt->linktype == link_type) &&
|
||||
(epnt->direction == dirn) &&
|
||||
(epnt->device_type == dev_type))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
(epnt->direction == dirn)) {
|
||||
/* do not check dev_type for DMIC link type */
|
||||
if (epnt->linktype == NHLT_LINK_DMIC)
|
||||
return true;
|
||||
|
||||
if (epnt->device_type == dev_type)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
struct nhlt_specific_cfg
|
||||
|
|
Loading…
Reference in New Issue