From patchwork Tue Jun 8 12:24:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "K, Kiran" X-Patchwork-Id: 456002 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05C86C48BCF for ; Tue, 8 Jun 2021 12:20:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E595061182 for ; Tue, 8 Jun 2021 12:20:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232531AbhFHMWp (ORCPT ); Tue, 8 Jun 2021 08:22:45 -0400 Received: from mga04.intel.com ([192.55.52.120]:22776 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231993AbhFHMWo (ORCPT ); Tue, 8 Jun 2021 08:22:44 -0400 IronPort-SDR: 0uhM40vYpIxkEUCkBqbiOrn5Dd7y5TV4qmKgzyBLVfyYpoxuodpUuBtyd3RYQYYc2iTtyXSKLL 1mPLHsftXKXA== X-IronPort-AV: E=McAfee;i="6200,9189,10008"; a="202973550" X-IronPort-AV: E=Sophos;i="5.83,258,1616482800"; d="scan'208";a="202973550" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2021 05:20:52 -0700 IronPort-SDR: 98a9bH3UBc2H3wdafjVxU4zFn6eR+wXFeyGjILQwAMWuXBYV8RmBuBS2LGWAj/1ibyK7lPNi7+ f349IGVX1Pqg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,258,1616482800"; d="scan'208";a="619283444" Received: from intel-lenovo-legion-y540-15irh-pg0.iind.intel.com ([10.224.186.95]) by orsmga005.jf.intel.com with ESMTP; 08 Jun 2021 05:20:51 -0700 From: Kiran K To: linux-bluetooth@vger.kernel.org Cc: Kiran K Subject: [PATCH v9 03/10] Bluetooth: Add a callback function to retireve data path Date: Tue, 8 Jun 2021 17:54:48 +0530 Message-Id: <20210608122455.19583-3-kiran.k@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210608122455.19583-1-kiran.k@intel.com> References: <20210608122455.19583-1-kiran.k@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org There is no standard HCI command to retrieve data path for transport. Add a new callback function to retrieve data path which is used in offload usecase. This needs to be set at setup stage if controller supports offload codecs Signed-off-by: Kiran K Reviewed-by: Chethan T N Reviewed-by: Srivatsa Ravishankar --- * changes in v9: - define a separate patch for core changes include/net/bluetooth/hci_core.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index 3284044c3dd7..641477396da3 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h @@ -617,6 +617,7 @@ struct hci_dev { int (*set_bdaddr)(struct hci_dev *hdev, const bdaddr_t *bdaddr); void (*cmd_timeout)(struct hci_dev *hdev); bool (*prevent_wake)(struct hci_dev *hdev); + int (*get_data_path)(struct hci_dev *hdev); }; #define HCI_PHY_HANDLE(handle) (handle & 0xff)