Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1592515rwb; Wed, 5 Oct 2022 01:45:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64i6Ge9kUg0w0GQgsGIK6KfElhbKkn39gJhT8FKQLCllxGyU38JfYvyRZfXsKpSx4ZTnL2 X-Received: by 2002:a05:6402:40d3:b0:451:5249:d516 with SMTP id z19-20020a05640240d300b004515249d516mr27289345edb.154.1664959540099; Wed, 05 Oct 2022 01:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664959540; cv=none; d=google.com; s=arc-20160816; b=uqL3Yasb/mFVvirPNUjc1ld2wfZAKS6qOKKDHvAIIDEHt8/np0EVr+VbXOPHoHZoUI lTsSNH8KNRatH5I6jfPBt4yyfJNQyZnQMLPZCQhTou/w/rUTNwSuTu594TFl1ueZs+Xi yIFfWzOhbjLmxwltz/LM9Dzn4BFCbHgWvS7SHjEwRamG31/vrA3YIZCDkZ+j2saJ3l0v VcNRPFWf9ClHzkrTs4pkon++b60Apfygr+Xx77Rw5U2tr9ZjNwrSaOA6utA3+vC3Z+AN LHFm6cBofzeH2TUOc+fNNoxrkuHoNql+vUNOMw0zxn5One8Mcx4ycyFg9Is9VOOwuboO B86Q== 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=ujeXa0uYS3/GBOX1co9YJyvxZ49cM/DvDoDfsCFq6ZY=; b=IVA/5a2xBvj2/3mhAeXPXmKpfRDV2GNHWfjz8yxuDJj2CeWbi2UYLtJb9GpQYumYta QRn2suRrdr+hhpaCCqaKlSAi9t2aIzqfxHVSFzoO6HCUWMOnajoO17OSSr/tMP6NxTIO 1JfURiCpCgqNKVZfXrTe8l1ARPS2jBq7m+ZV9wDNzg8R7jjTPT+3hqA7kFlk473PvRsD q4robHsQ/0yNtSB5mGippd+WC8XpfgjdwVhAGhqkRhFkSqBirL6IN1/M4yh+VE3rvDnY lCRXD5vtYhBPOG5tXXTofM8D/JGRTX3D5oeu0eYYRazCVahj5RMLxxW3dpkMVFEVytbt ttZg== 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 dn21-20020a17090794d500b0078c65d3a2a9si6896196ejc.859.2022.10.05.01.45.14; Wed, 05 Oct 2022 01:45:39 -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 S229886AbiJEIny (ORCPT + 99 others); Wed, 5 Oct 2022 04:43:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbiJEInt (ORCPT ); Wed, 5 Oct 2022 04:43:49 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8CAC774DCD; Wed, 5 Oct 2022 01:43:47 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 2958h9Zz9022992, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 2958h9Zz9022992 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Wed, 5 Oct 2022 16:43:09 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 5 Oct 2022 16:43:36 +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; Wed, 5 Oct 2022 16:43:36 +0800 From: To: CC: , , , , , , , , Subject: [PATCH v4 0/2] Bluetooth: Add btrealtek data struct and improve SCO sound quality of RTK chips Date: Wed, 5 Oct 2022 16:43:29 +0800 Message-ID: <20221005084331.1001-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: 10/05/2022 03:37: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?Q2xlYW4sIGJhc2VzOiAyMDIyLzEwLzUgpFekyCAwMjo1OTowMA==?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled 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: Ignore zero length of USB packets on ALT 6 for specific chip need to transmit mSBC data continuously without the zero length of USB packets. --- Changes in v4: - Since the original 0002 patch has no dependency with this 0001 patch. So let the 0002 patch submit independent. 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 (2): Bluetooth: btrtl: Add btrealtek data struct Bluetooth: btsub: Ignore zero length of USB packets on ALT 6 for specific chip drivers/bluetooth/btrtl.c | 7 +++++++ drivers/bluetooth/btrtl.h | 21 +++++++++++++++++++++ drivers/bluetooth/btusb.c | 28 ++++++++++++++++++++++++++-- 3 files changed, 54 insertions(+), 2 deletions(-) -- 2.17.1