Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp984050ybz; Wed, 22 Apr 2020 11:25:10 -0700 (PDT) X-Google-Smtp-Source: APiQypKfMR0PIcLs0ZIJqCnLIAPt34Fo2EZS/jsbST4XJdDc9MAtEvfcZKBtfonLlLK06V5J04bK X-Received: by 2002:a17:906:c44b:: with SMTP id ck11mr27499672ejb.110.1587579910049; Wed, 22 Apr 2020 11:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587579910; cv=none; d=google.com; s=arc-20160816; b=Su/Kygg4CHBSW33KQV1W9xuJNG4fLb2IO42hNWvFnmXE97KS/Kn6NxTzXfK96csWM1 bDgvamx3boD5iENv68aFEIwZAe7wEAN+0Y/p20SYkzLbVVHQfDQOBBC1Vn6pFaxhoiwH hqGt6Wse2U6hfnQWxatd5298sgptbvH/ccfBywgV3UXP/kB+Z5WzyCN7SPg3y07bFugX um2u5g+4nSgsuXhi9D+d+uAg+W04kmVKbn+cjpCL5UFmd9+I0WewvJW/C+47Qjvnnjq4 QczNsm/B1f5PPuo2oIWA451ERm/XhkPVpflg4ulnBIac8Kw4oHKSwqdI2js6p6DHij2S NyNQ== 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=O9eFaxwEFwwyEZT7jqbYBoB3SnTI3LWJZchID8VU+/U=; b=S5GT/En5zQ19iOhPLjjOCCk1K9xM6z8MmSGvV90kBpd7bqKwLs5ktuxJ4VKtk015Qq 7dx0zpIwpA8grPaRPSVgj9ZJB/fh38GkB6pZH8o7XXsep689e1+2xxZ+kvlicT6t2Zs0 d293RBwE4QcYVEI8PYXcwY2P6gXYvD9A5Tf7cMsY9elKhHVTv8raEVmuygZFKjPe0CDB GCoJ9yLUDKXGG6c54lWO1OxPyWKm1uw858l7vcAQtjtDVQfDdTcYeOZHIreQINfidyhT /mt2tdIJ8SurFTtJsyMsup3QjbrOeatYY7HClxk2VfFizjj/6EHPtsW8lwBJA1dVfZvl 3jng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@belchamber.com header.s=6rp4w2husmdhljsd36xpa6qg7i74gvwa header.b=cOWMb9uG; dkim=pass header.i=@amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.b="bDi3B1/H"; 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 p4si32976ejd.3.2020.04.22.11.24.31; Wed, 22 Apr 2020 11:25:10 -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=cOWMb9uG; dkim=pass header.i=@amazonses.com header.s=shh3fegwg5fppqsuzphvschd53n6ihuv header.b="bDi3B1/H"; 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 S1726413AbgDVSWK (ORCPT + 99 others); Wed, 22 Apr 2020 14:22:10 -0400 Received: from a7-18.smtp-out.eu-west-1.amazonses.com ([54.240.7.18]:35922 "EHLO a7-18.smtp-out.eu-west-1.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726412AbgDVSWK (ORCPT ); Wed, 22 Apr 2020 14:22:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6rp4w2husmdhljsd36xpa6qg7i74gvwa; d=belchamber.com; t=1587579728; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Content-Type; bh=YWkQSnhh26aKnsSU32ykFoK16FB6iB6/L6EMP3JxaM4=; b=cOWMb9uGkS8eguRF1Nf6l2hcafXjIp2D3I2M437RgwQ3mrYapTN/oxAVIuZpx2C1 fjA+t/Y4TQ9bpiR0ZQvNzCJFEHPiiCoaBxfCWezwQGXFqpIMXHmUf91kUpRaFSM7G8D v/QfAUOLFPzThWoppe4ZfApf0CeJtAafOyt59X8w= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=shh3fegwg5fppqsuzphvschd53n6ihuv; d=amazonses.com; t=1587579728; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Content-Type:Feedback-ID; bh=YWkQSnhh26aKnsSU32ykFoK16FB6iB6/L6EMP3JxaM4=; b=bDi3B1/HjN+9BRFg9wqfIFTGU2f/9+yr3pqbYsPwOrRXDOr5pCwm1NMw4DDie/uv Vl/RI2tPbAeYDHoF1Z1T4Gp2RSqnsSpOpH/0Y8zaGAyDnISaXKP4hB3jrh23Ywuzf9Q HJqf0XhYXLlP0FFdbrNQjan9TReusvZd41DPVm+k= X-Gm-Message-State: AGi0PuZTzJvF+0ReUIXYb89QCA6HI/PCccyf564BO47BsUt6ztaRLy+m qRq1HfrtTB0xSLBIRZhTVAaN9rWYU/5pDuNVjMc= X-Received: by 2002:a5e:d516:: with SMTP id e22mr26088037iom.183.1587579726464; Wed, 22 Apr 2020 11:22:06 -0700 (PDT) MIME-Version: 1.0 References: <010201715012e482-bca51111-db3c-4101-9bd4-208b69a0ff03-000000@eu-west-1.amazonses.com> In-Reply-To: <010201715012e482-bca51111-db3c-4101-9bd4-208b69a0ff03-000000@eu-west-1.amazonses.com> From: James Belchamber Date: Wed, 22 Apr 2020 18:22:08 +0000 X-Gmail-Original-Message-ID: Message-ID: <01020171a3203016-7d1d5c39-46ee-4ba9-8ff3-a6928a329d2a-000000@eu-west-1.amazonses.com> Subject: Re: Setup Synchronous Connection fails when switching Sony WH-H900N headset to HSP To: marcel@holtmann.org, johan.hedberg@gmail.com Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-SES-Outgoing: 2020.04.22-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 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 :)