From 3ad98ca75b8fb8e2311cafba48e9ae2d0861289c Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 24 Feb 2022 11:25:47 +0100 Subject: [PATCH] example/hfp_ag_demo: print microphone and speaker gain --- example/hfp_ag_demo.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/example/hfp_ag_demo.c b/example/hfp_ag_demo.c index b256ff71b..bcd9eb2c2 100644 --- a/example/hfp_ag_demo.c +++ b/example/hfp_ag_demo.c @@ -561,6 +561,16 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t * even sco_handle = HCI_CON_HANDLE_INVALID; sco_demo_close(); break; + + case HFP_SUBEVENT_SPEAKER_VOLUME: + printf("Speaker volume: gain %u\n", + hfp_subevent_speaker_volume_get_gain(event)); + break; + case HFP_SUBEVENT_MICROPHONE_VOLUME: + printf("Microphone volume: gain %u\n", + hfp_subevent_microphone_volume_get_gain(event)); + break; + case HFP_SUBEVENT_START_RINGING: printf("** START Ringing **\n"); break;