Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1698734ybz; Thu, 23 Apr 2020 04:09:20 -0700 (PDT) X-Google-Smtp-Source: APiQypKmFgPw3Th4whYMpgFGbG0JvfjOk4+RKCoHaz1FNVCX6os5NAZKRqnFPaYD7rQlTYYP8U6J X-Received: by 2002:a17:906:31d7:: with SMTP id f23mr2218515ejf.59.1587640160698; Thu, 23 Apr 2020 04:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587640160; cv=none; d=google.com; s=arc-20160816; b=ri1AeocnQmnK5Ot9v/93RnsWjfPj7ur5xhWwdLdrnZ5WLi4tHIVeLeFBfk+bSplasR L/qNWoWqQcxUMSbYGGbqpcFhAuz3nBayv+Hyb1S4VXL+DSFbubyZNG47qjY+upvcjQ2W HpshoCZryZ1jRhl87cbrjGq1mJ0umR08MkREw0Zy8sCPaDRZgkG+24OKjdyesecbGfmb OABzMSt2+xRU5Pi3TUeJlB91AK5em6Z0IogZwMKDY9VpZfcxIZI59+1g8pyAh7j1I0+k x7AuXgC2tnt/e4y61N1ro8FT/bykDhO/fNPg2R9ATqtxPqFyaAe05xBJ+TqoT7FyMBE7 YcJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:cc:to:subject:message-id:date :from:in-reply-to:references:mime-version:dkim-signature :dkim-signature; bh=KeiX6Ha2rzlo2HxvWLAItdV5lIzT55V4zKsxCuoZzqg=; b=VPbwD7ImsGF5km9HAjBRCwP5SRgNbDdllDygHqU5w7kyxrib36+p5yMOG7jhgiI5rr et358HI0EcAC6mMVVkHZk1OGlG5rSXObM/nti5n4cox9gj6f4K+3hNxu7JSSQVhspsSU 0o7xsaGKZpgHtgIKLpWuJctASqXuwH+PB8WknBVtjMzdQjPC1euoM2iQKpqmc7n5IPED wYISrQqe6w4mVtlwTkKwGx8Mu9gTyxn2vSHnOTAWQYBs8Ov8AC4WQ+ck1fF1dKqMZm6I /nwyjgFaJebbf0n/18Wa7g48U7YP8NAWdQHbHioorHLKX5eFPTNJPOwafZYmkaHFiDgJ AjCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@belchamber.com header.s=6rp4w2husmdhljsd36xpa6qg7i74gvwa header.b=AnftHPq9; dkim=pass header.i=@amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.b=r8Fic0Tx; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=belchamber.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si1024005ejb.521.2020.04.23.04.08.42; Thu, 23 Apr 2020 04:09:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@belchamber.com header.s=6rp4w2husmdhljsd36xpa6qg7i74gvwa header.b=AnftHPq9; dkim=pass header.i=@amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.b=r8Fic0Tx; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=belchamber.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728006AbgDWLG1 (ORCPT + 99 others); Thu, 23 Apr 2020 07:06:27 -0400 Received: from a7-18.smtp-out.eu-west-1.amazonses.com ([54.240.7.18]:40124 "EHLO a7-18.smtp-out.eu-west-1.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726805AbgDWLG1 (ORCPT ); Thu, 23 Apr 2020 07:06:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6rp4w2husmdhljsd36xpa6qg7i74gvwa; d=belchamber.com; t=1587639983; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Content-Type; bh=8S+rr6+VCtO86NiWdAu9R+szMneTBAP+ltocy0LNmv4=; b=AnftHPq9hrZItn0sGXyD+mTVHpAwzVgMhFYYhX2C6YnwSQS6iP/DH+sM6Z9PannT P7Z7c4RchbyZRYtV0DNzOeL3cBEtRRvYZjSWVXTleAttuICQ18b3BGfJeb5h5csI99i hWY/MNKy+YhtKsI7a4fFlBxWcLKuTHIneCyJzxP4= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=shh3fegwg5fppqsuzphvschd53n6ihuv; d=amazonses.com; t=1587639983; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Content-Type:Feedback-ID; bh=8S+rr6+VCtO86NiWdAu9R+szMneTBAP+ltocy0LNmv4=; b=r8Fic0TxbBV5HyJjYvBKTgWsL+vQUYvrTv0a51LcHdM8v8FTKMBR7qgAnqLhbytm s9iV+H8mrr7CP/rD0ibiJz8qai9mKE4Vgx/mDuuo22uFCA8oNxnvsUL4ZQwLfkOg0TF x9fQbbaNsNtpHtge/DIdstE0wUkwvZ80fGysjLVI= X-Gm-Message-State: AGi0PuaBwf4nK+UJMk3vs9zbK2Ri3XNIcQ1VASP1CHWKOYoSTMwY6ztm Qcs5I1MaS7J7e9ko4LycKkgxQvNKOeZc7Wf9wyg= X-Received: by 2002:a02:c9cb:: with SMTP id c11mr2497041jap.93.1587639981036; Thu, 23 Apr 2020 04:06:21 -0700 (PDT) MIME-Version: 1.0 References: <010201715012e482-bca51111-db3c-4101-9bd4-208b69a0ff03-000000@eu-west-1.amazonses.com> <01020171a3203016-7d1d5c39-46ee-4ba9-8ff3-a6928a329d2a-000000@eu-west-1.amazonses.com> In-Reply-To: From: James Belchamber Date: Thu, 23 Apr 2020 11:06:22 +0000 X-Gmail-Original-Message-ID: Message-ID: <01020171a6b79a5e-6f98b660-3a61-4542-b956-70276882f469-000000@eu-west-1.amazonses.com> Subject: Re: Setup Synchronous Connection fails when switching Sony WH-H900N headset to HSP To: Luiz Augusto von Dentz Cc: Marcel Holtmann , Johan Hedberg , "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-SES-Outgoing: 2020.04.23-54.240.7.18 Feedback-ID: 1.eu-west-1.iLkSOx0ll0H29nNg//Fx25T4fmIhOvUmYvVubjmmX6g=:AmazonSES Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Only difference in the btmon output is the handle (256 instead of 67) - otherwise it all looks the same and it connects first time. What logs are useful? I have the Chromebook in developer mode and so I can capture whatever you want (hopefully!) On Wed, 22 Apr 2020 at 23:32, Luiz Augusto von Dentz wrote: > > Hi James, > > On Wed, Apr 22, 2020 at 11:27 AM James Belchamber wrote: > > > > Just bumping this for visibility, still an issue with the latest kernel. > > > > Happy to test anything thrown my way. > > > > On Mon, 6 Apr 2020 at 16:19, James Belchamber wrote: > > > > > > When using my Sony WH-H900N headphones and switching from A2DP to > > > HSP/HFP the following error appears in journalctl: > > > > > > ( 60.063| 0.000) D: [pulseaudio] module-bluez5-device.c: Acquiring > > > transport /org/bluez/hci0/dev_04_5D_4B_E9_C9_90/fd34 > > > ( 60.063| 0.000) I: [pulseaudio] backend-native.c: doing connect > > > ( 60.174| 0.111) E: [pulseaudio] backend-native.c: connect(): > > > Function not implemented > > > > > > And using btmon I can see the HCI command comes back with a failure > > > (full log attached): > > > > > > < HCI Command: Setup Synchronous Connection (0x01|0x0028) plen 17 > > > Handle: 67 > > > Transmit bandwidth: 8000 > > > Receive bandwidth: 8000 > > > Max latency: 10 > > > Setting: 0x0060 > > > Input Coding: Linear > > > Input Data Format: 2's complement > > > Input Sample Size: 16-bit > > > # of bits padding at MSB: 0 > > > Air Coding Format: CVSD > > > Retransmission effort: Optimize for power consumption (0x01) > > > Packet type: 0x0380 > > > 3-EV3 may not be used > > > 2-EV5 may not be used > > > 3-EV5 may not be used > > > > HCI Event: Command Status (0x0f) plen 4 > > > Setup Synchronous Connection (0x01|0x0028) ncmd 1 > > > Status: Success (0x00) > > > > HCI Event: Max Slots Change (0x1b) plen 3 > > > Handle: 67 > > > Max slots: 1 > > > > HCI Event: Synchronous Connect Complete (0x2c) plen 17 > > > Status: Unspecified Error (0x1f) > > > Handle: 67 > > > Address: 04:5D:4B:E9:C9:90 (Sony Corporation) > > > Link type: eSCO (0x02) > > > Transmission interval: 0x00 > > > Retransmission window: 0x00 > > > RX packet length: 0 > > > TX packet length: 0 > > > Air mode: u-law log (0x00) > > > > > > This works on ChromeOS, which also uses a (modified) BlueZ stack - > > > though I can't work out why :) > > It doesn't look like it is a host problem and Ive never seem this > error before, have you tried with the same controller on Chrome OS? It > may be worth trying to capture the logs in Chrome OS so we can compare > if there is something different in the command parameters, but it > could as well be that Chrome uses HFP instead of HSP as PulseAudio > does and the headset is sensitive to that. > > -- > Luiz Augusto von Dentz