Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3125006ybb; Mon, 6 Apr 2020 02:35:51 -0700 (PDT) X-Google-Smtp-Source: APiQypI/dnsEwbfS3Avfv/XNJcR7NIFc8dIHgvTwfjscbV9mGCJEO+nF8wNmym43OsMe0zUdh1ND X-Received: by 2002:a05:6808:605:: with SMTP id y5mr12529892oih.172.1586165750848; Mon, 06 Apr 2020 02:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586165750; cv=none; d=google.com; s=arc-20160816; b=JWkm6PW/uycreq4iE/LdF0eXZD9PhKfhClBkzDF1/v1lvufqNQYQKN9knJe1OQ5srR QPM1eAxD6VsBwKOUiX+sh4nkYcVFpius5hXaIepmph7K/j+hheP+1m7WpxEoOQb/6LhS k0BTWDXQcUDJMsOlWksAhwlzwe6yDmdMsfgQO9gaEdMIybsxwhQYj5Pw23E31vZ6uCmn KabdEe+GBeouV3S2ZrFOiT5L1DS0nvZSz63TFVkWcTxBIr1dWypnUbj3eNTm5RV61hQV 0eUdBCdT3baWp9P6+rqkxNnPke4dqE7OOOh/MKxyT6FcxG4HHWn3et37lJGn3Q5JEnj/ 7PtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=sZzC/TcAbQMO3HRRA+7o+Hnn5xiNU4E7Hlm1+Ahj63E=; b=VAhJLqdf5ZkJ+RqXbNGj9uigEku+AvajV6MGjgdg13m0Yo2jur9CSQxf51qF+Qt7ki LbVlAoyIGm7rjMbs10vSEw0VBzMylIWpe6xh6dBlq2TyKsNEObVMp3BcCN2GM1BPnEr7 DOtssO8uneM03Sl2O9N7TFIaoGqvse6jblfh3VsRjqJ6aXJNdmZhfSe9cLDMn1hpU44O 1NvYPZqpoiC5gQTrpmKu4ChNwpvVMdo6ql4WBm+YlsYRm+IPhhY/3Wt3iQjPxl0j1+Dv xbDNeK7fGGLYiwmNJfQnw6LPsPe2Yl+FffGM+ymh0elcXbU4XkU5Mcc2V97O/1maGKaX C3YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hzkzqr+4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x12si7849574otq.38.2020.04.06.02.35.25; Mon, 06 Apr 2020 02:35:50 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hzkzqr+4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726701AbgDFJfY (ORCPT + 99 others); Mon, 6 Apr 2020 05:35:24 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:38146 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726687AbgDFJfY (ORCPT ); Mon, 6 Apr 2020 05:35:24 -0400 Received: by mail-io1-f65.google.com with SMTP id e79so5195920iof.5 for ; Mon, 06 Apr 2020 02:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=sZzC/TcAbQMO3HRRA+7o+Hnn5xiNU4E7Hlm1+Ahj63E=; b=hzkzqr+4BmQ8ryaXUVMf2G5xfGYXFeSb7pdk8B0CjUI+Cm9kEENTsnok3l4pIIguaH J32Pj7t+nZ1p9sNg/Fn27VOQExvKBPqJ29IUTv0mmgkxY/43BcvSTXfsOXqP6xW3XTJL selHqaDUNsqeViEJveGym8IVU45JnORyBv7vKzb3ar5vgo2gKKyjZVHelwl2SpQWECkC LoZaJCia6IH3gx92JQUZ4rXxbpLfiWh6IsLrAku2/4Bh0laPE4jjXyzYe6lONK7ncl7o q2Z9GZCbnKHwAMkp1fRCFU/IG8jficNmqpTSPSxolJBuWZB2pw12EVXC7w04erU76KtS JSJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=sZzC/TcAbQMO3HRRA+7o+Hnn5xiNU4E7Hlm1+Ahj63E=; b=S5tpV2HAKhAzfFtadeDNpJVOc5gLx79sUhqiZG9nfcbcizF5xH8sp1Evzz9fVOtpe5 vrWr/j9GLXbY62s5ZdqbUru2s11moYvp2RskwVfeNm9wCsRU6sU37KjNyF959tV0MPmZ MVScbYpdsskliQHBZnkjgbFzcUmAN25amqpANcXv5Yv7TbA94x7gizdCAZFxAcVfEca5 52LPBk5D0qkMRBA5pfvQj5zu5hZD7xl6inDj2rLRB1xVi+lY0WBPXd2O7kIkzqqx1gei Pb0g0vPQP6Jl5s46HRlJPnGKWMsAhlqqo7TK0IlLmlD53OOhse/kq7M6reG50Q1/Jid/ Ggow== X-Gm-Message-State: AGi0PuYaIasazXuZkdMAObya2WMaza8NE/XRkLSfnI8K41xcTaMdBYt0 beFlsO2lFElc9pOUdOPfrm9zNU3zwawVVwEYrvs= X-Received: by 2002:a6b:3111:: with SMTP id j17mr9602504ioa.17.1586165723110; Mon, 06 Apr 2020 02:35:23 -0700 (PDT) MIME-Version: 1.0 References: <20200402152758.10363-1-sathish.narasimman@intel.com> <20200402152758.10363-2-sathish.narasimman@intel.com> <59EE263D-87B2-42E0-A5EA-9F261BAC29BC@holtmann.org> In-Reply-To: <59EE263D-87B2-42E0-A5EA-9F261BAC29BC@holtmann.org> From: Sathish Narasimman Date: Mon, 6 Apr 2020 15:05:12 +0530 Message-ID: Subject: Re: [PATCH v7 2/2] bluetooth:btusb: handle msbc audio over USB Endpoints To: Marcel Holtmann Cc: Bluetooth Kernel Mailing List , Sathish Narasimman , Chethan T N , Hsin-Yu Chao , Amit K Bag Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Marcel On Fri, Apr 3, 2020 at 11:24 PM Marcel Holtmann wrote= : > > 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 tha= t also ensure that we don=E2=80=99t send this for ulaw and alaw air modes i= f 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 > Tested these 2 patches and they are working fine Thanks Sathish N