Set volume control default to log, clean up stray debugs

This commit is contained in:
ashthespy 2020-07-25 09:44:10 +02:00
parent f0b3b2c7e8
commit 99be49acd2
2 changed files with 2 additions and 5 deletions

View file

@ -235,10 +235,7 @@ fn calc_logarithmic_volume(volume: u16) -> u16 {
fn volume_to_mixer(volume: u16, volume_ctrl: &VolumeCtrl) -> u16 {
match volume_ctrl {
VolumeCtrl::Linear => {
debug!("linear volume: {}", volume);
volume
}
VolumeCtrl::Linear => volume,
VolumeCtrl::Log => calc_logarithmic_volume(volume),
VolumeCtrl::Fixed => volume,
}

View file

@ -110,6 +110,6 @@ impl FromStr for VolumeCtrl {
impl Default for VolumeCtrl {
fn default() -> VolumeCtrl {
VolumeCtrl::Linear
VolumeCtrl::Log
}
}