Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2040713ybx; Thu, 7 Nov 2019 22:12:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwl+AIriMSjkLbaTKphUaCRIbQYdzIILcRmqLGXc2MMm1vcueyHbStyUT/3Yl2ein0A5FiI X-Received: by 2002:a05:6402:128c:: with SMTP id w12mr8278423edv.178.1573193557152; Thu, 07 Nov 2019 22:12:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573193557; cv=none; d=google.com; s=arc-20160816; b=tLJz3+wNwvKzsUFd/ZiG8iy6LK4AmBHRClbUMBd2HbxDanU6MReE7Aul9umg5Umivx 9zPrNW+BUheYpP0idTbJ0xv2hfuY/4wwPrvT7U4DFzxt6d+5ZUg6FUxjVywxsuTeTB2t +irJVpMvhT5OV231WuccZnVmt5PdnEx508gYKbUs0xxIXFLqKGTTmTG9fMK55Gd+0cSY 5W1jqVOMieD2m2BvbzCwyUD+Ux9Y2wvMZYg+elsQkJT18yRKcNhsg86V2SHpuPRalGny MffYLEi4DI0ntae2KXf6fA0tzNZFPw0TE9SY7L5DYMzTgZT8/A2Cx3a3rVFFC/ABtxMK stNw== 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=H/RjHaqzv+6a7wz+19/srVfJQxztVOhKHzaAAgLZJYQ=; b=y037RrwRRlg6ip7LCl2QOsMG94hDQrUf2DBEnvf1fP7w9+MVRHUALowJGlfTRft6rS 6YDwOEv4HWK21WkX+UUzuvfQ7B9mBNT3Cuz6lzUzU2awT6yxxQz0medFUZ6B0iz00M13 WiN+gqHvREg7AgE6Vzt95E2V5HsXdW/or8bDQhdlU4LmUZHl03wmjJ222s3SsgFIdemI tDIWQ2vmm34CaWuZPIMtDs/DKy1opTtoikAv20WwZCh8rI6PXXonlbcMBLTO6fYnu0vI 93o5plawwVe4ujCRI9EezHeSONrJ+Qu8y3os28ZRE3uT4KiEVx/cifM9y2NSxm7L0yoI 9kCg== 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 s35si3378809edd.261.2019.11.07.22.12.12; Thu, 07 Nov 2019 22:12:37 -0800 (PST) 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 S1725886AbfKHGL0 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 8 Nov 2019 01:11:26 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:60241 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbfKHGL0 (ORCPT ); Fri, 8 Nov 2019 01:11:26 -0500 Received: from marcel-macpro.fritz.box (p5B3D2BA4.dip0.t-ipconnect.de [91.61.43.164]) by mail.holtmann.org (Postfix) with ESMTPSA id BDC44CED12; Fri, 8 Nov 2019 07:20:28 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\)) Subject: Re: [PATCH v2 2/4] Bluetooth: btbcm: Support pcm configuration From: Marcel Holtmann In-Reply-To: <20191107232713.48577-3-abhishekpandit@chromium.org> Date: Fri, 8 Nov 2019 07:11:24 +0100 Cc: Johan Hedberg , Rob Herring , linux-bluetooth@vger.kernel.org, dianders@chromium.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <95E7AD4E-E434-4249-9861-199375534CB1@holtmann.org> References: <20191107232713.48577-1-abhishekpandit@chromium.org> <20191107232713.48577-3-abhishekpandit@chromium.org> To: Abhishek Pandit-Subedi X-Mailer: Apple Mail (2.3601.0.10) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Abhishek, > Add BCM vendor specific commands to configure PCM. please be a bit more descriptive and you can also add the command decoding from btmon here if you like. > > Signed-off-by: Abhishek Pandit-Subedi > --- > > Changes in v2: None > > drivers/bluetooth/btbcm.c | 35 +++++++++++++++++++++++++++++++++++ > drivers/bluetooth/btbcm.h | 10 ++++++++++ > 2 files changed, 45 insertions(+) > > diff --git a/drivers/bluetooth/btbcm.c b/drivers/bluetooth/btbcm.c > index 2d2e6d862068..f052518f7b0c 100644 > --- a/drivers/bluetooth/btbcm.c > +++ b/drivers/bluetooth/btbcm.c > @@ -105,6 +105,41 @@ int btbcm_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr) > } > EXPORT_SYMBOL_GPL(btbcm_set_bdaddr); > > +int btbcm_set_pcm_params(struct hci_dev *hdev, > + const struct bcm_set_pcm_int_params *int_params, > + const struct bcm_set_pcm_format_params *format_params) > +{ > + struct sk_buff *skb; > + int err; > + > + if (int_params) { > + skb = __hci_cmd_sync(hdev, 0xfc1c, 5, int_params, > + HCI_INIT_TIMEOUT); > + if (IS_ERR(skb)) { > + err = PTR_ERR(skb); > + bt_dev_err(hdev, "BCM: Set PCM int params failed (%d)", > + err); > + return err; > + } > + kfree_skb(skb); > + } Actually lets do btbcm_set_pcm_int_params and focus on the ones you are using right now. Regards Marcel