Lines Matching refs:mute_val
51 static void micp_mic_ctlr_mute_changed(struct bt_micp_mic_ctlr *mic_ctlr, int err, uint8_t mute_val) in micp_mic_ctlr_mute_changed() argument
57 listener->mute(mic_ctlr, err, mute_val); in micp_mic_ctlr_mute_changed()
62 static void micp_mic_ctlr_mute_written(struct bt_micp_mic_ctlr *mic_ctlr, int err, uint8_t mute_val) in micp_mic_ctlr_mute_written() argument
67 if (mute_val == BT_MICP_MUTE_UNMUTED) { in micp_mic_ctlr_mute_written()
103 uint8_t *mute_val; in mute_notify_handler() local
113 if (length == sizeof(*mute_val)) { in mute_notify_handler()
114 mute_val = (uint8_t *)data; in mute_notify_handler()
115 LOG_DBG("Mute %u", *mute_val); in mute_notify_handler()
116 micp_mic_ctlr_mute_changed(mic_ctlr, 0, *mute_val); in mute_notify_handler()
119 LOG_DBG("Invalid length %u (expected %zu)", length, sizeof(*mute_val)); in mute_notify_handler()
131 uint8_t mute_val = 0; in micp_mic_ctlr_read_mute_cb() local
138 if (length == sizeof(mute_val)) { in micp_mic_ctlr_read_mute_cb()
139 mute_val = ((uint8_t *)data)[0]; in micp_mic_ctlr_read_mute_cb()
140 LOG_DBG("Mute %u", mute_val); in micp_mic_ctlr_read_mute_cb()
142 LOG_DBG("Invalid length %u (expected %zu)", length, sizeof(mute_val)); in micp_mic_ctlr_read_mute_cb()
147 micp_mic_ctlr_mute_changed(mic_ctlr, cb_err, mute_val); in micp_mic_ctlr_read_mute_cb()
156 uint8_t mute_val = mic_ctlr->mute_val_buf[0]; in micp_mic_ctlr_write_mics_mute_cb() local
162 micp_mic_ctlr_mute_written(mic_ctlr, err, mute_val); in micp_mic_ctlr_write_mics_mute_cb()