Topics

Audio Problem with DRAWs Hat

john.chabalko@...
 

Apparently it's tough times around these parts - and all was working great just a couple of days ago.

I have a functional DRAWs had an the UDRC drivers are loaded and running. The DRAWS manager is running, everything seems normal - except in wsjt-x (and others) i'm getting audio errors on startup - both input and output devices. The devices i'm using are:
Input: plughw:CARD=udrc, DEV=0
Output: plughw:CARD=udrc, DEV=0

"Requested [output,input] audio format is not supported on device"

pi@n3ap-p:~/bin $ prog_refresh.sh -c
js8call: current version: 1.1.0, installed: 1.1.0
wsjtx:   current version: 2.0.1, installed: 2.1.0-rc7
Library: libflxmlrpc IS loaded.
flxmlrpc:  current version: 0.1.4, installed: 0.1.4
fldigi:  current version: 4.1.04, installed: 4.1.01
flrig:  current version: 1.3.45, installed: 1.3.42
flmsg:  current version: 4.0.10, installed: 4.0.8
flamp:  current version: 2.2.04, installed: 2.2.04
xs_verchk.sh: Detected xastir package.
xastir: current version: 2.1.3, installed: 2.1.3
gp_verchk.sh: Detected gpsd package.
gpsd: current version: 3.18.1, installed: 3.18.1
pi@n3ap-p:~/bin $ cd
pi@n3ap-p:~ $ cd n7nix/
pi@n3ap-p:~/n7nix $ git pull
Already up-to-date.


pi@n3ap-p:~ $ showudrc.sh
==== Sound Card ====
udrc card number line: card 1: udrc [udrc], device 0: Universal Digital Radio Controller tlv320aic32x4-hifi-0 []
udrc is sound card #1
==== ALSA Controls for Radio Tansmit ====
LO Driver Gain  L:[-6.00dB]    R:[-6.00dB]
PCM            L:[-25.00dB]    R:[-25.00dB]
DAC Playback PT    L:[PTM_P3]    R:[PTM_P3]
LO Playback CM    [Full Chip CM]
==== ALSA Controls for Radio Receive ====
ADC Level    L:[0.00dB]    R:[0.00dB]
IN1        L:[Off]        R:[Off]
IN2        L:[10 kOhm]    R:[10 kOhm]
==== Pi Ver ====
 Pi 3 Model B+ Mfg by Sony UK
 Has WiFi
==== udrc Ver ====
Found a DRAWS

     HAT ID EEPROM
Name:        hat
Product:     Digital Radio Amateur Work Station
Product ID:  0x0004
Product ver: 0x0405
UUID:        b1f4e1df-11e0-4d2b-b213-c87b4dacb830
Vendor:      NW Digital Radio

==== sys Ver ====
----- image version
2019 03 31 13:53:37 PDT: SD image version: beta10
----- /proc/version
Linux version 4.14.98-v7+ (dom@dom-XPS-13-9370) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 SMP Tue Feb 12 20:27:48 GMT 2019

----- /etc/*version: 9.8

----- /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

----- lsb_release
No LSB modules are available.
Distributor ID:    Raspbian
Description:    Raspbian GNU/Linux 9.8 (stretch)
Release:    9.8
Codename:    stretch

---- systemd
   Static hostname: n3ap-p
         Icon name: computer
        Machine ID: 2f51e140e908474eaa86ae805f03a6d8
           Boot ID: b21a8b0ee78b4f73bbe8a4fde12396b6
  Operating System: Raspbian GNU/Linux 9 (stretch)
            Kernel: Linux 4.14.98-v7+
      Architecture: arm

---- modules
tlv320aic32x4_i2c      16384  1
tlv320aic32x4          32768  1 tlv320aic32x4_i2c
udrc                   16384  3
snd_soc_core          188416  3 tlv320aic32x4,snd_soc_bcm2835_i2s,udrc
snd_pcm                98304  7 snd_pcm_dmaengine,tlv320aic32x4,snd_soc_bcm2835_i2s,snd_bcm2835,snd_soc_core

-rw-r--r-- 1 root  6388 Feb 26 15:24 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-i2c.ko
-rw-r--r-- 1 root 39084 Feb 26 15:24 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4.ko
-rw-r--r-- 1 root  6408 Feb 26 15:24 /lib/modules/4.14.98-v7+/updates/dkms/tlv320aic32x4-spi.ko
-rw-r--r-- 1 root  8332 Feb 26 15:24 /lib/modules/4.14.98-v7+/updates/dkms/udrc.ko

---- kernel
||/ Name               Version      Architecture Description
+++-==================-============-============-=================================
ii  raspberrypi-kernel 1.20190215-1 armhf        Raspberry Pi bootloader
ii  udrc-dkms          1.0.5        armhf        DKMS source for the UDRC driver

Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and status is okay

---- syslog
Jun 28 17:30:23 n3ap-p bash[420]: UDRC_PROD: Digital Radio Amateur Work Station, ID: 4
Jun 28 17:30:23 n3ap-p kernel: [    3.320902] udrc: loading out-of-tree module taints kernel.
Jun 28 17:30:23 n3ap-p kernel: [    3.321806] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
Jun 28 17:30:23 n3ap-p kernel: [    3.321818] snd-udrc soc:sound: snd_soc_register_card() failed: -517
Jun 28 17:30:23 n3ap-p kernel: [    3.347796] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
Jun 28 17:30:23 n3ap-p kernel: [    3.347807] snd-udrc soc:sound: snd_soc_register_card() failed: -517
Jun 28 17:30:23 n3ap-p kernel: [    3.349131] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
Jun 28 17:30:23 n3ap-p kernel: [    3.349138] snd-udrc soc:sound: snd_soc_register_card() failed: -517
Jun 28 17:30:23 n3ap-p kernel: [    3.349318] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
Jun 28 17:30:23 n3ap-p kernel: [    3.349324] snd-udrc soc:sound: snd_soc_register_card() failed: -517
Jun 28 17:30:23 n3ap-p kernel: [    3.356339] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
Jun 28 17:30:23 n3ap-p kernel: [    3.356347] snd-udrc soc:sound: snd_soc_register_card() failed: -517
Jun 28 17:30:23 n3ap-p kernel: [    3.356532] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
Jun 28 17:30:23 n3ap-p kernel: [    3.356537] snd-udrc soc:sound: snd_soc_register_card() failed: -517
Jun 28 17:30:23 n3ap-p kernel: [    3.496347] snd-udrc soc:sound: tlv320aic32x4-hifi <-> 3f203000.i2s mapping ok
Jun 28 17:30:23 n3ap-p bash[420]: UDRC II or DRAWS installed
Jun 28 17:30:23 n3ap-p bash[420]: using mkiss with UDRC II and pseudo term_1: /dev/pts/2 pseudo term_2: /dev/pts/3
Jun 28 17:36:09 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN2_L to Left Mixer Positive Resistor' 'Off'
Jun 28 17:36:10 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN1_L to Left Mixer Positive Resistor' '10 kOhm'
Jun 28 17:36:10 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN2_R to Right Mixer Positive Resistor' '10 kOhm'
Jun 28 17:36:10 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN1_R to Right Mixer Positive Resistor' 'Off'
Jun 28 17:36:10 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'CM_R to Right Mixer Negative Resistor' '10 kOhm'
Jun 28 17:36:10 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'CM_L to Left Mixer Negative Resistor' '10 kOhm'
Jun 28 17:36:10 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LO DAC' 'on,on'
Jun 28 17:36:10 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LOL Output Mixer L_DAC' 'on'
Jun 28 17:36:11 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LOR Output Mixer R_DAC' 'on'
Jun 28 17:36:11 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN2_L to Left Mixer Positive Resistor' 'Off'
Jun 28 17:36:11 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN1_L to Left Mixer Positive Resistor' '10 kOhm'
Jun 28 17:36:11 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN2_R to Right Mixer Positive Resistor' 'Off'
Jun 28 17:36:11 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN1_R to Right Mixer Positive Resistor' '10 kOhm'
Jun 28 17:36:11 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'CM_R to Right Mixer Negative Resistor' '10 kOhm'
Jun 28 17:36:12 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'CM_L to Left Mixer Negative Resistor' '10 kOhm'
Jun 28 17:36:12 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LO DAC' 'on,on'
Jun 28 17:36:12 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LOL Output Mixer L_DAC' 'on'
Jun 28 17:36:12 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LOR Output Mixer R_DAC' 'on'
Jun 28 17:38:57 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN2_L to Left Mixer Positive Resistor' '10 kOhm'
Jun 28 17:38:57 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN1_L to Left Mixer Positive Resistor' 'Off'
Jun 28 17:38:58 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN2_R to Right Mixer Positive Resistor' 'Off'
Jun 28 17:38:58 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN1_R to Right Mixer Positive Resistor' '10 kOhm'
Jun 28 17:38:58 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'CM_R to Right Mixer Negative Resistor' '10 kOhm'
Jun 28 17:38:58 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'CM_L to Left Mixer Negative Resistor' '10 kOhm'
Jun 28 17:38:58 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LO DAC' 'on,on'
Jun 28 17:38:58 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LOL Output Mixer L_DAC' 'on'
Jun 28 17:38:58 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LOR Output Mixer R_DAC' 'on'
Jun 28 17:39:00 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN2_L to Left Mixer Positive Resistor' '10 kOhm'
Jun 28 17:39:00 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN1_L to Left Mixer Positive Resistor' 'Off'
Jun 28 17:39:00 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN2_R to Right Mixer Positive Resistor' '10 kOhm'
Jun 28 17:39:00 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'IN1_R to Right Mixer Positive Resistor' 'Off'
Jun 28 17:39:00 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'CM_R to Right Mixer Negative Resistor' '10 kOhm'
Jun 28 17:39:00 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'CM_L to Left Mixer Negative Resistor' '10 kOhm'
Jun 28 17:39:01 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LO DAC' 'on,on'
Jun 28 17:39:01 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LOL Output Mixer L_DAC' 'on'
Jun 28 17:39:01 n3ap-p npm[588]: /usr/bin/amixer -c udrc sset 'LOR Output Mixer R_DAC' 'on'

---- dmesg
[    3.320902] udrc: loading out-of-tree module taints kernel.
[    3.321806] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.321818] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.347796] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.347807] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.349131] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.349138] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.349318] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.349324] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.356339] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.356347] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.356532] snd-udrc soc:sound: ASoC: CODEC DAI tlv320aic32x4-hifi not registered - will retry
[    3.356537] snd-udrc soc:sound: snd_soc_register_card() failed: -517
[    3.496347] snd-udrc soc:sound: tlv320aic32x4-hifi <-> 3f203000.i2s mapping ok

---- compass
Compass preference file not found: /etc/apt/preferences.d/compass
---- compass apt sources list file
deb [arch=armhf,amd64] http://archive.compasslinux.org/ cedar main
---- compass package files
-rw-r--r-- 1 root  2201 Dec 31 10:44 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_InRelease
-rw-r--r-- 1 root 17567 Jul  2  2018 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_main_binary-amd64_Packages
-rw-r--r-- 1 root 43316 Dec 31 10:44 /var/lib/apt/lists/archive.compasslinux.org_dists_cedar_main_binary-armhf_Packages

----- Dire Wolf DEVELOPMENT version 1.6 B (Feb 27 2019)

==== Filesystem ====
/dev/root        30G  5.8G   23G  21% /

==== boot config ====

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
#dtparam=audio=on

force_turbo=1
dtoverlay=
dtoverlay=draws,alsaname=udrc

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.18.1 (revision 3.18.1)
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-06-28 17:30:25 PDT; 1h 4min ago
  Process: 631 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 654 (gpsd)
   CGroup: /system.slice/gpsd.service
           └─654 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0

Jun 28 17:30:25 n3ap-p systemd[1]: Starting GPS (Global Positioning System)…n...
Jun 28 17:30:25 n3ap-p systemd[1]: Started GPS (Global Positioning System) …mon.
Hint: Some lines were ellipsized, use -l to show in full.

---- chrony
crw-rw---- 1 root root    243, 0 Jun 28 17:30 /dev/pps0
crw------- 1 root root    243, 1 Jun 28 17:30 /dev/pps1
crw-rw---- 1 root dialout 242, 0 Jun 28 17:30 /dev/ttySC0
crw-rw---- 1 root dialout 242, 1 Jun 28 17:30 /dev/ttySC1
-- chrony sources
210 Number of sources = 6
MS Name/IP address         Stratum Poll Reach LastRx Last sample              
===============================================================================
#? GPS                           0   3     0     -     +0ns[   +0ns] +/-    0ns
#? PPS                           0   3     0     -     +0ns[   +0ns] +/-    0ns
^+ 2600:3c01::f03c:91ff:feb>     2   9   377   152   -543us[ -543us] +/-   35ms
^- ha81.smatwebdesign.com        2   9   377    84   -702us[ -702us] +/-   71ms
^+ 2604:880:398:371::1           2   9   377   926  -1109us[-1109us] +/-   30ms
^* propjet.latt.net              3   9   377   22m   +313us[ +376us] +/-   21ms
-- chrony tracking
Reference ID    : 0381BBD4 (propjet.latt.net)
Stratum         : 4
Ref time (UTC)  : Sat Jun 29 01:13:04 2019
System time     : 0.000030855 seconds fast of NTP time
Last offset     : +0.000063505 seconds
RMS offset      : 0.000132425 seconds
Frequency       : 4.676 ppm fast
Residual freq   : +0.006 ppm
Skew            : 0.227 ppm
Root delay      : 0.016767 seconds
Root dispersion : 0.009681 seconds
Update interval : 257.1 seconds
Leap status     : Normal
-- chrony sourcestats
210 Number of sources = 6
Name/IP Address            NP  NR  Span  Frequency  Freq Skew  Offset  Std Dev
==============================================================================
GPS                         0   0     0     +0.000   2000.000     +0ns  4000ms
PPS                         0   0     0     +0.000   2000.000     +0ns  4000ms
2600:3c01::f03c:91ff:feb>  26  12   61m     -0.087      1.238   -651us  1638us
ha81.smatwebdesign.com     27  13   62m     -0.946      0.401  -1145us   439us
2604:880:398:371::1        27  15   48m     -0.085      0.325   -153us   366us
propjet.latt.net           27  15   42m     +0.003      0.252   +120us   241us

---- sensors
-rw-r--r-- 1 root root 171 Nov 11  2018 /etc/sensors.d/draws
ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
User ADC Differential:  +0.00 V 
+12V:                   +0.00 V 
User ADC 1:             +0.00 V 
User ADC 2:             +0.00 V 

---- locale
Locale country codes consistent among WiFi cfg file, iw reg & X11: US
core_config.sh has been run 1 time(s)

john.chabalko@...
 

I went back to a stock build - reflashed the card and ran through setup. I'm up and running again. Something definitely got hosed but it's all better now ;)