Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2940720pxb; Sun, 26 Sep 2021 00:10:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNC2+7knHzRPn20SypIm1wVFs1tWWE/GaN6HeG1qs4Q/vNipJkjmZjNQUN/QoJTJz1PWa6 X-Received: by 2002:a05:6638:1444:: with SMTP id l4mr16465441jad.41.1632640206528; Sun, 26 Sep 2021 00:10:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632640206; cv=none; d=google.com; s=arc-20160816; b=FIix33YIg+HtM2nJvUzj5skfOyRgyCU7COVOZwoSSLxn7YUVuVsnPomt9IAU1kjhXj JdwWDBvy5FWg4+L37+b3lnP7B3MKKj5Wl7708LNGYwwJo0fv9TLr7Ygox49DUfXJMAnN koxmsKX5H31sRHoVf3QCbqmqLorBfYZt9RKJ74wjRaMaqM/rh2kTcaIbl4PJhKif/T11 GrPWnGG+CwhsjJIB+7VVRf6gL9c6wnJLvA9W3dn3VUhmiLP1UFZot6vMprph1kuPHKg8 dtR0mIw7eWvetrDBhX/yg4v8aTHMnY3PngCOTPse3+/LsFCnDMOYdWpsoxpXltSX9un/ m63A== 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=SrwP2ShS2h50zXhgDpTauRMRNVTw9mBZJ1dbGK6KY/0=; b=NW158Cxyh2gUq1EJFj0d8uNgLBHMjL+Ml11EnXrFiQ3S9S12HvKHnRyZl20NcdrQHP OcIss/4qQ5bxiJgq6+cF6PtMDGVvqIpaQJ7bBchA7BfAWFi0CuPO9iqLo67koRMikitW zclaL1/4d4tDSmF0D1UQGjYTVgOqCzeVTJcahkPMq6s9PHYS2fzRnMYelDXEr4ihM3h0 hJrNBTLm9K40Q0CJ0EuXN7+tRL6zcR4mU2MTBACB8zOxI7o2wrobPw5zvAyXm7Q0z946 aQ8zZYZQvwd0CpwqVKPfCrkzkHC25jNuLFF2+C2MEg+FJhkTmmGBI2qkpcWKwdZSmT/n KM6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WZjMDAuO; 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 s19si14576060ilt.14.2021.09.26.00.09.55; Sun, 26 Sep 2021 00:10:06 -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=WZjMDAuO; 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 S231213AbhIZHJj (ORCPT + 99 others); Sun, 26 Sep 2021 03:09:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231200AbhIZHJi (ORCPT ); Sun, 26 Sep 2021 03:09:38 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42714C061714 for ; Sun, 26 Sep 2021 00:08:02 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id j14so9517031plx.4 for ; Sun, 26 Sep 2021 00:08:02 -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=SrwP2ShS2h50zXhgDpTauRMRNVTw9mBZJ1dbGK6KY/0=; b=WZjMDAuO/Xi35ye6CfouBkO1F2KmVL7s+JZ1xCZnhT6WPgRloF5Tvqx/pte/v9aLI1 YBorUmXaHuFxP62zeAZxQneNu97K44PZzUlRPikwp6BrZShUl1j6kp2lzyOx8Alhun40 5uSGGAGu0irnCU2DN+ycDzCEIcvogGMRJAVLQ= 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=SrwP2ShS2h50zXhgDpTauRMRNVTw9mBZJ1dbGK6KY/0=; b=rnZTciAjMS+Hlv0bjWiwGJf61U0vMWD87VrX9mw9Luk7FkLFnz3Q0L0/EQNf0FMMLE prge+o+ZdiOHpQ3dW1a73lhlXa3L2PGJMpvRyXdqxlOZ36HzYYWHtnnEGZa8ey7CCpA5 4B5PgX/9NDjdJKtemS3KKeG0ACVqygstBCGNc9mO5p9GGcSU3MdnNY9OljVrzblcBGt7 q83LVgSEXLxYna7FTAeOTAw5O4PSC0C01oek+5FA3vLczofliVLdazAlnK0fp6z4VtEs WiNBCDYpVn0B/xe5JE5iOH3a4anGIqg6BFqJQl1Grf7pnUCaSltS404lKkBblzspRq2T 0dZA== X-Gm-Message-State: AOAM531oa+p9t1+HQekg4H/kuIoTpmnvO8JEicJ+BEpnNUvndtgoCj+o Y9G478NWOA7R5CQFUFI1/7WaZVSy/3Jm0g== X-Received: by 2002:a17:90b:3145:: with SMTP id ip5mr12362908pjb.161.1632640081588; Sun, 26 Sep 2021 00:08:01 -0700 (PDT) Received: from josephsih-z840.tpe.corp.google.com ([2401:fa00:1:10:8152:3867:7050:3260]) by smtp.gmail.com with ESMTPSA id o17sm13796174pfp.126.2021.09.26.00.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Sep 2021 00:08:01 -0700 (PDT) From: Joseph Hwang To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org, luiz.dentz@gmail.com, pali@kernel.org Cc: josephsih@google.com, chromeos-bluetooth-upstreaming@chromium.org, Joseph Hwang , Miao-chen Chou , Johan Hedberg , linux-kernel@vger.kernel.org Subject: [PATCH v4 3/4] Bluetooth: btrtl: enable Realtek 8822C/8852A to support AOSP extension Date: Sun, 26 Sep 2021 15:07:48 +0800 Message-Id: <20210926150657.v4.3.Iba6327b2544d1904bbcb17f369dcd3761b566153@changeid> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog In-Reply-To: <20210926150657.v4.1.Iaa4a0269e51d8e8d8784a6ac8e05899b49a1377d@changeid> References: <20210926150657.v4.1.Iaa4a0269e51d8e8d8784a6ac8e05899b49a1377d@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patch enables Realtek 8822C and 8852A to support the AOSP extension. Reviewed-by: Miao-chen Chou Signed-off-by: Joseph Hwang --- Changes in v4: - Call hci_set_aosp_capable in the driver. Changes in v3: - Fix the auto build test ERROR "undefined symbol: btandroid_set_quality_report" that occurred with some kernel configs. Changes in v2: - Fix the title drivers/bluetooth/btrtl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c index 1f8afa0244d8..5a1090b7c69a 100644 --- a/drivers/bluetooth/btrtl.c +++ b/drivers/bluetooth/btrtl.c @@ -746,6 +746,7 @@ void btrtl_set_quirks(struct hci_dev *hdev, struct btrtl_device_info *btrtl_dev) case CHIP_ID_8852A: set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks); set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, &hdev->quirks); + hci_set_aosp_capable(hdev); break; default: rtl_dev_dbg(hdev, "Central-peripheral role not enabled."); -- 2.33.0.685.g46640cef36-goog