diff options
author | Mark Brown | 2018-01-12 19:59:19 +0100 |
---|---|---|
committer | Mark Brown | 2018-01-12 19:59:19 +0100 |
commit | 9d66a875ecc7d6dd414121e4508340d6c08f51b0 (patch) | |
tree | d446bb455780d9058efe1760745bfb63207090de /sound/soc/intel/skylake/skl-nhlt.c | |
parent | ASoC: sn95031: remove this code (diff) | |
parent | gpio: merrifield: Add support of ACPI enabled platforms (diff) | |
download | kernel-qcow2-linux-9d66a875ecc7d6dd414121e4508340d6c08f51b0.tar.gz kernel-qcow2-linux-9d66a875ecc7d6dd414121e4508340d6c08f51b0.tar.xz kernel-qcow2-linux-9d66a875ecc7d6dd414121e4508340d6c08f51b0.zip |
Merge branch 'acpi-gpio' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm into asoc-intel
Diffstat (limited to 'sound/soc/intel/skylake/skl-nhlt.c')
-rw-r--r-- | sound/soc/intel/skylake/skl-nhlt.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sound/soc/intel/skylake/skl-nhlt.c b/sound/soc/intel/skylake/skl-nhlt.c index d9b3dc89a1dc..3b1d2b828c1b 100644 --- a/sound/soc/intel/skylake/skl-nhlt.c +++ b/sound/soc/intel/skylake/skl-nhlt.c @@ -121,11 +121,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 |