Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp242640pxf; Wed, 10 Mar 2021 05:29:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGnxe88nFFfMVYKpNDe+N0i+EdyCED+4wn1L0zwGjeNcYCZ7OfAAyqhC/fksxkrm6QQC1m X-Received: by 2002:aa7:c916:: with SMTP id b22mr3322776edt.299.1615382988852; Wed, 10 Mar 2021 05:29:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382988; cv=none; d=google.com; s=arc-20160816; b=cno+I2oxF8Qqm9njHRZVOGqV8EjWL4oXNt/FkW/7Ey7NKr12PgTyixIqNehfZrhtDZ 51fcXv0Jn+F9xIG0A5R3yes/m56FTPpk2g3mx/G9M94JEiOnI3D4DnWZJShhcCXrCoB/ Mr6wg85Hh2GsSU4MCv9KooH+taI/RgZ/ngGHlTgpvZgbZslDMActMmqA8wF/fOSWxLUD V8VHHglXrSN65HfFR9AE709VNXfQL47Zw99YVMqfjnOMqeSsuKI5AOgF8NL99sV94teD /tyqoG67P1OS4Ud/cNU/rzCXBB51JAhettUuDnbWTfql2xcUSxRiHriEhBPhqoM8i8Ov /B4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=I4KvVfjmUTuw3H/sau1fQR0lhNjLKRWjZswaBQN5yWw=; b=IcWCGxhgfYfgb/C+qHqpnLah2HfmZGVmjMW8H8/cU0ojbTnxPFIcd/r+drqiNqlL77 JLzu23Q8TUxCloq5jrKhEEBVkFpv+ErZ7+EBxwhsET3FGWOvULSe2vJtTMdzi+o8YnaP x1xNiBeUe2+ncGChEVPLEqBbGzBnspKOyS8HjR1kwY9e/YfEJkKLRlWGK3Q1vLH0j575 PYJ5C4jPd0QfocVQL3kVY7vtoS/dY35LfKKtSuJsmtM9eVutxbFFGhwdSc9wA3SuepKS PMh7b8zYCEvmi07AdGRMwbI4QPVY+AR8VV2tpMwLHFaYvVKGBwbVaDFoT6dFDsGl/Lx+ mdxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NrRcncJ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh9si5853694ejb.341.2021.03.10.05.29.26; Wed, 10 Mar 2021 05:29:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NrRcncJ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232471AbhCJN0k (ORCPT + 99 others); Wed, 10 Mar 2021 08:26:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:46298 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233077AbhCJNYw (ORCPT ); Wed, 10 Mar 2021 08:24:52 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 713ED64FD7; Wed, 10 Mar 2021 13:24:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382691; bh=jnvREqkWOwfPsE+m6wvepIilJ/GqGuTcWPGG1RVnuB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NrRcncJ96MHrEIptgqgFN27G5w9kf10IB1a5q3CmnEaJZNVzcYRVJ3i4FJQplOGqN Akq+nzpyuLfaa6+D9hWYdvbI8NhA31kGB5qWyn73playI9MX44VXFQAND33/PfN3Py Exnh8dgKXr0ap73w6LUwT/vmXZUZJ1jwCOhA+1Oc= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pierre-Louis Bossart , Guennadi Liakhovetski , Kai Vehmanen , Mark Brown , Sasha Levin Subject: [PATCH 5.11 32/36] ASoC: Intel: sof_sdw: add quirk for HP Spectre x360 convertible Date: Wed, 10 Mar 2021 14:23:45 +0100 Message-Id: <20210310132321.524091477@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.510840709@linuxfoundation.org> References: <20210310132320.510840709@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Pierre-Louis Bossart [ Upstream commit d92e279dee56b4b65c1af21f972413f172a9734a ] This set of devices has SoundWire support along with DMICs. The DMI information was provided by users for 3 separate skus. BugLink: https://github.com/thesofproject/linux/issues/2700 Signed-off-by: Pierre-Louis Bossart Reviewed-by: Guennadi Liakhovetski Reviewed-by: Kai Vehmanen Link: https://lore.kernel.org/r/20210208233336.59449-4-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/sof_sdw.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c index 9e2e8f508ed4..1d7677376e74 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -159,6 +159,22 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = { SOF_SDW_PCH_DMIC | SOF_SDW_FOUR_SPK), }, + { + /* + * this entry covers multiple HP SKUs. The family name + * does not seem robust enough, so we use a partial + * match that ignores the product name suffix + * (e.g. 15-eb1xxx, 14t-ea000 or 13-aw2xxx) + */ + .callback = sof_sdw_quirk_cb, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "HP"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP Spectre x360 Convertible"), + }, + .driver_data = (void *)(SOF_SDW_TGL_HDMI | + SOF_SDW_PCH_DMIC | + SOF_RT711_JD_SRC_JD2), + }, /* TigerLake-SDCA devices */ { .callback = sof_sdw_quirk_cb, -- 2.30.1