ALSA Segmentation fault (core dumped)

I am running a ham radio ap called “ardopc” on my Pinebook Pro. The application implements the ARDOP digital mode of radio communications and uses ALSA to interface with the USB “soundcard” in my IC-7100 ham radio transceiver. However, ardopc needs a capture (playback) audio level control in order to set optimum levels, which I implemented as a soft control in ALSA and accessed with alsamixer.

When I launch ardopc, I get the following seg fault, but only when I’ve implemented the soft level control in my .asoundrc file. If only the plug to hw:1,0 is implemented, it functions as expected (but no level control).

The exact same hardware and ALSA configuration works in Armbian (but I wish to use Manjaro) and it also works on MX-Linux on my amd64 architecture laptop.

I have not yet found the cause of this previous Manjaro ALSA problem either. Like the .asoundrc soft control seg fault, it is unique to Manjaro in my experience (works as expected with the previously mentioned system and also Mobian on my Pinphone): Runtime error: terminate called after throwing an instance of 'libaudiostream::AudioException'

I guess I’ll try to find someone on the ALSA forum, if no one here has any suggestions (roll back some ALSA packages, maybe?). I’d sure appreciate some help though!

$ cat .asoundrc
pcm.preARDOP { type plug
               slave { pcm "hw:1,0" rate 48000 }
             }

pcm.ARDOP { type softvol 
            slave { pcm "preARDOP" } 
            control { name "Softmaster" card 1 }
            max_dB 50.0
            min_dB -20.0
          }
$ ardopc
ardopc Version 1.0.4.1mBPQ-Debug5
ARDOPC listening on port 8515
Capture Devices

Card 0, ID `rockchipes8316c', name `rockchip,es8316-codec'
  Device hw:0,0 ID `ff890000.i2s-ES8316 HiFi ES8316 HiFi-0', name `ff890000.i2s-ES8316 HiFi ES8316 HiFi-0', 1 subdevices (1 available)
    2 channels,  sampling rate 8000..48000 Hz

Card 1, ID `CODEC', name `USB Audio CODEC'
  Device hw:1,0 ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
    1..2 channels, sampling rate 8000..48000 Hz

Playback Devices

Card 0, ID `rockchipes8316c', name `rockchip,es8316-codec'
  Device hw:0,0 ID `ff890000.i2s-ES8316 HiFi ES8316 HiFi-0', name `ff890000.i2s-ES8316 HiFi ES8316 HiFi-0', 1 subdevices (1 available)
    2 channels,  sampling rate 8000..48000 Hz

Card 1, ID `CODEC', name `USB Audio CODEC'
  Device hw:1,0 ID `USB Audio', name `USB Audio', 1 subdevices (1 available)
    1..2 channels, sampling rate 32000..48000 Hz

Using Both Channels of soundcard for RX
Using Both Channels of soundcard for TX
Opening Playback Device ARDOP Rate 12000
Opening Capture Device ARDOP Rate 12000
Segmentation fault (core dumped)
$ inxi -Fxrz
System:
  Kernel: 5.18.14-1-MANJARO-ARM arch: aarch64 bits: 64 compiler: gcc
    v: 12.1.0 Desktop: Xfce v: 4.16.0 Distro: Manjaro ARM base: Arch Linux
Machine:
  Type: ARM System: Pine64 Pinebook Pro details: N/A serial: <filter>
Battery:
  ID-1: cw2015-battery charge: 98% condition: N/A volts: 4.1 min: N/A
    model: N/A status: discharging
CPU:
  Info: 2x 4-core model: N/A variant-1: cortex-a72 variant-2: cortex-a53
    bits: 64 type: MCP AMP arch: ARMv8 rev: 4
  Speed (MHz): avg: 872 high: 1800 min/max: 408/1416:1800 cores: 1: 408
    2: 408 3: 408 4: 408 5: 1800 6: 1800 bogomips: N/A
  Features: Use -f option to see features
Graphics:
  Device-1: display-subsystem driver: rockchip_drm v: N/A bus-ID: N/A
  Device-2: rk3399-mali driver: panfrost v: kernel bus-ID: N/A
  Display: x11 server: X.org v: 1.21.1.4 driver: X: loaded: modesetting
    gpu: cdn-dp,dw-mipi-dsi-rockchip,dwhdmi-rockchip,innohdmi-rockchip,rockchip-dp,rockchip-drm,rockchip-lvds,rockchip-vop
    resolution: 1920x1080~60Hz
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: simple-audio-card driver: asoc_simple_card bus-ID: N/A
    bus-ID: 3-1.2:4
  Device-2: simple-audio-card driver: N/A bus-ID: N/A
  Device-3: Texas Instruments PCM2901 Audio Codec type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound Server-1: ALSA v: k5.18.14-1-MANJARO-ARM running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.56 running: yes
Network:
  Message: No ARM data found for this feature.
  IF-ID-1: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: rk3399-uart driver: dw_apb_uart bus-ID: N/A
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 1019.48 GiB used: 78.56 GiB (7.7%)
  ID-1: /dev/mmcblk1 vendor: SanDisk model: SC32G size: 29.72 GiB
  ID-2: /dev/mmcblk2 vendor: SanDisk model: DA4064 size: 58.24 GiB
  ID-3: /dev/nvme0n1 vendor: Western Digital model: WDS100T2B0C-00PXH0
    size: 931.51 GiB temp: 30.9 C
Partition:
  ID-1: / size: 916.89 GiB used: 63.25 GiB (6.9%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot size: 213.4 MiB used: 43.7 MiB (20.5%) fs: vfat
    dev: /dev/mmcblk2p1
Swap:
  ID-1: swap-1 type: zram size: 5.67 GiB used: 3 MiB (0.1%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 41.1 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: 945
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://mnvoip.mm.fcix.net/manjaro/arm-stable/$repo/$arch
    2: https://mirrors.manjaro.org/repo/arm-stable/$repo/$arch
    3: https://mirror.informatik.tu-freiberg.de/manjaro/arm-stable/$repo/$arch
    4: https://manjaro.osmir.ch/arm-stable/$repo/$arch
    5: https://mirror.yandex.ru/mirrors/manjaro/arm-stable/$repo/$arch
    6: https://manjaro.ipacct.com/manjaro/arm-stable/$repo/$arch
    7: https://mirrors.xtom.ee/manjaro/arm-stable/$repo/$arch
    8: https://manjaro.astra.in.ua/arm-stable/$repo/$arch
Info:
  Processes: 230 Uptime: 2h 32m Memory: 3.78 GiB used: 2.1 GiB (55.7%)
  Init: systemd Compilers: gcc: 12.1.0 Shell: Bash v: 5.1.16 inxi: 3.3.20

Thanks!

-Cal