Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6355601rwn; Tue, 13 Sep 2022 03:05:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR6uD89P1eBSZO1dCRUBPQaH9GC6FyCT2yfgUuecURlK1d0bsDfFDIetif1DIRDPLRR5FGck X-Received: by 2002:a63:5b4e:0:b0:438:ac40:2f78 with SMTP id l14-20020a635b4e000000b00438ac402f78mr14475789pgm.333.1663063534970; Tue, 13 Sep 2022 03:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663063534; cv=none; d=google.com; s=arc-20160816; b=QaTiNRUhw0hU0AvQr4AZ67TgUuoeetme8rtlQ1gWLxIMWDpk98lo6nW2y+57YTfrc7 r45KEkHvzDeuiXD0MAmLQf8uHFM5g7z8hERkBZWmDgO9HR+9pTZl1QsneJr8SBFIlNaN LWfKtj6xvMBK5boiTF3q5Dn0/k/gFpdSjt7DaszIGOPUVHQwMRTGOpdq1UsQGvypfrvi dU7xHpm9Lls9NOmMD6xPrqvDor9PPW1w1fzJdXtq69PO+nEoDwe9cpfqVjWLIcG9k06B X3ByqWtb4tt8nyLuNCl4w4dohkA07gcUr7/+USpmN7G8J4+zgkDI9YTLA9ZqEU5mw08u G7Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :authenticated-by; bh=h2jP4vBKyV5lgwOLnl7WrOGcg89GSw8Zxm435XYsCCU=; b=SlYY+rYDzsvOddciM6wo5CVo9dPtlhrG1oEDATmlfZVPb9eiZlqD6bQMDlYoeprPqU q0ffjflFKjmBBrMXWtc0V9Wy5O4grYJZTk1RpK/U/vAA0fOlyA+sRKlm+AsVGAhmWcjO umm3PEbum2UiKEnsB27fxcXyGnffa3Z1zSiEAKo2NOkMI+i2sMESfwQ3jFo+A8nMk/E+ h1fyXVV9wg+4kB7ns0HNzcz4y+mKC3KcYXs8ge+dLrO45gUk/xGzKIUlQ75CfImNT/dV u2UvPjRmC4uDtsAmPDwGSQ0PgFENDIy3BnIo/ejJ420E4VpdSi3rM2oM1jHQbUhxL5+0 /gWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k4-20020a170902c40400b001783df7f2e9si4229440plk.166.2022.09.13.03.05.22; Tue, 13 Sep 2022 03:05:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbiIMKDK (ORCPT + 99 others); Tue, 13 Sep 2022 06:03:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231228AbiIMKDJ (ORCPT ); Tue, 13 Sep 2022 06:03:09 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DB20349B5B; Tue, 13 Sep 2022 03:03:05 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 28DA2UWB0014138, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36504.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 28DA2UWB0014138 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Tue, 13 Sep 2022 18:02:30 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36504.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 13 Sep 2022 18:02:50 +0800 Received: from localhost.localdomain (172.21.132.192) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 13 Sep 2022 18:02:50 +0800 From: To: CC: , , , , , , , , Subject: [PATCH v2 0/3] Bluetooth: Add btrealtek data struct and improve SCO sound quality of RTK chips Date: Tue, 13 Sep 2022 18:02:41 +0800 Message-ID: <20220913100244.23660-1-hildawu@realtek.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.132.192] X-ClientProxiedBy: RTEXH36505.realtek.com.tw (172.21.6.25) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: trusted connection X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Deterministic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 09/13/2022 08:01:00 X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIyLzkvMTMgpFekyCAwNzozMzowMA==?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36504.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Hilda Wu Add btrealtek data struct and use definition of vendor flags to manage the specific chip. The Bluetooth: btusb: Workaround for spotty SCO quality patch is for filter out duplicate packet for avoiding spotty SCO quality. The Bluetooth: btsub: Ignore zero length of USB packets on ALT 6 patch is for some Realtek chips need to transmit mSBC data continuously without the zero length of USB packets. --- Changes in v2: - Set the proper priv_size to hci_alloc_dev_priv(). - Separate commits for functions. --- Thank you for your review and suggestions. Hilda Wu (3): Bluetooth: btrtl: Add btrealtek data struct Bluetooth: btusb: Workaround for spotty SCO quality Bluetooth: btsub: Ignore zero length of USB packets on ALT 6 for the specific chip model of Realtek devices drivers/bluetooth/btrtl.c | 35 +++++++++++++++++++++++++++++++++++ drivers/bluetooth/btrtl.h | 30 ++++++++++++++++++++++++++++++ drivers/bluetooth/btusb.c | 31 ++++++++++++++++++++++++++++++- 3 files changed, 95 insertions(+), 1 deletion(-) -- 2.17.1