mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
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:
@@ -17,18 +17,22 @@
|
|||||||
SUBSYSTEM=="tty|sound", PROGRAM="/opt/emcomm-tools/sbin/udev-tester.sh yaesu-ft891", \
|
SUBSYSTEM=="tty|sound", PROGRAM="/opt/emcomm-tools/sbin/udev-tester.sh yaesu-ft891", \
|
||||||
ENV{ET_DEVICE}="FT-891"
|
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", \
|
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", \
|
ACTION=="add", \
|
||||||
ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \
|
ENV{ET_SUBDEVICE}="CAT", GROUP="dialout", MODE="0660", SYMLINK+="et-cat", \
|
||||||
RUN+="/usr/bin/systemctl start rigctld"
|
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)
|
# 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", \
|
SUBSYSTEM=="sound", ENV{ET_DEVICE}=="FT-891", ATTRS{idVendor}=="0d8c", ATTRS{idProduct}=="0012", \
|
||||||
ACTION=="add", \
|
ACTION=="add", \
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 31 October 2024
|
# Date : 31 October 2024
|
||||||
# Updated : 4 November 2024
|
# Updated : 11 November 2024
|
||||||
# Purpose : Configures ET audio device with sane defaults
|
# Purpose : Configures ET audio device with sane defaults
|
||||||
#
|
#
|
||||||
# Preconditions
|
# Preconditions
|
||||||
@@ -73,6 +73,18 @@ update-config () {
|
|||||||
|
|
||||||
et-log "Applied amixer settings for ${ET_DEVICE_NAME}"
|
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."
|
et-log "No ALSA configuration specified for this ET_DEVICE."
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user