From: Radek Polak Date: Tue, 21 Feb 2012 15:53:39 +0000 (+0100) Subject: volume up just twice - 4x generates echo X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=33393f336c3482e4a7a292c0fbdfa4b4ce333943;p=gta04-gsm-voice-routing.git volume up just twice - 4x generates echo --- diff --git a/gsm-voice-routing.c b/gsm-voice-routing.c index e8b0aca..13ef194 100644 --- a/gsm-voice-routing.c +++ b/gsm-voice-routing.c @@ -347,7 +347,7 @@ static void vol_up(char *buf, snd_pcm_uframes_t period_size) int i; s16 *val = (s16 *) (buf); for(i = 0; i < period_size; i++) { - *val = *val * 4; + *val = *val * 2; val++; } }