FT-891 - Added support for configuring audio levels for the FT-891. Note: The interface detection for CAT control is still switching between ttyUSB4 and ttyUSB5. This radio is close to being dropped. It is not a friendly radio for digital modes

This commit is contained in:
Gaston Gonzalez
2024-11-11 14:22:19 -07:00
parent 49f75d4017
commit 1ee06b5bcf
2 changed files with 24 additions and 8 deletions
@@ -17,18 +17,22 @@
SUBSYSTEM=="tty|sound", PROGRAM="/opt/emcomm-tools/sbin/udev-tester.sh yaesu-ft891", \
ENV{ET_DEVICE}="FT-891"
# CAT control device will only match if PROGRAM above matches (exit status=0)
#SUBSYSTEM=="tty", ENV{ET_DEVICE}=="FT-891", \
# ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea70",\
# ACTION=="add", \
# ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \
# RUN+="/usr/bin/systemctl start rigctld"
SUBSYSTEMS=="usb", ENV{ET_DEVICE}=="FT-891", ATTRS{bInterfaceProtocol}=="00", \
ACTION=="add", \
ENV{ET_FIRST_CAT_DEVICE}="yes"
# CAT control device will only match if PROGRAM above matches (exit status=0)
SUBSYSTEM=="tty", ENV{ET_DEVICE}=="FT-891", ENV{ET_FIRST_CAT_DEVICE}="yes", \
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea70",\
ACTION=="add", \
ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \
RUN+="/usr/bin/systemctl start rigctld"
#SUBSYSTEMS=="usb", SUBSYSTEM=="tty", ENV{ET_DEVICE}=="FT-891", ATTRS{bInterfaceProtocol}=="00", \
# ACTION=="add", \
# ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \
# RUN+="/usr/bin/systemctl start rigctld"
# Audio device will only match if PROGRAM above matches (exit status=0)
SUBSYSTEM=="sound", ENV{ET_DEVICE}=="FT-891", ATTRS{idVendor}=="0d8c", ATTRS{idProduct}=="0012", \
ACTION=="add", \
+13 -1
View File
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 31 October 2024
# Updated : 4 November 2024
# Updated : 11 November 2024
# Purpose : Configures ET audio device with sane defaults
#
# Preconditions
@@ -73,6 +73,18 @@ update-config () {
et-log "Applied amixer settings for ${ET_DEVICE_NAME}"
;;
"FT-891")
# Unmute Speaker a set volume. Adjust if remote station can't decode you. Your TX controls.
amixer -q -c ${AUDIO_CARD} sset Speaker Playback Switch 42% unmute
# Unmute Mic
amixer -q -c ${AUDIO_CARD} sset Mic Playback Switch 52% unmute
# Set "L/R Capture" to 19. Adjust if you can't decode received audio. Your RX controls.
amixer -q -c ${AUDIO_CARD} sset Mic Capture Switch 31% unmute
# Disable Auto Gain Control
amixer -q -c ${AUDIO_CARD} sset 'Auto Gain Control' mute
et-log "Applied amixer settings for ${ET_DEVICE_NAME}"
;;
*)
et-log "No ALSA configuration specified for this ET_DEVICE."
;;