Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp244467pxf; Wed, 10 Mar 2021 05:32:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGa0CFUzTLiuv1HmagdodOhl7P0mhQJQm8x5YAgCiH+YW2bujMW51TWyD5xFtX68J4Hqdq X-Received: by 2002:a05:6402:1754:: with SMTP id v20mr3220055edx.191.1615383141407; Wed, 10 Mar 2021 05:32:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383141; cv=none; d=google.com; s=arc-20160816; b=gZrecTEU/T6DNRzP6CERIFz2aTSX2mGhRUHJ6/OZrxvN9Pue4h/5Wxp8FfN8UHgA2F sy9cJegl6l7CLosZiaaCacYscd7g6/zhVGvheaupMokwh9RGw96k4q/cLpsWZSwI5aFq el5twfwOqrCrgv324JgQBf8B5C66Xv+OZobNX2Wby44C8JcXPX7mYDqJteykvgV3//iz z90ThctbopBsWBkgRJtqev0Wc81G1RSrDcSLIhRV9magR8dVJoatYZ5kdciywS9lnAI2 vAkJrGUgsW7SPn364uoRUW4x9T66DdfbkbK03UnAAHq4mOFT9G8gTGvawjQRtRIlTGkB KlnQ== 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=hEH1Kq6DxpeNl7MmR+7Cml6fpjZ8HwYEXA0OXyL9Nb1xX+qY0BPESVktSTKmMn7LFz C/X3oQQDEeS++nndnFAyWQSP1YTyBCPNc5AbxVsQYvgiX62HVj+8CNSdxsrlTfcJ181f /JP4uLzSokZpchYnFGRPDjSp7KUlJdXJep66eNDUi6Z37lzSg4CpOCmk3LRRmRTFqdMu CEB8eU3p+MjI48CTStI9Fd387eEsfNP8DXON2pBnvCyeE8RJyxHyg2AaHzJ3l2p91UF8 fgXNsPOC2xehJpzHc+4sKj+JfPTagpeSyam0ImHlycNFr2gaiPJ/IqsjPYPjA8X+Bu7j UC+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S+loJNCK; 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 cy27si11633212edb.529.2021.03.10.05.31.58; Wed, 10 Mar 2021 05:32:21 -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=S+loJNCK; 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 S234506AbhCJNav (ORCPT + 99 others); Wed, 10 Mar 2021 08:30:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:47264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233364AbhCJNZ1 (ORCPT ); Wed, 10 Mar 2021 08:25:27 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 592D464FFA; Wed, 10 Mar 2021 13:25:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382726; bh=jnvREqkWOwfPsE+m6wvepIilJ/GqGuTcWPGG1RVnuB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S+loJNCKydT2UBfrqrNqMMjXqfm96RG3iZFWqTUJqz1hYfsa9ic5lnhRq1aGXiZ03 WDHrn79wOmsFff41GJQge1Vz5ehmTs4U69UY4nsBOrKs+6oIbBSXhw/mn3qa1R2Mv5 06vl3rhg8z/bvIQdwAE7dLNKwqO2etzwKiB/NBU4= 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.10 45/49] ASoC: Intel: sof_sdw: add quirk for HP Spectre x360 convertible Date: Wed, 10 Mar 2021 14:23:56 +0100 Message-Id: <20210310132323.366723592@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132321.948258062@linuxfoundation.org> References: <20210310132321.948258062@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