Home
last modified time | relevance | path

Searched refs:g_volume (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dvcp_vol_rend_test.c41 static volatile uint8_t g_volume; variable
65 g_volume = volume; in vcs_state_cb()
872 const uint8_t expected_volume = g_volume > volume_step ? g_volume - volume_step : 0; in test_vol_down()
883 WAIT_FOR_COND(expected_volume == g_volume); in test_vol_down()
889 const uint8_t expected_volume = MIN((uint16_t)g_volume + volume_step, UINT8_MAX); in test_vol_up()
900 WAIT_FOR_COND(expected_volume == g_volume); in test_vol_up()
923 const uint8_t expected_volume = g_volume > volume_step ? g_volume - volume_step : 0; in test_unmute_vol_down()
935 WAIT_FOR_COND(expected_volume == g_volume && expected_mute == g_mute); in test_unmute_vol_down()
941 const uint8_t expected_volume = MIN((uint16_t)g_volume + volume_step, UINT8_MAX); in test_unmute_vol_up()
953 WAIT_FOR_COND(expected_volume == g_volume && expected_mute == g_mute); in test_unmute_vol_up()
[all …]
Dvcp_vol_ctlr_test.c32 static volatile uint8_t g_volume; variable
57 g_volume = volume; in vcs_state_cb()
957 const uint8_t expected_volume = g_volume + 5; /* Overflow is OK */ in test_set_vol()
976 WAIT_FOR_COND(g_volume == expected_volume && g_cb && g_write_complete); in test_set_vol()
982 const uint8_t previous_volume = g_volume; in test_vol_down()
1003 (g_volume < previous_volume && g_cb && g_write_complete)); in test_vol_down()
1009 const uint8_t previous_volume = g_volume; in test_vol_up()
1030 (g_volume > previous_volume && g_cb && g_write_complete)); in test_vol_up()
1063 const uint8_t previous_volume = g_volume; in test_unmute_vol_down()
1083 WAIT_FOR_COND((previous_volume == 0 || g_volume < previous_volume) && in test_unmute_vol_down()
[all …]