Bluetooth: audio: tbs_client: Subscribe to all required notifications
This removes odd `subscribe` parameter from bt_tbs_client_discover function parameters list. As the API user enables specific CONFIG_BT_TBS_CLIENT_* option, the client implementation should subscribe to the characteristic notifications so that the user receives the value updates. Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
parent
c9bf63b197
commit
2b27b4ebe0
6 changed files with 9 additions and 24 deletions
|
@ -32,7 +32,7 @@ static int process_profile_connection(struct bt_conn *conn)
|
|||
int err = 0;
|
||||
|
||||
if (!atomic_test_and_set_bit(flags_for_conn, CCP_FLAG_GTBS_DISCOVER)) {
|
||||
err = bt_tbs_client_discover(conn, true);
|
||||
err = bt_tbs_client_discover(conn);
|
||||
if (err != 0) {
|
||||
printk("bt_tbs_client_discover (err %d)\n", err);
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ int ccp_call_ctrl_init(struct bt_conn *conn)
|
|||
|
||||
default_conn = bt_conn_ref(conn);
|
||||
bt_tbs_client_register_cb(&tbs_client_cb);
|
||||
err = bt_tbs_client_discover(conn, true);
|
||||
err = bt_tbs_client_discover(conn);
|
||||
if (err != 0) {
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue