Bluetooth: Audio: Remove const for bt_audio_stream_reconfig codec
The codec is assigned to the stream. However since the metadata, which is stored in the codec, may be modified by other means, the stored pointer cannot be const, and thus the codec argument to bt_audio_stream_reconfig cannot be const either. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
18a889fb8b
commit
302ec9fa37
2 changed files with 3 additions and 3 deletions
|
@ -1294,7 +1294,7 @@ struct bt_audio_stream {
|
||||||
/** Endpoint reference */
|
/** Endpoint reference */
|
||||||
struct bt_audio_ep *ep;
|
struct bt_audio_ep *ep;
|
||||||
/** Codec Configuration */
|
/** Codec Configuration */
|
||||||
const struct bt_codec *codec;
|
struct bt_codec *codec;
|
||||||
/** QoS Configuration */
|
/** QoS Configuration */
|
||||||
struct bt_codec_qos *qos;
|
struct bt_codec_qos *qos;
|
||||||
/** Audio stream operations */
|
/** Audio stream operations */
|
||||||
|
@ -1804,7 +1804,7 @@ int bt_audio_stream_config(struct bt_conn *conn,
|
||||||
* @return 0 in case of success or negative value in case of error.
|
* @return 0 in case of success or negative value in case of error.
|
||||||
*/
|
*/
|
||||||
int bt_audio_stream_reconfig(struct bt_audio_stream *stream,
|
int bt_audio_stream_reconfig(struct bt_audio_stream *stream,
|
||||||
const struct bt_codec *codec);
|
struct bt_codec *codec);
|
||||||
|
|
||||||
/** @brief Configure Audio Stream QoS
|
/** @brief Configure Audio Stream QoS
|
||||||
*
|
*
|
||||||
|
|
|
@ -1103,7 +1103,7 @@ int bt_audio_unicast_group_delete(struct bt_audio_unicast_group *unicast_group)
|
||||||
#endif /* CONFIG_BT_AUDIO_UNICAST_CLIENT */
|
#endif /* CONFIG_BT_AUDIO_UNICAST_CLIENT */
|
||||||
|
|
||||||
int bt_audio_stream_reconfig(struct bt_audio_stream *stream,
|
int bt_audio_stream_reconfig(struct bt_audio_stream *stream,
|
||||||
const struct bt_codec *codec)
|
struct bt_codec *codec)
|
||||||
{
|
{
|
||||||
uint8_t state;
|
uint8_t state;
|
||||||
uint8_t role;
|
uint8_t role;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue