From 7b7521dae60b7247d9fa081bc73b0f6a91b267f6 Mon Sep 17 00:00:00 2001 From: Ronny Nilsson Date: Thu, 27 Sep 2018 15:34:27 +0200 Subject: [PATCH] Voice: slight increase of default Broadcom audio volume. --- voice-client/files/etc/config/voice_client | 32 +++++++++---------- .../files/etc/uci-defaults/99-voice_client | 21 ++++++++++++ 2 files changed, 37 insertions(+), 16 deletions(-) diff --git a/voice-client/files/etc/config/voice_client b/voice-client/files/etc/config/voice_client index 7ab249404..b95ee87a1 100644 --- a/voice-client/files/etc/config/voice_client +++ b/voice-client/files/etc/config/voice_client @@ -3,8 +3,8 @@ config 'brcm_line' 'brcm0' option 'sip_account' 'sip0' option 'noise' '0' option 'vad' '0' - option 'txgain' 0 - option 'rxgain' 0 + option 'txgain' 4 + option 'rxgain' 4 option 'echo_cancel' 1 option 'callwaiting' '0' option 'clir' '0' @@ -14,8 +14,8 @@ config 'brcm_line' 'brcm1' option 'sip_account' 'sip0' option 'noise' '0' option 'vad' '0' - option 'txgain' 0 - option 'rxgain' 0 + option 'txgain' 4 + option 'rxgain' 4 option 'echo_cancel' 1 option 'callwaiting' '0' option 'clir' '0' @@ -25,8 +25,8 @@ config 'brcm_line' 'brcm2' option 'sip_account' 'sip0' option 'noise' '0' option 'vad' '0' - option 'txgain' 0 - option 'rxgain' 0 + option 'txgain' 4 + option 'rxgain' 4 option 'echo_cancel' 1 option 'callwaiting' '0' option 'clir' '0' @@ -36,8 +36,8 @@ config 'brcm_line' 'brcm3' option 'sip_account' 'sip0' option 'noise' '0' option 'vad' '0' - option 'txgain' 0 - option 'rxgain' 0 + option 'txgain' 4 + option 'rxgain' 4 option 'echo_cancel' 1 option 'callwaiting' '0' option 'clir' '0' @@ -47,8 +47,8 @@ config 'brcm_line' 'brcm4' option 'sip_account' 'sip0' option 'noise' '0' option 'vad' '0' - option 'txgain' 0 - option 'rxgain' 0 + option 'txgain' 4 + option 'rxgain' 4 option 'echo_cancel' 1 option 'callwaiting' '0' option 'clir' '0' @@ -58,8 +58,8 @@ config 'brcm_line' 'brcm5' option 'sip_account' 'sip0' option 'noise' '0' option 'vad' '0' - option 'txgain' 0 - option 'rxgain' 0 + option 'txgain' 4 + option 'rxgain' 4 option 'echo_cancel' 1 option 'callwaiting' '0' option 'clir' '0' @@ -69,8 +69,8 @@ config 'brcm_line' 'brcm6' option 'sip_account' 'sip0' option 'noise' '0' option 'vad' '0' - option 'txgain' 0 - option 'rxgain' 0 + option 'txgain' 4 + option 'rxgain' 4 option 'echo_cancel' 1 option 'callwaiting' '0' option 'clir' '0' @@ -80,8 +80,8 @@ config 'brcm_line' 'brcm7' option 'sip_account' 'sip0' option 'noise' '0' option 'vad' '0' - option 'txgain' 0 - option 'rxgain' 0 + option 'txgain' 4 + option 'rxgain' 4 option 'echo_cancel' 1 option 'callwaiting' '0' option 'clir' '0' diff --git a/voice-client/files/etc/uci-defaults/99-voice_client b/voice-client/files/etc/uci-defaults/99-voice_client index 99b77f0bf..d2694629f 100755 --- a/voice-client/files/etc/uci-defaults/99-voice_client +++ b/voice-client/files/etc/uci-defaults/99-voice_client @@ -27,6 +27,27 @@ EOT } +# Default Broadcom phone volume for Iopsys 4. +uci -q batch <<-EOT + set voice_client.brcm0.txgain=4 + set voice_client.brcm0.rxgain=4 + set voice_client.brcm1.txgain=4 + set voice_client.brcm1.rxgain=4 + set voice_client.brcm2.txgain=4 + set voice_client.brcm2.rxgain=4 + set voice_client.brcm3.txgain=4 + set voice_client.brcm3.rxgain=4 + set voice_client.brcm4.txgain=4 + set voice_client.brcm4.rxgain=4 + set voice_client.brcm5.txgain=4 + set voice_client.brcm5.rxgain=4 + set voice_client.brcm6.txgain=4 + set voice_client.brcm6.rxgain=4 + set voice_client.brcm7.txgain=4 + set voice_client.brcm7.rxgain=4 + commit voice_client +EOT + uci -q batch <<-EOT delete firewall.sip set firewall.sip=include