Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4513794ybi; Sat, 6 Jul 2019 06:45:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzLVwdluOoCVJrhlp3OInGH2C1b1pimnhPoG9MXbkiHch4P7laPFpm6NOuvSukjAXn51GSe X-Received: by 2002:a17:90a:a489:: with SMTP id z9mr11404994pjp.24.1562420745054; Sat, 06 Jul 2019 06:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562420745; cv=none; d=google.com; s=arc-20160816; b=GFvaIOciQwjestHXnf0/LG8H7e0oqg0HS44CQOEdtI5mXBCoSsojy98ponUiXGwFdF ZFrCJ2J/cVtZD8eHTyPvQmAYm1F/R5Cb2nL0jC5v5T/PsjjUGyrIN/ZVWQJysCfh3GMj t7qXU47PLfgSjKzZuKnx2StSDjKY08+kP9ueaUPvmne6+BfepyPMyVh+Kgxjcn0GlpAy mqZwSVdtOK4zfWPFvv+LVNr6hZ45EcisvT9ogN4KnSF/RLULyZRxmf7UKdWYaFkK7yoj wb94TAHmlHPLDWtwpkgLr/Qog2dkL89h/tTNGnkGcAzrWR5r+ZAwcCeDq/eGA2Fvoqt5 +Nzg== 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=bGnahCl1r56eYTFEhTsAOE7XQ7+w5XkxQCxjemssTMs=; b=m1bwvm+BpxJTTq/CdGr3Seqm/oYuSUC7sl8VdWlfsP8p/BdmEeeoX1/ncnzm4IK7tS 4KEwYnTisJ3hkwZ23rpOkOapQiDnxuJCPOe8aD2R/xw/j9E1+4w2DwPTZjztmEE87l23 DIoPtGJVRKe/aZQKWbdaYPz6lVxWwbkeXvS6uiUIx6akQK4yOFHcREBA7m0BxXaVbhcP orbhqy2YM0S3Nq6mwTeuNeuUF6TjUJSzM9fgtupTACN5LP1f/ITbjzWcNxE3t65nb9tM g4vmuQCcBnOOdWlnPjthjQcEvUtYO842JlP1hOyWl9njLxRZbTeSknYfmcoCKW1L3IVb OcSw== 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 z5si11193952pgv.280.2019.07.06.06.45.29; Sat, 06 Jul 2019 06:45:45 -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 S1726362AbfGFNpF convert rfc822-to-8bit (ORCPT + 99 others); Sat, 6 Jul 2019 09:45:05 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:41061 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbfGFNpF (ORCPT ); Sat, 6 Jul 2019 09:45:05 -0400 Received: from [192.168.0.171] (188.146.228.97.nat.umts.dynamic.t-mobile.pl [188.146.228.97]) by mail.holtmann.org (Postfix) with ESMTPSA id D02BBCF12E; Sat, 6 Jul 2019 15:53:35 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: HCI Set custom bandwidth for AuriStream SCO codec From: Marcel Holtmann In-Reply-To: <20190607130245.mv4ch6dxnuptzdki@pali> Date: Sat, 6 Jul 2019 15:45:03 +0200 Cc: Pavel Machek , Luiz Augusto von Dentz , "linux-bluetooth@vger.kernel.org" , Johan Hedberg Content-Transfer-Encoding: 8BIT Message-Id: References: <20190504171550.llqfv5674gxd3bnn@pali> <20190506151651.pu2us2fgsf7w2vos@pali> <20190516183429.ql3hxtnmiabcq7tj@pali> <20190519082305.q7y4gpmdhvx3vzvo@pali> <20190519212157.GB31403@amd> <20190607130245.mv4ch6dxnuptzdki@pali> To: =?utf-8?Q?Pali_Roh=C3=A1r?= X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Pali, >>>>> to be honest, I would rather see WBS implementation finally >>>>> reach PA before we start digging into this. >>>> >>>> First I want to finish improving A2DP codec support in pulseaudio. Later >>>> I can look at HSP/HFP profiles. Ideally it should have modular/plugin >>>> extensible design. So the aim is that adding new codec would be very >>>> simple, without need to hack something related to mSBC/WBC, AuriStream >>>> or any other codec. >>> >>> Well HSP don't have support for codec negotiation, but yes a modular >>> design is probably recommended. >>> >>>> But for AuriStream I need to set custom SCO parameters as described >>>> below and currently kernel does not support it. This is why I'm asking >>>> how kernel can export for userspace configuration of SCO parameters... >>> >>> We can always come up with socket options but we got to see the value >>> it would bring since AuriStream don't look that popular among >>> headsets, at least Ive never seem any device advertising it like >>> apt-X, etc. >> >> Pali clearly has such device and he is willing to work on it. Surely >> that means it is popular enough to be supported...? > > Just put AT+CSRSF=0,0,0,0,0,7 to google search and you would see that > not only I have such device... > > So I would really would like to see that kernel finally stops blocking > usage of this AuriStream codec. we need to figure out on how we do the kernel API to allow you this specific setting. We have kept is really simple since there was only CVSD and mSBC as of now. I am also curious on what the assumptions are for the USB driver alternate settings are when using a different codec. Regards Marcel