* [BlueZ PATCH v1] Adding definitions for Wide Band Speech configuration
@ 2020-03-04 17:32 Alain Michaud
2020-03-04 18:36 ` Marcel Holtmann
0 siblings, 1 reply; 3+ messages in thread
From: Alain Michaud @ 2020-03-04 17:32 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Alain Michaud
This change adds the corresponding user space definition for wide band
speech.
---
doc/mgmt-api.txt | 30 ++++++++++++++++++++++++++++++
lib/mgmt.h | 5 ++++-
2 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
index 5c23268a1..ecdfd9b95 100644
--- a/doc/mgmt-api.txt
+++ b/doc/mgmt-api.txt
@@ -3052,6 +3052,36 @@ Load Blocked Keys Command
Possible errors: Invalid Parameters
Invalid Index
+Set Wide Band Speech Command
+======================
+
+ Command Code: 0x0047
+ Controller Index: <controller id>
+ Command Parameters: wide_band_speech_enabled (1 Octet)
+ Return Parameters: Current_Settings (4 Octets)
+
+ This command is used to enable/disable Wide Band Speech support for a
+ controller. The allowed values of the wide_band_speech_enabled command
+ parameter are 0x00 and 0x01. All other values will return
+ Invalid Parameters.
+
+ This command is only available for Wide Band Speech capable controllers and
+ will yield in a Not Supported error otherwise.
+
+ This command can be used when the controller is not powered and
+ all settings will be programmed once powered.
+
+ In case the kernel subsystem does not support Wide Band Speech or the
+ controller does not either, the command will fail regardless.
+
+ This command generates a Command Complete event on success or
+ a Command Status event on failure.
+
+ Possible errors: Busy
+ Not Supported
+ Invalid Parameters
+ Invalid Index
+
Command Complete Event
======================
diff --git a/lib/mgmt.h b/lib/mgmt.h
index 101cf5f95..d1f0a6053 100644
--- a/lib/mgmt.h
+++ b/lib/mgmt.h
@@ -101,7 +101,8 @@ struct mgmt_rp_read_index_list {
#define MGMT_SETTING_PRIVACY 0x00002000
#define MGMT_SETTING_CONFIGURATION 0x00004000
#define MGMT_SETTING_STATIC_ADDRESS 0x00008000
-#define MGMT_SETTING_PHY_CONFIGURATION 0x00010000
+#define MGMT_SETTING_PHY_CONFIGURATION 0x00010000
+#define MGMT_SETTING_WIDE_BAND_SPEECH 0x00020000
#define MGMT_OP_READ_INFO 0x0004
struct mgmt_rp_read_info {
@@ -599,6 +600,8 @@ struct mgmt_cp_set_blocked_keys {
struct mgmt_blocked_key_info keys[0];
} __packed;
+#define MGMT_OP_SET_WIDE_BAND_SPEECH 0x0047
+
#define MGMT_EV_CMD_COMPLETE 0x0001
struct mgmt_ev_cmd_complete {
uint16_t opcode;
--
2.25.1.481.gfbce0eb801-goog
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [BlueZ PATCH v1] Adding definitions for Wide Band Speech configuration
2020-03-04 17:32 [BlueZ PATCH v1] Adding definitions for Wide Band Speech configuration Alain Michaud
@ 2020-03-04 18:36 ` Marcel Holtmann
2020-03-04 20:18 ` Alain Michaud
0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2020-03-04 18:36 UTC (permalink / raw)
To: Alain Michaud; +Cc: linux-bluetooth
Hi Alain,
> This change adds the corresponding user space definition for wide band
> speech.
>
> ---
>
> doc/mgmt-api.txt | 30 ++++++++++++++++++++++++++++++
> lib/mgmt.h | 5 ++++-
> 2 files changed, 34 insertions(+), 1 deletion(-)
>
> diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
> index 5c23268a1..ecdfd9b95 100644
> --- a/doc/mgmt-api.txt
> +++ b/doc/mgmt-api.txt
> @@ -3052,6 +3052,36 @@ Load Blocked Keys Command
> Possible errors: Invalid Parameters
> Invalid Index
>
> +Set Wide Band Speech Command
> +======================
> +
> + Command Code: 0x0047
> + Controller Index: <controller id>
> + Command Parameters: wide_band_speech_enabled (1 Octet)
> + Return Parameters: Current_Settings (4 Octets)
> +
> + This command is used to enable/disable Wide Band Speech support for a
> + controller. The allowed values of the wide_band_speech_enabled command
> + parameter are 0x00 and 0x01. All other values will return
> + Invalid Parameters.
> +
> + This command is only available for Wide Band Speech capable controllers and
> + will yield in a Not Supported error otherwise.
> +
> + This command can be used when the controller is not powered and
> + all settings will be programmed once powered.
> +
> + In case the kernel subsystem does not support Wide Band Speech or the
> + controller does not either, the command will fail regardless.
> +
> + This command generates a Command Complete event on success or
> + a Command Status event on failure.
> +
> + Possible errors: Busy
> + Not Supported
> + Invalid Parameters
> + Invalid Index
> +
I already committed the mgmt-api.txt change since I was fixing a few things in the document.
Regards
Marcel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BlueZ PATCH v1] Adding definitions for Wide Band Speech configuration
2020-03-04 18:36 ` Marcel Holtmann
@ 2020-03-04 20:18 ` Alain Michaud
0 siblings, 0 replies; 3+ messages in thread
From: Alain Michaud @ 2020-03-04 20:18 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: Alain Michaud, BlueZ
Hi Marcel
Thanks, I will rebase and send a v2 with just the header changes.
Thanks,
Alain
On Wed, Mar 4, 2020 at 1:37 PM Marcel Holtmann <marcel@holtmann.org> wrote:
>
> Hi Alain,
>
> > This change adds the corresponding user space definition for wide band
> > speech.
> >
> > ---
> >
> > doc/mgmt-api.txt | 30 ++++++++++++++++++++++++++++++
> > lib/mgmt.h | 5 ++++-
> > 2 files changed, 34 insertions(+), 1 deletion(-)
> >
> > diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt
> > index 5c23268a1..ecdfd9b95 100644
> > --- a/doc/mgmt-api.txt
> > +++ b/doc/mgmt-api.txt
> > @@ -3052,6 +3052,36 @@ Load Blocked Keys Command
> > Possible errors: Invalid Parameters
> > Invalid Index
> >
> > +Set Wide Band Speech Command
> > +======================
> > +
> > + Command Code: 0x0047
> > + Controller Index: <controller id>
> > + Command Parameters: wide_band_speech_enabled (1 Octet)
> > + Return Parameters: Current_Settings (4 Octets)
> > +
> > + This command is used to enable/disable Wide Band Speech support for a
> > + controller. The allowed values of the wide_band_speech_enabled command
> > + parameter are 0x00 and 0x01. All other values will return
> > + Invalid Parameters.
> > +
> > + This command is only available for Wide Band Speech capable controllers and
> > + will yield in a Not Supported error otherwise.
> > +
> > + This command can be used when the controller is not powered and
> > + all settings will be programmed once powered.
> > +
> > + In case the kernel subsystem does not support Wide Band Speech or the
> > + controller does not either, the command will fail regardless.
> > +
> > + This command generates a Command Complete event on success or
> > + a Command Status event on failure.
> > +
> > + Possible errors: Busy
> > + Not Supported
> > + Invalid Parameters
> > + Invalid Index
> > +
>
> I already committed the mgmt-api.txt change since I was fixing a few things in the document.
>
> Regards
>
> Marcel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-04 20:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-04 17:32 [BlueZ PATCH v1] Adding definitions for Wide Band Speech configuration Alain Michaud
2020-03-04 18:36 ` Marcel Holtmann
2020-03-04 20:18 ` Alain Michaud
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).