Skip to contentSkip to conversation

Alsa change value to limit maximum volu

DISCUSSION prts 1 participant 1 message Oct 9, 2023

lore
Share & tools
lore

prts

author
#0 lore raw

Hi!

I am trying to limit the maximum allowed volume without using any softvol (I want to control direct hardware mixer, no dmix). My card is an external usb DAC, stating:

amixer -c Balanced
Simple mixer control 'D10 Balanced',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono
  Limits: Playback 0 - 127
  Mono: Playback 34 [27%] [-93.00dB] [on]

Limits are from 0 to 127. I would like to tune this manually so that anything using the card in the system will (for example) never go beyond 98 (and not 127).

I noticed that this value is in /var/lib/alsa/asound.state. Any possibility to change this value?

Thanks and have a nice day.

Sylvain