Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp22264pxj; Thu, 13 May 2021 19:41:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvU4tOC/UqADaEsiuz7/RBK75n7logps2+ivOq/fAPuzBpfvdCGcmDmjP0AeNMlp7aN8JQ X-Received: by 2002:a05:6402:2064:: with SMTP id bd4mr16836257edb.96.1620960071066; Thu, 13 May 2021 19:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620960071; cv=none; d=google.com; s=arc-20160816; b=o4AHpZZAeNbaXgiJmXuJT6tWUUFFbLA5nXt7L/Kg/nq398WjZyS3tUCeM6e6F+gcmM CWX0oRGTsy/yM7YzRcrnB7BDqqQE5+g7vwLHJGVq523WsWZf+XBvenTxTbbVX8NjfgK7 6nFqOsucf/UDjk5C2Wu1C4UaT0RzwRA5Q/AnGLIW9Shd4ZARwW4G+ra3yzCLzfdqZamc pACZD1kpte4fZeFMzUxrF1qclUixkIMIM4PtTRkl8MZdoqqtJmsv1CjghHVR8iVPQ1Ic 8jeT7NZLL9LTim3uP2BLqHoH3UtztZ5fud/vx9pj4vVqawLQfOPJNN9IkT7pZw88niTm YtKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=VPTGHmumtvcbNo8qF4GvcwoVkhoPYBNvoeUOVf2sgdg=; b=TUUWsU/hxrPC02tMST5LNF0P18s6uiZigh/8TXBb4Zsp4QzVeHLg4D+Q1zYT5GrUhs NQaqDeCY9MhXmMce+Zq1BFM2lsE+5ecuaAzKKvLj99j+ImxhqCcJkIOG09K9vD3GHqfa zrRbeoSOJCdXA+hQTbP+SvcmV07KsBHf0jKIHdhya28/peETqyYeT6cx7dyxxvFJnEFj eSnU8vuBqyEBFhUGNRwP+yYrkvuq00jVQ4WmHG2CQsxURWPk3SQ/+V5fnt+FLnaFiDmT udM3TqsRwboNiNFEfhfEs69QxXqYpmn05092RKIKbYeoP608yx3Ze/GowZN9BGEfOsAe jAlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si4592133edc.72.2021.05.13.19.40.47; Thu, 13 May 2021 19:41:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231149AbhENCd1 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 13 May 2021 22:33:27 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:39019 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbhENCd0 (ORCPT ); Thu, 13 May 2021 22:33:26 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 14E2W78g8028223, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36502.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.71/5.88) with ESMTPS id 14E2W78g8028223 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 14 May 2021 10:32:07 +0800 Received: from RTEXMBS02.realtek.com.tw (172.21.6.95) by RTEXH36502.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.2106.2; Fri, 14 May 2021 10:32:06 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS02.realtek.com.tw (172.21.6.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Fri, 14 May 2021 10:31:45 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::1d8:ba7d:61ca:bd74]) by RTEXMBS04.realtek.com.tw ([fe80::1d8:ba7d:61ca:bd74%5]) with mapi id 15.01.2106.013; Fri, 14 May 2021 10:31:45 +0800 From: Hilda Wu To: Marcel Holtmann CC: Johan Hedberg , Luiz Augusto von Dentz , Bluetooth Kernel Mailing List , open list , Max Chou , "alex_lu@realsil.com.cn" , KidmanLee Subject: RE: [PATCH] Bluetooth: btusb: Add support USB ALT 3 for WBS Thread-Topic: [PATCH] Bluetooth: btusb: Add support USB ALT 3 for WBS Thread-Index: AQHXR+FETZsNaKRViEWtURNUsICg4arg/wKAgAFAQAA= Date: Fri, 14 May 2021 02:31:45 +0000 Message-ID: <08bd26e7da6549898da05b5ec3bb8b44@realtek.com> References: <20210513101806.5666-1-hildawu@realtek.com> <846A7897-6645-4FA0-8B3A-C0AB01965365@holtmann.org> In-Reply-To: <846A7897-6645-4FA0-8B3A-C0AB01965365@holtmann.org> Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.132.158] x-kse-serverinfo: RTEXMBS02.realtek.com.tw, 9 x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: =?us-ascii?Q?Clean,_bases:_2021/5/13_=3F=3F_08:28:00?= x-kse-attachment-filter-triggered-rules: Clean x-kse-attachment-filter-triggered-filters: Clean x-kse-bulkmessagesfiltering-scan-result: protection disabled Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Outbound-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 05/14/2021 02:19:13 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 0 X-KSE-AntiSpam-Info: Lua profiles 163648 [May 13 2021] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: hildawu@realtek.com X-KSE-AntiSpam-Info: LuaCore: 445 445 d5f7ae5578b0f01c45f955a2a751ac25953290c9 X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: Rate: 0 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 05/14/2021 02:21:00 X-KSE-ServerInfo: RTEXH36502.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-KSE-AntiSpam-Outbound-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 05/14/2021 02:19:13 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 0 X-KSE-AntiSpam-Info: Lua profiles 163648 [May 13 2021] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: hildawu@realtek.com X-KSE-AntiSpam-Info: LuaCore: 445 445 d5f7ae5578b0f01c45f955a2a751ac25953290c9 X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;realtek.com:7.1.1;127.0.0.199:7.1.2 X-KSE-AntiSpam-Info: Rate: 0 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 05/14/2021 02:21:00 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcel, Thank you! I will propose a patch v2. Regards, Hilda -----Original Message----- From: Marcel Holtmann Sent: Thursday, May 13, 2021 11:13 PM To: Hilda Wu Cc: Johan Hedberg ; Luiz Augusto von Dentz ; Bluetooth Kernel Mailing List ; open list ; Max Chou ; alex_lu@realsil.com.cn; KidmanLee Subject: Re: [PATCH] Bluetooth: btusb: Add support USB ALT 3 for WBS Hi Hilda, > Because mSBC frames do not need to be aligned to the SCO packet > boundary. Using USB ALT 3 let HCI payload >= 60 bytes, let mSBC data > satisfy 60 Bytes avoid payload unaligned situation and fixed some > headset no voise issue. > > USB Alt 3 supported also need HFP support transparent MTU in 72 Bytes. > > Signed-off-by: hildawu please use real name here. > --- > drivers/bluetooth/btusb.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c > index 6f253378e893..872034e7a232 100644 > --- a/drivers/bluetooth/btusb.c > +++ b/drivers/bluetooth/btusb.c > @@ -1752,6 +1752,13 @@ static void btusb_work(struct work_struct *work) > * which work with WBS at all. > */ > new_alts = btusb_find_altsetting(data, 6) ? 6 : 1; > + /* Because mSBC frames do not need to be aligned to the > + * SCO packet boundary. If support the Alt 3, use the > + * Alt 3 for HCI payload >= 60 Bytes let air packet > + * data satisfy 60 bytes. > + */ > + if ((new_alts == 1) && (btusb_find_altsetting(data, 3))) > + new_alts = 3; if (new_alts == 1 && btusb_find_altsetting(..)) .. Regards Marcel ------Please consider the environment before printing this e-mail.