From 3db60f785ba8c0866a7aded0598ec041fca77ca6 Mon Sep 17 00:00:00 2001 From: Bjoern Hartmann Date: Tue, 16 Mar 2021 16:36:50 +0100 Subject: [PATCH] hfp_ag: add events for speaker and microphone volume change --- src/classic/hfp_ag.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/classic/hfp_ag.c b/src/classic/hfp_ag.c index c7eb0ced2..4677c7407 100644 --- a/src/classic/hfp_ag.c +++ b/src/classic/hfp_ag.c @@ -2023,11 +2023,13 @@ static void hfp_ag_handle_rfcomm_data(uint8_t packet_type, uint16_t channel, uin hfp_connection->command = HFP_CMD_NONE; hfp_connection->ok_pending = 1; log_info("HF speaker gain = %u", hfp_connection->speaker_gain); + hfp_emit_event(hfp_connection, HFP_SUBEVENT_SPEAKER_VOLUME, hfp_connection->speaker_gain); break; case HFP_CMD_SET_MICROPHONE_GAIN: hfp_connection->command = HFP_CMD_NONE; hfp_connection->ok_pending = 1; log_info("HF microphone gain = %u", hfp_connection->microphone_gain); + hfp_emit_event(hfp_connection, HFP_SUBEVENT_MICROPHONE_VOLUME, hfp_connection->speaker_gain); break; default: break;