Home
last modified time | relevance | path

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

/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dvcp_vol_rend_test.c872 const uint8_t expected_volume = g_volume > volume_step ? g_volume - volume_step : 0; in test_vol_down() local
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() local
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() local
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() local
953 WAIT_FOR_COND(expected_volume == g_volume && expected_mute == g_mute); in test_unmute_vol_up()
976 const uint8_t expected_volume = g_volume - 5; /* any underflow is fine too */ in test_set_vol() local
979 err = bt_vcp_vol_rend_set_vol(expected_volume); in test_set_vol()
[all …]
Dvcp_vol_ctlr_test.c957 const uint8_t expected_volume = g_volume + 5; /* Overflow is OK */ in test_set_vol() local
963 err = bt_vcp_vol_ctlr_set_vol(NULL, expected_volume); in test_set_vol()
970 err = bt_vcp_vol_ctlr_set_vol(vol_ctlr, expected_volume); in test_set_vol()
976 WAIT_FOR_COND(g_volume == expected_volume && g_cb && g_write_complete); in test_set_vol()