mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
ic-7300 - Added default ALSA configuration to correctly set PCM level based on et-radio settings for the IC-7300
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Author : Gaston Gonzalez
|
||||||
|
# Date : 8 December 2025
|
||||||
|
# Purpose : Audio settings specific to the ICom IC-7300
|
||||||
|
#
|
||||||
|
# Preconditions
|
||||||
|
# 1. Supported audio interface is connected and properly detected
|
||||||
|
#
|
||||||
|
# Postconditions
|
||||||
|
# 1. ALSA settings set on ET audio device
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo "usage: $(basename $0) <ET audio card> <ET device name>"
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ $# -ne 2 ]]; then
|
||||||
|
usage
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
AUDIO_CARD=$1
|
||||||
|
ET_DEVICE_NAME=$2
|
||||||
|
|
||||||
|
# Set the PCM to 82. The default of 41 is too low.
|
||||||
|
et-log "amixer -q -c ${AUDIO_CARD} sset PCM 96%"
|
||||||
|
amixer -q -c ${AUDIO_CARD} sset PCM 96%
|
||||||
|
|
||||||
|
et-log "Applied amixer settings for audio card ${AUDIO_CARD} on device ${ET_DEVICE_NAME}"
|
||||||
@@ -7,6 +7,9 @@
|
|||||||
"baud": "19200",
|
"baud": "19200",
|
||||||
"ptt": "RIG"
|
"ptt": "RIG"
|
||||||
},
|
},
|
||||||
|
"audio": {
|
||||||
|
"script": "/opt/emcomm-tools/conf/radios.d/audio/icom-ic7300.sh"
|
||||||
|
},
|
||||||
"notes": [
|
"notes": [
|
||||||
"[MENU] > [SET] > [Connectors] > [CI-V] > CI-V USB Baud Rate = 19200",
|
"[MENU] > [SET] > [Connectors] > [CI-V] > CI-V USB Baud Rate = 19200",
|
||||||
"[MENU] > [SET] > [Connectors] > DATA MOD = USB",
|
"[MENU] > [SET] > [Connectors] > DATA MOD = USB",
|
||||||
|
|||||||
Reference in New Issue
Block a user