As noted in a number of threads and, for awhile, a banner announcing hotfixes, there has been an audio problem with AllStarLink when using USB sound devices. This originally started on x86_64/amd64 systems with the release of Debian 12’s kernel 6.1.0-30. After a week, the issue appeared on arm64/Pi systems with the release of RaspberryPiOS kernel 6.6.74.
To cut a lot of troubleshooting and researching short, the problem was tracked to a change with the Linux Kernel that was added to all of the current stable kernels - 6.1.y, 6.6.y, and 6.12.y. This change then entered the Debian and Raspberry Pi OS package stream. I ended up emailing the committer of the patch, Takashi Iwai, and he explained what happened. That change fixed a bug where the snd_audio_usb kernel module driver was having buffer underruns but they were being silently ignored. Now they are being handled. The root cause is chan_simpleusb and chan_usbradio is not filling the audio buffer fast enough. We’ll be taking a look at that issue closer. However Takashi suggested a fix which worked perfectly - disabling the lowlatency mode of the driver.
This particular fix is being deployed as ASL3 3.7.0 and will be rolling out to the main package stream shortly. This thread may be used for further discussion or reports of problems.
Hello N8EI,
Thank you very much for your hard work in troubleshooting and tracking down this USB audio issue.
I am wondering if we should wait for the fix to come down in the apt update process, or if we should unhold the kernel packages, apply the modprobe fix as you suggested in the other threads, then update?
If we do wait for the fix to come through apt, will it automatically unhold any kernel package holds and do all of the updates and fixes in one upgrade?
Followed instructions to update audio, now simpleusb radio hat is not responding.
Actually unplugged Pi from power…
from Journal:
root@Allstar:/home/wbs# journalctl | grep usb
Feb 01 21:33:30 Allstar kernel: usbcore: registered new interface driver usbfs
Feb 01 21:33:30 Allstar kernel: usbcore: registered new interface driver hub
Feb 01 21:33:30 Allstar kernel: usbcore: registered new device driver usb
Feb 01 21:33:30 Allstar kernel: usbcore: registered new device driver r8152-cfgselector
Feb 01 21:33:30 Allstar kernel: usbcore: registered new interface driver r8152
Feb 01 21:33:30 Allstar kernel: usbcore: registered new interface driver lan78xx
Feb 01 21:33:30 Allstar kernel: usbcore: registered new interface driver smsc95xx
Feb 01 21:33:30 Allstar kernel: usbcore: registered new interface driver uas
Feb 01 21:33:30 Allstar kernel: usbcore: registered new interface driver usb-storage
Feb 01 21:33:30 Allstar kernel: usbcore: registered new interface driver usbhid
Feb 01 21:33:30 Allstar kernel: usbhid: USB HID core driver
Feb 01 21:33:30 Allstar kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
Feb 01 21:33:30 Allstar kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 01 21:33:30 Allstar kernel: usb usb1: Product: xHCI Host Controller
Feb 01 21:33:30 Allstar kernel: usb usb1: Manufacturer: Linux 6.6.74+rpt-rpi-2712 xhci-hcd
Feb 01 21:33:30 Allstar kernel: usb usb1: SerialNumber: xhci-hcd.0
Feb 01 21:33:30 Allstar kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06
Feb 01 21:33:30 Allstar kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 01 21:33:30 Allstar kernel: usb usb2: Product: xHCI Host Controller
Feb 01 21:33:30 Allstar kernel: usb usb2: Manufacturer: Linux 6.6.74+rpt-rpi-2712 xhci-hcd
Feb 01 21:33:30 Allstar kernel: usb usb2: SerialNumber: xhci-hcd.0
Feb 01 21:33:30 Allstar kernel: usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06
Feb 01 21:33:30 Allstar kernel: usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 01 21:33:30 Allstar kernel: usb usb3: Product: xHCI Host Controller
Feb 01 21:33:30 Allstar kernel: usb usb3: Manufacturer: Linux 6.6.74+rpt-rpi-2712 xhci-hcd
Feb 01 21:33:30 Allstar kernel: usb usb3: SerialNumber: xhci-hcd.1
Feb 01 21:33:30 Allstar kernel: usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06
Feb 01 21:33:30 Allstar kernel: usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Feb 01 21:33:30 Allstar kernel: usb usb4: Product: xHCI Host Controller
Feb 01 21:33:30 Allstar kernel: usb usb4: Manufacturer: Linux 6.6.74+rpt-rpi-2712 xhci-hcd
Feb 01 21:33:30 Allstar kernel: usb usb4: SerialNumber: xhci-hcd.1
Feb 01 21:33:30 Allstar kernel: usb 3-2: new full-speed USB device number 2 using xhci-hcd
Feb 01 21:33:30 Allstar kernel: usb 3-2: New USB device found, idVendor=0d8c, idProduct=0012, bcdDevice= 1.00
Feb 01 21:33:30 Allstar kernel: usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Feb 01 21:33:30 Allstar kernel: usb 3-2: Product: USB Audio Device
Feb 01 21:33:30 Allstar kernel: usb 3-2: Manufacturer: C-Media Electronics Inc.
Feb 01 21:33:30 Allstar kernel: input: C-Media Electronics Inc. USB Audio Device as /devices/platform/axi/1000120000.pcie/1f00300000.usb/xhci-hcd.1/usb3/3-2/3-2:1.3/0003:0D8C:0012.0001/input/input1
Feb 01 21:33:30 Allstar kernel: hid-generic 0003:0D8C:0012.0001: input,hidraw0: USB HID v1.00 Device [C-Media Electronics Inc. USB Audio Device] on usb-xhci-hcd.1-2/input3
Feb 01 21:33:30 Allstar mtp-probe[444]: checking bus 3, device 2: “/sys/devices/platform/axi/1000120000.pcie/1f00300000.usb/xhci-hcd.1/usb3/3-2”
Feb 01 21:33:30 Allstar kernel: usbcore: registered new interface driver brcmfmac
Feb 01 21:33:30 Allstar kernel: usbcore: registered new interface driver snd-usb-audio
root@Allstar:/home/wbs#
When you were upgrading the packages did you see any prompts asking you what to do with a configuration file? If so, did you answer “Y” to install the package maintainer’s version? or “N” to keep your currently-installed version? Hopefully you answered “N”. Else, you may now have the template configuration file without your node configuration/settings. As a quick check you can look at the last lines in your /etc/asterisk/simpleusb.conf file. Do you see your node # in brackets (e.g. [12345])? If not, then you most likely answered “Y” and lost your config.
FYI : you can read more about the update/upgrade procedure here : Updating ASL3
This was an older one, dated 8 Aug 24 11:25 (I changed the name so it would upload (added conf after old). I changed the Pi (from Pi3 to Pi5), thus changing the USB port.
As for the older conf, I was using a different Pi and so the hat and to be reconfigured.
Message log (see my comments at bottom):
[2025-02-01 21:44:39.553] Asterisk 20.11.0+asl3-3.2.0-2.deb12 built by builder @ allstarlink.org on a aarch64 running Linux on 2024-12-20 20:30:41 UTC
[2025-02-01 21:44:39.573] NOTICE[1123] loader.c: 73 modules will be loaded.
[2025-02-01 21:44:39.725] NOTICE[1123] cdr.c: CDR simple logging enabled.
[2025-02-01 21:44:39.726] NOTICE[1123] dnsmgr.c: Managed DNS entries will be refreshed every 300 seconds.
[2025-02-01 21:44:39.734] NOTICE[1123] indications.c: Default country for indication tones: us
[2025-02-01 21:44:39.734] NOTICE[1123] indications.c: Setting default indication country to ‘us’
[2025-02-01 21:44:39.800] NOTICE[1123] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[2025-02-01 21:44:39.806] WARNING[1123] chan_dahdi.c: Only FXO signalled channels may belong to a call group
[2025-02-01 21:44:39.806] WARNING[1123] chan_dahdi.c: Only FXO signalled channels may belong to a pickup group
[2025-02-01 21:44:39.806] NOTICE[1123] chan_dahdi.c: Ignoring any changes to ‘userbase’ (on reload) at line 23.
[2025-02-01 21:44:39.806] NOTICE[1123] chan_dahdi.c: Ignoring any changes to ‘vmsecret’ (on reload) at line 31.
[2025-02-01 21:44:39.806] NOTICE[1123] chan_dahdi.c: Ignoring any changes to ‘hassip’ (on reload) at line 35.
[2025-02-01 21:44:39.806] NOTICE[1123] chan_dahdi.c: Ignoring any changes to ‘hasiax’ (on reload) at line 39.
[2025-02-01 21:44:39.806] NOTICE[1123] chan_dahdi.c: Ignoring any changes to ‘hasmanager’ (on reload) at line 47.
[2025-02-01 21:44:39.806] WARNING[1123] chan_dahdi.c: Only FXO signalled channels may belong to a call group
[2025-02-01 21:44:39.806] WARNING[1123] chan_dahdi.c: Only FXO signalled channels may belong to a pickup group
[2025-02-01 21:44:39.812] WARNING[1123] format_cap.c: Cannot allow unknown format ‘g722aa12’
[2025-02-01 21:44:39.854] WARNING[1123] config.c: No ‘=’ (equal sign) in line 44 of /etc/asterisk/echolink.conf
[2025-02-01 21:44:39.959] WARNING[1123] loader.c: Module ‘res_adsi’ has been loaded but may be removed in a future release.
[2025-02-01 21:44:39.981] NOTICE[1264] app_gps.c: sent packet(login): user KC2NJV-13 pass 16569 vers “Asterisk app_gps”
[2025-02-01 21:44:40.098] NOTICE[1267] app_rpt.c: Normal Repeater Init 62499
[2025-02-01 21:44:40.099] NOTICE[1267] app_rpt.c: Normal Repeater Init 1806
[2025-02-01 21:44:40.099] NOTICE[1267] app_rpt.c: Normal Repeater Init 1807
[2025-02-01 21:44:40.100] NOTICE[1267] app_rpt.c: Normal Repeater Init 1500
[2025-02-01 21:44:40.100] NOTICE[1296] chan_simpleusb.c: Channel 62499: Set option TONE VERIFY, mode: OFF(0).
[2025-02-01 21:46:13.380] NOTICE[1265] app_gps.c: sent packet(general): KC2NJV-13>APRS,qAR,KC2NJV-VS:=4039.39N/07331.33WrPHG04030/AllStar 62499, TG11710 on: TGIF, YSF, NXDN, P25, HOIP x15077, M17-117B, EchoLink KC2NJV-L sbanetweb.com:8080
The “g722aa12” is in the iax.conf configure for amateurwire…
Line 44 of echolink was “permit PINGTEST”, however when there is an “=” it throws an error
Updated my Raspberry Pi 5 RPi OS (Debian GNU/Linux 12 (bookworm) to latest kernel ( 6.6.74+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux). Patching also included latest ASL3 released per this thread.
Noticed immediately that audio (CM108) was choppy. Became progressively worse and eventually something hung where there was no audio and the radio (driven by the GPIO on the CM108) stayed in Tx. Restarting the Pi resulted in the same behavior.
I changed the contents of /etc/modprobe.d/asl3-snd-usb-audio.conf to “options snd_usb_audio lowlatency=1” and everything now seems normal again. It seems the usb audio issues may have something to do with the Pi model.
Update:
2.5 hours later all still working correctly.
I changed my from lowlatency=0 to lowlatency=1.
ran astres.sh
Houston we have liftoff!!!
Thanks you Allan and James!!!
UPDATE 2 minutes later…
And I spoke to quickly… I tested a few minutes later and nothing…
restarted asterisk again…
It works for about a minute or 2 and dies…
new message log:
[2025-02-02 10:08:58.521] Asterisk 20.11.0+asl3-3.2.0-2.deb12 built by builder @ allstarlink.org on a aarch64 running Linux on 2024-12-20 20:30:41 UTC
[2025-02-02 10:08:58.532] NOTICE[49799] loader.c: 73 modules will be loaded.
[2025-02-02 10:08:58.550] NOTICE[49799] cdr.c: CDR simple logging enabled.
[2025-02-02 10:08:58.551] NOTICE[49799] dnsmgr.c: Managed DNS entries will be refreshed every 300 seconds.
[2025-02-02 10:08:58.557] NOTICE[49799] indications.c: Default country for indication tones: us
[2025-02-02 10:08:58.557] NOTICE[49799] indications.c: Setting default indication country to ‘us’
[2025-02-02 10:08:58.606] NOTICE[49799] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[2025-02-02 10:08:58.608] WARNING[49799] chan_dahdi.c: Only FXO signalled channels may belong to a call group
[2025-02-02 10:08:58.608] WARNING[49799] chan_dahdi.c: Only FXO signalled channels may belong to a pickup group
[2025-02-02 10:08:58.608] NOTICE[49799] chan_dahdi.c: Ignoring any changes to ‘userbase’ (on reload) at line 23.
[2025-02-02 10:08:58.608] NOTICE[49799] chan_dahdi.c: Ignoring any changes to ‘vmsecret’ (on reload) at line 31.
[2025-02-02 10:08:58.608] NOTICE[49799] chan_dahdi.c: Ignoring any changes to ‘hassip’ (on reload) at line 35.
[2025-02-02 10:08:58.608] NOTICE[49799] chan_dahdi.c: Ignoring any changes to ‘hasiax’ (on reload) at line 39.
[2025-02-02 10:08:58.608] NOTICE[49799] chan_dahdi.c: Ignoring any changes to ‘hasmanager’ (on reload) at line 47.
[2025-02-02 10:08:58.608] WARNING[49799] chan_dahdi.c: Only FXO signalled channels may belong to a call group
[2025-02-02 10:08:58.608] WARNING[49799] chan_dahdi.c: Only FXO signalled channels may belong to a pickup group
[2025-02-02 10:08:58.615] WARNING[49799] format_cap.c: Cannot allow unknown format ‘g722aa12’
[2025-02-02 10:08:58.626] WARNING[49799] config.c: No ‘=’ (equal sign) in line 44 of /etc/asterisk/echolink.conf
[2025-02-02 10:08:58.724] WARNING[49799] loader.c: Module ‘res_adsi’ has been loaded but may be removed in a future release.
[2025-02-02 10:08:58.737] VERBOSE[49799] asterisk.c: Asterisk Ready.
[2025-02-02 10:08:58.811] NOTICE[49842] app_gps.c: sent packet(login): user KC2NJV-13 pass 16569 vers “Asterisk app_gps”
[2025-02-02 10:08:58.874] NOTICE[49845] app_rpt.c: Normal Repeater Init 62499
[2025-02-02 10:08:58.874] NOTICE[49845] app_rpt.c: Normal Repeater Init 1806
[2025-02-02 10:08:58.874] NOTICE[49845] app_rpt.c: Normal Repeater Init 1807
[2025-02-02 10:08:58.875] NOTICE[49845] app_rpt.c: Normal Repeater Init 1500
[2025-02-02 10:08:58.875] NOTICE[49851] chan_simpleusb.c: Channel 62499: Set option TONE VERIFY, mode: OFF(0).
[2025-02-02 10:08:59.014] WARNING[49851] chan_simpleusb.c: Possibly stuck USB read channel. [62499]
[2025-02-02 10:08:59.040] WARNING[49851] chan_simpleusb.c: USB read channel [62499] was not stuck.
[2025-02-02 10:09:28.622] NOTICE[49843] app_gps.c: sent packet(general): KC2NJV-13>APRS,qAR,KC2NJV-VS:=4039.39N/07331.33WrPHG04030/AllStar 62499, TG11710 on: TGIF, YSF, NXDN, P25, HOIP x15077, M17-117B, EchoLink KC2NJV-L sbanetweb.com:8080
root@Allstar:/etc/asterisk#
The upgrade for the pc worked fine, the upgrade for my pi 5 is a disaster. I started over, rebuilt the image on the pi 5, still have the same issues with the pi5 with 2 different sound interfaces, choppy and distorted audio, and when connected to a node, choppy audio, then no audio, PTT sticks open, only way to turn off the PTT so you don’t burn up the node radio is to login and restart asterisk from the command line.