Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3225561ybb; Mon, 6 Apr 2020 04:52:18 -0700 (PDT) X-Google-Smtp-Source: APiQypJavSyAr5/XTLpCfH4LIGgu3fMdukRjqnlffw99OCoNV5YIpPruMEXI8//IJl34lGVE3bTu X-Received: by 2002:a4a:9451:: with SMTP id j17mr16954167ooi.30.1586173937906; Mon, 06 Apr 2020 04:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586173937; cv=none; d=google.com; s=arc-20160816; b=pQS/lbyTP2fsCgBhBgfRz79qIrH2I9d1njqXrcnnTZugBYWUKThY27SEOfP3RqH7X+ S+l3KYjGnsUnNAk6l3gHdV299Z9obLehUoxFlX98TQwh1Rgo/MGj4bWylBlxecib9yQi ewxoipaeeD9XWT5MhxpcxAEqhT9A9qNhzeMjn1GCNzb62+0qrWCDNTOSsTy3xLS3jZL9 DsPZ16R7GIEDlqD+XrjEKAVIvxf9ip85c+v8HFvKx8vCe+9PkD8yA7qqXahKWXKa5olS UU399R5pSnPHNOq1UPSmXGHViHNxGUYCCZ4crS4dbtw2uMVXgvSFKTTyv7SFkWd0LL2w BiNQ== 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=lHCmPXkezApfJLqIwoUPEyO2TfrxSa9SRY9pE5lsiD8=; b=w5MqfFhEgJT0X+jHXx+Xk0gA9cvb3SGxOFaImYdsct3UZDX+oMLrLJ863X84IfyKok Mop64JNddWhstElk0Njiaj7xz7aVxaFPaSwQhTztinhQW5gH2kdpGdjfWjl2fujPdC1H F/VmkwVRd6HKekWqWbtAHM+0W+GGG2J8K1iMoqUp7e0lYjalry2Z6jr4CBkizX3wVtap 3OMGbJHF4oknmOHNiaQxlgcSTqnRotjqbmVUOcE5WxGZePuXz/vLo9eAvdwI6P3iH7A+ 4h9NPaWXa8ikVmA2k53SFDIFrMJnkK9V4CIEtXVS+P481C7+2pFW+LYZjmGHIIZtScB/ 3IaA== 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 f23si8044779oti.69.2020.04.06.04.52.06; Mon, 06 Apr 2020 04:52:17 -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 S1727620AbgDFLwD convert rfc822-to-8bit (ORCPT + 99 others); Mon, 6 Apr 2020 07:52:03 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:52327 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727376AbgDFLwC (ORCPT ); Mon, 6 Apr 2020 07:52: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 AF7E2CECC4; Mon, 6 Apr 2020 14:01: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: Date: Mon, 6 Apr 2020 13:51:59 +0200 Cc: Bluetooth Kernel Mailing List , Sathish Narasimman , Chethan T N , Hsin-Yu Chao , Amit K Bag Content-Transfer-Encoding: 8BIT Message-Id: <65A96C2C-C2A7-4B93-B015-EACB623A0B18@holtmann.org> References: <20200402152758.10363-1-sathish.narasimman@intel.com> <20200402152758.10363-2-sathish.narasimman@intel.com> <59EE263D-87B2-42E0-A5EA-9F261BAC29BC@holtmann.org> To: Sathish Narasimman 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 >> > Tested these 2 patches and they are working fine good since Johan already applied them to bluetooth-next tree. Regards Marcel