Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp738390ybb; Fri, 3 Apr 2020 10:54:24 -0700 (PDT) X-Google-Smtp-Source: APiQypI7z0/pMFdGWH0ON5fi+GurNo7eSiI/gsEw/madu/DKox/A79Hf+cQyZsiQjcI2/dvgxkJR X-Received: by 2002:aca:d78a:: with SMTP id o132mr4040517oig.60.1585936464231; Fri, 03 Apr 2020 10:54:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585936464; cv=none; d=google.com; s=arc-20160816; b=TzZWQTp04xI3WfUnaByuUc2TnCaMysCWprrc7Xwlhy6UDnsmsxjbUSBgw5tpoavhOz hsvP2Jgx3eHtsSCEDmXPxKsOB5+I6XofDkWwD4imOb2qROOuDvUpBmyMfbN78Xwoqw5L 7RN/5qiaxB1kg9qlXiITpGuc+MJ/fJPdxZsOFZC3mLHlx0zVuEojwvuhMZTMdMXHM05V lViuC8fE6OriJn1zil5cnldcKdrNvJmidBM+13Zy1KSY+Louu8ZOtXUMIIeGqmD5RKDW KYJbtAXeyyHYCb2wrOG1A0T3gguEneRN+7zxg3+DTtRHANHKSxVk9cdpSd+PwvlERSY5 yJcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=3YLWFZ+QvbazmsIQechzVB9IVb4vO6jFiBir2emdi5k=; b=NPzzevbYIyb7b66IjXaDPaFyAcmxjoqUGaiCUOPxWEDyRtBywMcph5q80hND1/MpYS AFA4kKi7gMOnj1lrZO+Ci70AsJi5KCW8ZDL9t/rGBihjS/Q9jAZgXYYlAsutnfkETAA9 +rXIpoqFD5DSc/H0rlh9S5CSplfroe80fCfmO2W2O1zFccma0XfuJiGL+FDSi2xr/Gf2 WydFt54BszBDvp59AiY1T3MZgDigfCQJKUilAkXCK9IGfwdWCh7siKue2YYAIqtIKkmh 292p3wS9joQJHKOxr1WnAfe+2bThuvqSU2SL4IJwqXtFzghXzSEgZT7o6c7boGRQ7k38 U99w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11si3939789oop.3.2020.04.03.10.54.11; Fri, 03 Apr 2020 10:54:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728140AbgDCRyC convert rfc822-to-8bit (ORCPT + 99 others); Fri, 3 Apr 2020 13:54:02 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:55738 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727167AbgDCRyC (ORCPT ); Fri, 3 Apr 2020 13:54:02 -0400 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 845C5CED02; Fri, 3 Apr 2020 20:03:34 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH v7 2/2] bluetooth:btusb: handle msbc audio over USB Endpoints From: Marcel Holtmann In-Reply-To: <20200402152758.10363-2-sathish.narasimman@intel.com> Date: Fri, 3 Apr 2020 19:54:00 +0200 Cc: Bluetooth Kernel Mailing List , Sathish Narasimman , Chethan T N , Hsin-Yu Chao , Amit K Bag Content-Transfer-Encoding: 8BIT Message-Id: <59EE263D-87B2-42E0-A5EA-9F261BAC29BC@holtmann.org> References: <20200402152758.10363-1-sathish.narasimman@intel.com> <20200402152758.10363-2-sathish.narasimman@intel.com> To: Sathish Narsimman X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Sathish, > For msbc encoded audio stream over usb transport, btusb driver > to be set to alternate settings 6 as per BT core spec 5.0. The > type of air mode is used to differenting which alt setting to be > used. > The changes are made considering some discussion over the similar > patch submitted earlier from Kuba Pawlak(link below) > https://www.spinics.net/lists/linux-bluetooth/msg64577.html > > Reported-by: kbuild test robot > Signed-off-by: Sathish Narasimman > Signed-off-by: Chethan T N > Signed-off-by: Hsin-Yu Chao > Signed-off-by: Amit K Bag > --- > drivers/bluetooth/btusb.c | 155 +++++++++++++++++++++++++++++--------- > 1 file changed, 118 insertions(+), 37 deletions(-) I decided to look at these to patches and fix up a few things. 1) Use conn->setting & SCO_AIRMODE_MASK to select the option and with that also ensure that we don’t send this for ulaw and alaw air modes if they ever get established (even if unlikely). 2) Fix a bunch of coding style violation Please test these two patches if they still work according and then I can apply them. Regards Marcel