Commit e02b0330 authored by Guneshwor Singh's avatar Guneshwor Singh Committed by Mark Brown

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: default avatarGuneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4c761ebf
...@@ -119,11 +119,16 @@ static bool skl_check_ep_match(struct device *dev, struct nhlt_endpoint *epnt, ...@@ -119,11 +119,16 @@ static bool skl_check_ep_match(struct device *dev, struct nhlt_endpoint *epnt,
if ((epnt->virtual_bus_id == instance_id) && if ((epnt->virtual_bus_id == instance_id) &&
(epnt->linktype == link_type) && (epnt->linktype == link_type) &&
(epnt->direction == dirn) && (epnt->direction == dirn)) {
(epnt->device_type == dev_type)) /* do not check dev_type for DMIC link type */
return true; if (epnt->linktype == NHLT_LINK_DMIC)
else return true;
return false;
if (epnt->device_type == dev_type)
return true;
}
return false;
} }
struct nhlt_specific_cfg struct nhlt_specific_cfg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment