Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1980523rwb; Thu, 29 Sep 2022 04:54:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM65DFTzqYsvVxG/5QVhyi1jV/Op10dcF9RydlgfL5ipaNhbnQMo6KAQZofMWpo+LOdHDAcA X-Received: by 2002:a17:907:d9e:b0:782:28a4:8ced with SMTP id go30-20020a1709070d9e00b0078228a48cedmr2424006ejc.542.1664452466033; Thu, 29 Sep 2022 04:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664452466; cv=none; d=google.com; s=arc-20160816; b=H/en+mqhvrVMZGAD8ooGAMh6dibt0mgc68BHOxuYvA+z8uqBEVTQ/BaRRTr7/ui3ba L9c2WcPlxd2C7Rci0qwntE8ExovhX2ifFYDMMd/FDSUGXADa7ftoGM3uEilPTMqP1xdX O9PR89yoaPDdFXXUAD/ikLE/iIDx4oZzFtDx4yRahYeefgzg118AVIXLICID4raHXVgT i0WEPfL2mIgPjTbUH7a7OccNdsZEEOaKKTI4XfAAdDJFZlJwXddzslDfN8BGNT0r33Qh 3Eev6ECaDVwKkflnV0nrkrQH5jyxOMckQT6YmDp1nCvMkOJoa1YMiFxx47nUDuWjfLM2 aogg== 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=eU1Cp+RBgnO11Vdnjg+9L0QGesHGFp6Re+52xExx7M8=; b=iPBHgWI+/jDmFWzBHnLL2zK6ghNt+WeqOh/qlovsr8IeUeAferti8mVl0oOpJjgc9J J8VcMOp7wv5lZvVpWeuy4rl4AbFol6y27B7YDwNfAoWTw5o+klcND6e9eQrMDSxGKAsI bpRoQHv3iS2kre/4a0KyCwEZFfwxf+UqwNnCGJAzoDpmG9/TTKpogE6uhjRudVwWzXwu 64fjHMAVzl0X3j9EUZYp4AkUa7xx28+3Fyz4uymCEKLCBJQSQdKL4zqeVe2gc2PGYUIM oqScfPIlvKi1cj+XzYk3oYUpdjQ9kkjdCjHeiwPJs3jNw/S88mnJMCqb/tc1GmJhnMFj eB8A== 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 js12-20020a17090797cc00b0073c100331cbsi8291347ejc.384.2022.09.29.04.53.52; Thu, 29 Sep 2022 04:54:26 -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 S235411AbiI2Low (ORCPT + 99 others); Thu, 29 Sep 2022 07:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235383AbiI2Lor (ORCPT ); Thu, 29 Sep 2022 07:44:47 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D61D8303FE; Thu, 29 Sep 2022 04:44:42 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 28TBi5vY5024861, 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 28TBi5vY5024861 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Thu, 29 Sep 2022 19:44:05 +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; Thu, 29 Sep 2022 19:44:31 +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; Thu, 29 Sep 2022 19:44:30 +0800 From: To: CC: , , , , , , , , Subject: [PATCH v3 0/3] Bluetooth: Add btrealtek data struct and improve SCO sound quality of RTK chips Date: Thu, 29 Sep 2022 19:44:23 +0800 Message-ID: <20220929114426.4413-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: RTEXH36504.realtek.com.tw (172.21.6.27) 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/29/2022 11:15: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?Q2xlYW4sIGJhc2VzOiAyMDIyLzkvMjkgpFekyCAwODo1NjowMA==?= 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 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 comparison of btrtl_usb_recv_isoc here is for invalid handle, the invalid handle shouldn't appear. So we try to find out the rule and filter out this. 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 v3: - Use the vendor function to replace btus_recv_isoc. - For ignore_usb_alt6_packet_flow, manage the common flag by the vendor private flag. 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 specific chip drivers/bluetooth/btrtl.c | 34 ++++++++++++ drivers/bluetooth/btrtl.h | 29 +++++++++++ drivers/bluetooth/btusb.c | 105 ++++++++++++++++++++++++++++++++++++-- 3 files changed, 165 insertions(+), 3 deletions(-) -- 2.17.1