Skip to content

Commit 829da61

Browse files
committed
bcm2835-ctl: limit maximal volume to 4db.
it makes no sense to set 23.04db as maximum volume since around 3db it start to cliping. So with 4db the alsamixer is much better to control. (86% is 0db)
1 parent d0735c7 commit 829da61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/arm/bcm2835-ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static int snd_bcm2835_ctl_info(struct snd_kcontrol *kcontrol,
5353
uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
5454
uinfo->count = 1;
5555
uinfo->value.integer.min = -10240;
56-
uinfo->value.integer.max = 2303;
56+
uinfo->value.integer.max = 400; /* 2303 */
5757
} else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) {
5858
uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
5959
uinfo->count = 1;

0 commit comments

Comments
 (0)