Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1146478pxv; Fri, 9 Jul 2021 19:29:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7rTbWzqQ7VDLD6VEZPFFpiPt7zRtWDj3SneyzZ8VU1SOcXXKs8eIoDzYEVEkcXGkodRXV X-Received: by 2002:a17:907:1c9f:: with SMTP id nb31mr35157512ejc.6.1625884176763; Fri, 09 Jul 2021 19:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884176; cv=none; d=google.com; s=arc-20160816; b=VgKEDKXreA/emljISzWIOwDjcvR1b8oHV5YP5IDrVJiF79s7Gd/ApVA804noJj0jUO qSD5Bcz82AoEtJ9Sby/QoBi+iQ8uK1gjutqL39WTUUxvYi0Qj6Ry1uNaJz5EhTCmMWF3 GqV7vTJDGRpyKH1yUyETPVoKNqfVRR+qJ6qNM2eDMTHASkUmzDDZ1czvAgtJKbtOa/xY nwh+CQdEepcau+iXa+zUUpq14J8WUkDmnxOd6dwrw/zYFvIOTpCYCLlb/jt495vbtG7Z 6VA9YtXVAvOI23NPeq7V2NdzXC7P0pbqxDMLEv4JY6XlHBqbDFeV681frV0Yo+8h/NMZ qyfQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xrqBdkvdgzIivrXz0bs/ToXZ21ArnsUtv9+bNBA+u4I=; b=ZI57k8XVmp2ar/DilK9diFSts0t32Zs5X92BVuJvXcy5DmVpJnaIH2hl1z5NDfJ4Es 40F40e2wj1MF+aybdr+4KGnXE1uXuBs2ndWvSGV/ZghuS83cKdgfZqJkr5S020jLJnEs LWIqGKPzvOKm97ACfdGLJgiPNjLwhSV2N4YiuDC1Er0emdBZOy6iP11926mugSo9qZGS Sb/knnAy/gvYOdzgwIROXv/mi1WZL7nRjQZP88iyg3OXNbFAJw0x0SWp3K+/fbIIx9z7 L2BIIqxuZIEMsqbnyLrtzIGccrE80Y06T+W+P5jMtLrQx2UBh/IqjXb0H7ha6BSGXuYU T+IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wgl7l59d; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz39si9603772ejc.246.2021.07.09.19.29.13; Fri, 09 Jul 2021 19:29:36 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=Wgl7l59d; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233604AbhGJCaw (ORCPT + 99 others); Fri, 9 Jul 2021 22:30:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:42974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233175AbhGJC2G (ORCPT ); Fri, 9 Jul 2021 22:28:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8164F6141D; Sat, 10 Jul 2021 02:24:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883898; bh=OLqbH2d+gVP9ROOjklugV0zALHqGY/8Q2uzXokpItNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wgl7l59d+dpdoMbdmgqJDJSYOUaB0elbp+1MTV1MTj6JMT5/rJo9umFxjyffIZeyB ai/mpNpYPUwIKTsIJUC+rT/Oy8Vkj7G5w9OHq9jvnv37/anD07BvkQd9z42MoiEVpv 2nCr3qtAPgNj4vpG/sBqYGeK/9+AGl2FBOljiTogph05unbv2UTqDyJOIm/nJDwpE3 VULcXvCnflZVGSDgyHfqjL8Rk9FinfieuqQ6dRFDKyAJpdnDpoK0qjxwv5XI70f27P F2aWTy4y/A8z78+nm5UTdrOTA95vDraEVqprmFuWFa5BnbgKgeO5uJ5VRHNGxXnEMU zRDYRatYqglHA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vamshi Krishna Gopal , Yong Zhi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Mark Brown , Sasha Levin , alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.10 22/93] ASoC: Intel: sof_sdw: add quirk support for Brya and BT-offload Date: Fri, 9 Jul 2021 22:23:16 -0400 Message-Id: <20210710022428.3169839-22-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022428.3169839-1-sashal@kernel.org> References: <20210710022428.3169839-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vamshi Krishna Gopal [ Upstream commit 03effde3a2ea1d82c4dd6b634fc6174545d2c34f ] Brya is another ADL-P product. AlderLake has support for Bluetooth audio offload capability. Enable the BT-offload quirk for ADL-P Brya and the Intel RVP. Signed-off-by: Vamshi Krishna Gopal Signed-off-by: Yong Zhi Reviewed-by: Bard Liao Reviewed-by: Ranjani Sridharan Signed-off-by: Kai Vehmanen Link: https://lore.kernel.org/r/20210521155632.3736393-2-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/intel/boards/sof_sdw.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c index 2770e8179983..f6d957ff61d6 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -197,7 +197,21 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = { .driver_data = (void *)(SOF_RT711_JD_SRC_JD1 | SOF_SDW_TGL_HDMI | SOF_RT715_DAI_ID_FIX | - SOF_SDW_PCH_DMIC), + SOF_SDW_PCH_DMIC | + SOF_BT_OFFLOAD_SSP(2) | + SOF_SSP_BT_OFFLOAD_PRESENT), + }, + { + .callback = sof_sdw_quirk_cb, + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Google"), + DMI_MATCH(DMI_PRODUCT_NAME, "Brya"), + }, + .driver_data = (void *)(SOF_SDW_TGL_HDMI | + SOF_SDW_PCH_DMIC | + SOF_SDW_FOUR_SPK | + SOF_BT_OFFLOAD_SSP(2) | + SOF_SSP_BT_OFFLOAD_PRESENT), }, {} }; -- 2.30.2