Audio - Added dummy rig control support for the DigiRig Lite to maintain the rigctl NET interface consistently for all radio-based applications

This commit is contained in:
Gaston Gonzalez
2024-10-24 08:31:57 -07:00
parent 15aae94fe8
commit d831500c41
7 changed files with 60 additions and 18 deletions
@@ -1,9 +1,10 @@
# Author : Gaston Gonzalez
# Date : 14 October 2024
# Updated : 24 October 2024
# Purpose : udev rules for generic remove events
#
# Preconditions:
# 1. CAT control device is unplugged
# 1. CAT control device (or DigiRig Lite) is unplugged
#
# Postconditions:
# 1. rigctld is stopped
@@ -11,3 +12,8 @@
SUBSYSTEM=="tty", ENV{ET_SUBDEVICE}=="CAT", \
ACTION=="remove", \
RUN+="/opt/emcomm-tools/sbin/wrapper-rigctld.sh stop"
SUBSYSTEM=="sound",ENV{ET_SUBDEVICE}=="AUDIO", \
ACTION=="remove", \
RUN+="/opt/emcomm-tools/sbin/wrapper-rigctld.sh stop"
@@ -1,15 +0,0 @@
# Author : Gaston Gonzalez
# Date : 17 October 2024
# Updated : 21 October 2024
# Purpose : udev rules for the DigiRig Lite
#
# Preconditions:
# 1. DigiRig Lite connected via USB cable
#
# Postconditions:
# 1. /dev/et-audio created
SUBSYSTEM=="sound", ATTRS{idVendor}=="0d8c", ATTRS{idProduct}=="0012", ENV{ET_DEVICE}=="", \
ACTION=="add", \
ATTR{id}="ET_AUDIO", \
ENV{ET_DEVICE}="DIGIRIG_LITE", ENV{ET_SUBDEVICE}="AUDIO", GROUP="audio", MODE="0660", SYMLINK+="et-audio"
@@ -0,0 +1,21 @@
# Author : Gaston Gonzalez
# Date : 17 October 2024
# Updated : 24 October 2024
# Purpose : udev rules for the DigiRig Lite
#
# Preconditions:
# 1. The radio is set to 'generic-vox' using et-radio.
# 2. DigiRig Lite connected via USB cable
#
# Postconditions:
# 1. /dev/et-audio created
# 2. rigctld is started
# The DigiRig Lite has no CAT control, but rigctld is started to minimize the configuration needed
# by the various amateur radio applications. EmComm Tools treats rigctl NET as its abstraction layer.
# A dummy rig control configuration is specifed in the 'generic-vox' radio configuration.
SUBSYSTEM=="sound", ATTRS{idVendor}=="0d8c", ATTRS{idProduct}=="0012", ENV{ET_DEVICE}=="", \
ACTION=="add", \
ATTR{id}="ET_AUDIO", \
ENV{ET_DEVICE}="DIGIRIG_LITE", ENV{ET_SUBDEVICE}="AUDIO", GROUP="audio", MODE="0660", SYMLINK+="et-audio" \
RUN+="/usr/bin/systemctl start rigctld"