Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1144507pxv; Fri, 9 Jul 2021 19:25:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8bVSPdQN9IZovt3lXpPtKa9J6R0IGmCYL0ZcoUUvKoaDYa2AeV9a9iESKQR5ZH2VvWnic X-Received: by 2002:a17:906:1da1:: with SMTP id u1mr40035064ejh.307.1625883915276; Fri, 09 Jul 2021 19:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625883915; cv=none; d=google.com; s=arc-20160816; b=D/FpwKUotjB0cTfQOOUq8aBDyYNkb7Sqa1VpJzykCxB/1WJqm6WYGCSJ02YyTeml1O R84neFfx3FKWKv/BMBLiyqMRUHtHrb7HBDd1NmhOv17cDX915+yG9kWGqT+FAfv8B1BD IjRDbWcfo9yHzCjGVINr8TyZmfvOQmX7aturpjgzmkHIHhso9MPaswO/i1ndvBexkaSn 62fzhWjkMFU0Toy+FKJXwXghxDv5TLHQxrc2Qlm3jR4W20C7nHyfD5N3hM5IskM8zBvO MSFr2rMErDVXnSJAz5hiyuSLVcYPtZ4cfYGrq/AekDKXmHDLDi6h6LwBpyO6w4tOcTE2 GvGw== 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=agRlbF+CwL92mEMKO2LomTEqNKIvMzSJh3lXGrl3tm8=; b=BqBOXc/EQfeXT2SA0I3z+FF8EnUYXi54UBsdL6Fj0bjZ0bPTeWrq+UEvNiGN6tytVK /HJ5zyCHi4afcIId1ThKS9R1Wcupr38khUZbtoTb++JpHzMrB/HcT/YDsruUt+MkAtdj 17psjyYByPUMAxm8xOdTLtB84VBPzgfeFP8kjCpHgT07HsbKTNgfzpNPEy48CMs5G2zp tkYcz1nKsfIKZz+jUg29DvLSIzy5hoVnbupHKLZWALxVWhrHTTnKLbmmVvCaQjNqpFaF OvS03yGwJ9rrTvDU1tmWJYDjF9Wds6Cf1PsLlga0FHE5QrKxD5pm7VGdnf6rQ/xFq7Vm lMfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="ps/QxW0Q"; 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 du14si9360523ejc.439.2021.07.09.19.24.52; Fri, 09 Jul 2021 19:25:15 -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="ps/QxW0Q"; 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 S232605AbhGJCZ5 (ORCPT + 99 others); Fri, 9 Jul 2021 22:25:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:42146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231965AbhGJCZM (ORCPT ); Fri, 9 Jul 2021 22:25:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0101F613F8; Sat, 10 Jul 2021 02:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883747; bh=v8svG+L4x8wucij86aEqWhgJcc4SA+9efd9n0jHqBak=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ps/QxW0QbIig7L7Gky6u3moIolPoeu29Usx3dbvoZiW27DTAEZhMzkYNtkLFbj6HF QAZUaVJRinf9QOFIGxdPGMG4RtxpoqkgFj9pL9ZkohWWJ3uFHoMLQCHYFYvREtyMa/ kcK143djg7v4XzaOdHaMDUiVcUcsjA+7KMV8sIshIh/04behUEdZnOpvBEeutdAuT9 9uM51fGMrqAyslAHFEPrrAtb+nSdMrmb42qfNkwKRroJmXM6mcFU5JzvnHNolflof9 urEzdmFhVUUGpcLF6jRYeGE2IHay+h94RvyI1mcztsAeBpzPeWTAAeKS7/wrpwmwwK ifj0Tz1Xe5vVg== 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.12 024/104] ASoC: Intel: sof_sdw: add quirk support for Brya and BT-offload Date: Fri, 9 Jul 2021 22:20:36 -0400 Message-Id: <20210710022156.3168825-24-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-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 5827a16773c9..2ba3eefb9c8d 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