From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: quic_zijuhu <quic_zijuhu@quicinc.com>
Cc: marcel@holtmann.org, johan.hedberg@gmail.com,
linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v1 0/2] Bluetooth: Support SCO offload for QCA2066
Date: Fri, 17 Nov 2023 11:02:05 -0500 [thread overview]
Message-ID: <CABBYNZLrdX5pxWNL86NcE7DvSzvLN0xMTaMvJ265=CvKYmMMcw@mail.gmail.com> (raw)
In-Reply-To: <b767f792-912d-0386-c891-4f571217e846@quicinc.com>
Hi,
On Mon, Nov 6, 2023 at 9:47 PM quic_zijuhu <quic_zijuhu@quicinc.com> wrote:
>
> On 11/7/2023 12:16 AM, Luiz Augusto von Dentz wrote:
> > Hi,
> >
> > On Mon, Nov 6, 2023 at 1:19 AM Zijun Hu <quic_zijuhu@quicinc.com> wrote:
> >>
> >> This patch series are to support SCO offload for QCA2066, ALL BTHOST
> >> needs to do is specifying both Input_Data_Path and Output_Data_Path
> >> as 0x01 for HCI_Enhanced_Setup_Synchronous_Connection, does NOT need
> >> to configure data path by HCI_Configure_Data_Path at all.
> >
> > This part it doesn't need to use HCI_Configure_Data_Path seems to be
> > non-standard, if so it needs to be handled by the driver, also it is
> > probably a good idea to explain how it works, what are the commands
> > used and the result traffic using btmon to collect the HCI trace.
> >
> My change does NOT touch current BT core driver logic at all. i just assign NULL to
> hdev->get_codec_config_data within QCA device driver. so it follows current kernel
> offload design.
>
> BTW, Core spec also does not specify standard procedures for SCO offload since it is
> vendor specific.
We should probably document the expectation so it is clearer to the
driver what to expect, also the offload must be selected by the
application via socket interface as the HCI routing is the default, so
if the controller defaults to offload that needs fixing.
As for this change in specific, the configure data path function can
check if the driver does implement it, so we don't have to check it
before calling avoiding duplicate code.
> >> Zijun Hu (2):
> >> Bluetooth: hci_conn: Check non NULL before calling
> >> hdev->get_codec_config_data()
> >> Bluetooth: qca: Support SCO offload for QCA2066
> >>
> >> drivers/bluetooth/hci_qca.c | 19 +++++++++++++++++++
> >> net/bluetooth/hci_conn.c | 2 +-
> >> 2 files changed, 20 insertions(+), 1 deletion(-)
> >>
> >> --
> >> The Qualcomm Innovation Center
> >>
> >
> >
>
--
Luiz Augusto von Dentz
next prev parent reply other threads:[~2023-11-17 16:02 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-06 6:19 [PATCH v1 0/2] Bluetooth: Support SCO offload for QCA2066 Zijun Hu
2023-11-06 6:19 ` [PATCH v1 1/2] Bluetooth: hci_conn: Check non NULL before calling hdev->get_codec_config_data() Zijun Hu
2023-11-06 7:00 ` Bluetooth: Support SCO offload for QCA2066 bluez.test.bot
2023-11-06 6:19 ` [PATCH v1 2/2] Bluetooth: qca: " Zijun Hu
2023-11-29 7:07 ` [PATCH v2 " Zijun Hu
2023-11-06 16:16 ` [PATCH v1 0/2] Bluetooth: " Luiz Augusto von Dentz
2023-11-07 2:46 ` quic_zijuhu
2023-11-17 16:02 ` Luiz Augusto von Dentz [this message]
2023-11-29 3:29 ` quic_zijuhu
2023-12-07 21:59 ` quic_zijuhu
2023-11-29 8:07 ` [PATCH v2 " Zijun Hu
2023-11-29 8:07 ` [PATCH v2 1/2] Bluetooth: hci_conn: Check non NULL before calling hdev->get_codec_config_data() Zijun Hu
2023-11-29 8:35 ` Bluetooth: Support SCO offload for QCA2066 bluez.test.bot
2023-11-29 8:07 ` [PATCH v2 2/2] Bluetooth: qca: " Zijun Hu
2023-11-29 8:18 ` [PATCH v2 0/2] Bluetooth: " Zijun Hu
2023-11-29 8:18 ` [PATCH v2 1/2] Bluetooth: hci_conn: Check non NULL before calling hdev->get_codec_config_data() Zijun Hu
2023-11-29 8:58 ` [v2,1/2] " bluez.test.bot
2023-11-29 8:18 ` [PATCH v2 2/2] Bluetooth: qca: Support SCO offload for QCA2066 Zijun Hu
2023-11-29 8:29 ` [PATCH v3 0/2] Bluetooth: " Zijun Hu
2023-11-29 8:29 ` [PATCH v3 1/2] Bluetooth: hci_conn: Check non NULL before calling hdev->get_codec_config_data() Zijun Hu
2023-11-29 8:57 ` Bluetooth: Support SCO offload for QCA2066 bluez.test.bot
2023-11-29 8:29 ` [PATCH v3 2/2] Bluetooth: qca: " Zijun Hu
2023-12-08 1:51 ` [PATCH v4 0/2] Bluetooth: " Zijun Hu
2023-12-08 1:51 ` [PATCH v4 1/2] Bluetooth: hci_conn: Check non NULL function before calling for HFP offload Zijun Hu
2023-12-08 2:47 ` Bluetooth: Support SCO offload for QCA2066 bluez.test.bot
2023-12-08 1:51 ` [PATCH v4 2/2] Bluetooth: qca: Support HFP " Zijun Hu
2023-12-08 15:10 ` [PATCH v4 0/2] Bluetooth: Support SCO " patchwork-bot+bluetooth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABBYNZLrdX5pxWNL86NcE7DvSzvLN0xMTaMvJ265=CvKYmMMcw@mail.gmail.com' \
--to=luiz.dentz@gmail.com \
--cc=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=quic_zijuhu@quicinc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).