Lines Matching +full:mute +full:- +full:control
1 /* btp_micp.c - Bluetooth MICP Tester */
6 * SPDX-License-Identifier: Apache-2.0
53 /* Microphone Control Profile */
62 ev.mute_handle = sys_cpu_to_le16(micp_handles->mute_handle); in btp_send_micp_found_ev()
63 ev.state_handle = sys_cpu_to_le16(micp_handles->state_handle); in btp_send_micp_found_ev()
64 ev.gain_handle = sys_cpu_to_le16(micp_handles->gain_handle); in btp_send_micp_found_ev()
65 ev.type_handle = sys_cpu_to_le16(micp_handles->type_handle); in btp_send_micp_found_ev()
66 ev.status_handle = sys_cpu_to_le16(micp_handles->status_handle); in btp_send_micp_found_ev()
67 ev.control_handle = sys_cpu_to_le16(micp_handles->control_handle); in btp_send_micp_found_ev()
68 ev.desc_handle = sys_cpu_to_le16(micp_handles->desc_handle); in btp_send_micp_found_ev()
73 static void btp_send_micp_mute_state_ev(struct bt_conn *conn, uint8_t att_status, uint8_t mute) in btp_send_micp_mute_state_ev() argument
80 ev.mute = mute; in btp_send_micp_mute_state_ev()
85 static void micp_mic_ctlr_mute_cb(struct bt_micp_mic_ctlr *mic_ctlr, int err, uint8_t mute) in micp_mic_ctlr_mute_cb() argument
89 mute_state = mute; in micp_mic_ctlr_mute_cb()
94 LOG_DBG("MICP Mute cb (%d)", err); in micp_mic_ctlr_mute_cb()
104 LOG_DBG("MICP Mute Written cb (%d))", err); in micp_mic_ctlr_mute_written_cb()
114 LOG_DBG("MICP Mute Unwritten cb (%d))", err); in micp_mic_ctlr_unmute_written_cb()
141 micp_handles.state_handle = micp_included.aics[0]->cli.state_handle; in micp_mic_ctlr_discover_cb()
142 micp_handles.gain_handle = micp_included.aics[0]->cli.gain_handle; in micp_mic_ctlr_discover_cb()
143 micp_handles.type_handle = micp_included.aics[0]->cli.type_handle; in micp_mic_ctlr_discover_cb()
144 micp_handles.status_handle = micp_included.aics[0]->cli.status_handle; in micp_mic_ctlr_discover_cb()
145 micp_handles.control_handle = micp_included.aics[0]->cli.control_handle; in micp_mic_ctlr_discover_cb()
146 micp_handles.desc_handle = micp_included.aics[0]->cli.desc_handle; in micp_mic_ctlr_discover_cb()
150 micp_handles.mute_handle = mic_ctlr->mute_handle; in micp_mic_ctlr_discover_cb()
156 .mute = micp_mic_ctlr_mute_cb,
167 tester_set_bit(rp->data, BTP_MICP_READ_SUPPORTED_COMMANDS); in micp_supported_commands()
168 tester_set_bit(rp->data, BTP_MICP_CTLR_DISCOVER); in micp_supported_commands()
169 tester_set_bit(rp->data, BTP_MICP_CTLR_MUTE_READ); in micp_supported_commands()
170 tester_set_bit(rp->data, BTP_MICP_CTLR_MUTE); in micp_supported_commands()
183 conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, &cp->address); in micp_discover()
202 LOG_DBG("Read mute"); in micp_mute_read()
216 LOG_DBG("MICP Mute"); in micp_mute()
273 /* Microphone Control Service */
280 tester_set_bit(rp->data, BTP_MICS_READ_SUPPORTED_COMMANDS); in mics_supported_commands()
281 tester_set_bit(rp->data, BTP_MICS_DEV_MUTE_DISABLE); in mics_supported_commands()
282 tester_set_bit(rp->data, BTP_MICS_DEV_MUTE_READ); in mics_supported_commands()
283 tester_set_bit(rp->data, BTP_MICS_DEV_MUTE); in mics_supported_commands()
284 tester_set_bit(rp->data, BTP_MICS_DEV_UNMUTE); in mics_supported_commands()
295 LOG_DBG("MICP Mute disable"); in mics_mute_disable()
309 LOG_DBG("MICS Mute state read"); in mics_mute_read()
323 LOG_DBG("MICS Mute"); in mics_mute()
337 LOG_DBG("MICS Mute"); in mics_unmute()
347 static void btp_send_mics_mute_state_ev(uint8_t mute) in btp_send_mics_mute_state_ev() argument
351 ev.mute = mute; in btp_send_mics_mute_state_ev()
356 static void mic_dev_mute_cb(uint8_t mute) in mic_dev_mute_cb() argument
358 LOG_DBG("Microphone Device Mute cb"); in mic_dev_mute_cb()
360 btp_send_mics_mute_state_ev(mute); in mic_dev_mute_cb()
364 .mute = mic_dev_mute_cb,
369 uint8_t mute, uint8_t mode) in aics_state_cb() argument