Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp418625pxb; Wed, 8 Sep 2021 04:21:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWZ1qj1vP9dHe83KayXq3mGLuCyto83aUin143xxVOcNw69MQ8fno0H5RUQ5kv5llPEff0 X-Received: by 2002:a05:6638:1484:: with SMTP id j4mr3248138jak.80.1631100103420; Wed, 08 Sep 2021 04:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631100103; cv=none; d=google.com; s=arc-20160816; b=mvL6P02SSiJKZe2xa4Jkg+45bQcpGP1j9vK8b3PyIhuu8bn2Tf4ydQXuXTY5jkZPEF 9JlZxaE6ET6Lk3PqqiWsFknSkyJru/6I82nSOqJcHdtsMVT4HIs2S1BJ53mAoNfeFE1h RCg9470oV1m754BSIyZedYNqkbp75ofGKRBwWH2DFSUIVyoWtRKd0cjqrURagD/dIh29 teZ0xGg5c7HSBFUZqKwcV8GBpCvKlhaA3wimEyrl5VpERTlfCIBQMAwZcw4YNzRWW+BQ 1qleLm4EtAdYzzH6BS0vYSIgS6SQZ6bYFIF5cZWdmPsyIG2BhCEY0zTxkc8WJZRqu4Ti 4iUg== 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=pmk2a81JVl4SkAncwyxKrhCXZFyctOgBxo36TTei3kc=; b=K8nkuJvoi0epsLImHeuhuJ1NB4MnPv9fGnV+4J9sz891/dZ/x2EsQmYdD0BElq+0Rx vyADEmV480YHwMeu0QJJEv47Q3xmIbPToNWdx0dDCDal+EUkd3J+z0F0oUDeqCmSjRPx XJE6BSlEOrkj2ksxyvcPBPLB5hax4211ZomIsHLZthMyCPgbRfE+9NK7ypEM6V/4jBxB qR1wOsEvuNh4BAHFulz3qD154xCnTBktKmBhXF+qhX+rtKEqHYi6sMiGJcFHY6d3IKpS UrbrfYHoC422P4I4FSHUcqkUZM+Wvk38WjhOzAse+aVY5ioExy3yMwpbykR82b+mzNeX VudQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AWG1220m; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si1656372iok.80.2021.09.08.04.21.19; Wed, 08 Sep 2021 04:21:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=@chromium.org header.s=google header.b=AWG1220m; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235044AbhIHLVO (ORCPT + 99 others); Wed, 8 Sep 2021 07:21:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351384AbhIHLVL (ORCPT ); Wed, 8 Sep 2021 07:21:11 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44B84C06175F for ; Wed, 8 Sep 2021 04:20:04 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id u1so1091394plq.5 for ; Wed, 08 Sep 2021 04:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pmk2a81JVl4SkAncwyxKrhCXZFyctOgBxo36TTei3kc=; b=AWG1220m9+DCOAGn5Ytl/f+I2ojC1KPGwYixzk2HOe/AqaVO3K9yqyNxd/B9HKWV1T du/mzJWSwa6TLuad+dcXAYyNHmm5m2yb6c95yjmS0YvspxMQORTQJrETXD3xiiEvEbf/ zLBg0dbQfcSQv0JXkIwPxqWZKyMQpeM14Cxog= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pmk2a81JVl4SkAncwyxKrhCXZFyctOgBxo36TTei3kc=; b=HPrmHkKqgMP4vTtW6FJI288g3nn3LKQOLwXxv3oK7dMcKoaDRaXmXPR/Ke/NPi0OVS 9Tn+BciAYVSrz0tPaFPNX/5SMZsTplr7RlJoKZ2+jWKcCEgqR8aiyd1nMjRDmobNiy0w hZRJy485JmV0IQ4zTof0JUuOZ0QkRrFarnRCzv7HWwwapHnZAxs/KRQpZ1iemRXLgkp3 cR3S5VY1GiMBYH9Wr+B3WcYSE0qb/H7dvKvsR6FtAQEf82mnI4J4wMNUMq3T/kmxNdC/ JqWpzQqf12t1u0QIOHkWqL8NtxZNbqOH62uL7xAZ7Z+7ZMUzThRyHwhdSz9UF+Y9SxgX xe+g== X-Gm-Message-State: AOAM5327Ax1CwdyO+ISri6SVVSGmaLyKRuzp58Y5p+Y1BG+FdeBmfPCO 4jEt+hWkqqJXqYuIt/jko5JnpsAQzitA9Q== X-Received: by 2002:a17:902:b713:b0:132:5a48:18cb with SMTP id d19-20020a170902b71300b001325a4818cbmr2583683pls.50.1631100003426; Wed, 08 Sep 2021 04:20:03 -0700 (PDT) Received: from josephsih-z840.tpe.corp.google.com ([2401:fa00:1:10:6939:f2f4:4be:bf22]) by smtp.gmail.com with ESMTPSA id v6sm2160881pjr.41.2021.09.08.04.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Sep 2021 04:20:03 -0700 (PDT) From: Joseph Hwang To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org, luiz.dentz@gmail.com, pali@kernel.org Cc: chromeos-bluetooth-upstreaming@chromium.org, josephsih@google.com, Joseph Hwang , Miao-chen Chou , Johan Hedberg , linux-kernel@vger.kernel.org Subject: [PATCH v2 3/3] Bluetooth: btrtl: Set up Realtek 8822CE for Android BQR commands Date: Wed, 8 Sep 2021 19:19:51 +0800 Message-Id: <20210908191915.v2.3.Ic8dcac2622d16775748f9d36c0a5e893372aa48d@changeid> X-Mailer: git-send-email 2.33.0.153.gba50c8fa24-goog In-Reply-To: <20210908191915.v2.1.I17f57656757b83a1c0fb4b78525d8aca581725db@changeid> References: <20210908191915.v2.1.I17f57656757b83a1c0fb4b78525d8aca581725db@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patch sets up Realtek 8822CE to support the Android BQR commands. Reviewed-by: Miao-chen Chou Signed-off-by: Joseph Hwang --- Changes in v2: - Fix the title drivers/bluetooth/btrtl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c index 1f8afa0244d8..e0bcdbe03eca 100644 --- a/drivers/bluetooth/btrtl.c +++ b/drivers/bluetooth/btrtl.c @@ -14,6 +14,7 @@ #include #include "btrtl.h" +#include "btandroid.h" #define VERSION "0.1" @@ -740,12 +741,13 @@ void btrtl_set_quirks(struct hci_dev *hdev, struct btrtl_device_info *btrtl_dev) /* Enable central-peripheral role (able to create new connections with * an existing connection in slave role). */ - /* Enable WBS supported for the specific Realtek devices. */ + /* Enable WBS and quality report supported by the specific devices. */ switch (btrtl_dev->project_id) { case CHIP_ID_8822C: case CHIP_ID_8852A: set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks); set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, &hdev->quirks); + hdev->set_quality_report = btandroid_set_quality_report; break; default: rtl_dev_dbg(hdev, "Central-peripheral role not enabled."); -- 2.33.0.153.gba50c8fa24-goog