Home
last modified time | relevance | path

Searched refs:softvol_scalers (Results 1 – 6 of 6) sorted by relevance

/external/adhd/cras/src/server/
Dsoftvol_curve.h15 extern const float softvol_scalers[101];
20 return softvol_scalers[volume_index]; in softvol_get_scaler()
Dsoftvol_curve.c13 const float softvol_scalers[101] = { variable
Dcras_iodev.c753 if (iodev->active_node && iodev->active_node->softvol_scalers) in cras_iodev_get_software_volume_scaler()
754 return iodev->active_node->softvol_scalers[volume]; in cras_iodev_get_software_volume_scaler()
1589 if (odev->active_node && odev->active_node->softvol_scalers) { in cras_iodev_start_volume_ramp()
1590 old_scaler = odev->active_node->softvol_scalers[old_volume]; in cras_iodev_start_volume_ramp()
1591 new_scaler = odev->active_node->softvol_scalers[new_volume]; in cras_iodev_start_volume_ramp()
Dcras_iodev.h133 float *softvol_scalers; member
Dcras_alsa_io.c887 free(node->softvol_scalers); in free_alsa_iodev_resources()
1762 ionode->softvol_scalers = softvol_build_from_curve(curve); in build_softvol_scalers()
/external/adhd/cras/src/tests/
Diodev_unittest.cc20 float softvol_scalers[101]; variable
824 softvol_scalers[13] = 0.435; in TEST()
831 EXPECT_EQ(softvol_scalers[13], cras_scale_buffer_scaler); in TEST()
864 softvol_scalers[volume] = volume_scaler; in TEST()
871 EXPECT_EQ(softvol_scalers[volume], cras_scale_buffer_scaler); in TEST()
882 softvol_scalers[volume] = volume_scaler; in TEST()
896 EXPECT_FLOAT_EQ(softvol_scalers[volume] * ramp_scaler, in TEST()
900 EXPECT_FLOAT_EQ(softvol_scalers[volume] * increment, in TEST()
902 EXPECT_FLOAT_EQ(softvol_scalers[volume] * target, in TEST()
981 softvol_scalers[13] = 0.435; in TEST()
[all …]