02-06-2020, 12:42 PM
(02-06-2020, 12:26 PM)Tim Curtis Wrote: Thie message "Formats: Unable to determine formats" is coming from also-capabilities command that's being run by moodeutl.
I'm not sure why it's not able to detect the audio formats for your USB device. Try also-capabilities --help.
alsa-capabilities --help give just the help of the command
Code:
pi@moode-pt:~ $ alsa-capabilities -h
Usage:
alsa-capabilities [ -l a|d|u ] [ -c <filter> ] [-a <hwaddress>] [-s] [ -q ]
Displays a list of each alsa audio output with its details
including its hardware address (eg. `hw:x,y').
The list may be limited by applying one or more options with
arguments, for the type of output (`-l' or `--limit'), the name of
the card and/or output (`-c' or `--customfilter'), and/or the
hardware address (`-a\ or `--address').
The `-s' or `--samplerates' switch turns on the detection and
display of the supported samplerates per encoding format for each
output.
-l TYPEFILTER, --limit TYPEFILTER
Limit the interfaces to TYPEFILTER. Can be one of
`a' (or `analog'), `d' (or `digital'), `u'
(or `usb'), the latter for USB Audio Class (UAC1
or UAC2) devices.
-c REGEXP, --customlimit REGEXP
Limit the available interfaces further to match
`REGEXP'.
-a HWADDRESS, --address HWADDRESS
Limit the returned interface further to the one
specified with HWADDRESS, eg. `hw:0,1'
-s, --samplerates Adds a listing of the supported sample rates for
each format an interface supports.
-q, --quiet Surpress listing each interface with its details,
ie. only store the details of each card in the
appropriate arrays.
-j, --json Surpress normal output but create json formatted
output instead.
-n, --nocolor Supresses colorized output.
-h, --help Show this help message
Version 2.0.1. For more information see:
https://lacocina.nl/detect-alsa-output-capabilities
https://gitlab.com/sonida/alsa-capabilities/
this is the output of alsa-capabilities -s
Code:
pi@moode-pt:~ $ alsa-capabilities -s
1: `bcm2835 ALSA' Analog audio output on device bcm2835 ALSA
-hardware address: hw:0,0 (or hw:ALSA,0)
-device label: bcm2835 ALSA
-sample rates per format: U8: 384000, 352800, 192000, 176400, 96000, 88200, 48000, 44100
S16_LE: 384000, 352800, 192000, 176400, 96000, 88200, 48000, 44100
-usb audio class: (n/a)
-streamfile: (n/a)
-character device: /dev/snd/pcmC0D0p
-monitor file: /proc/asound/card0/pcm0p/sub0/hw_params
2: `bcm2835 IEC958/HDMI' Digital non-UAC audio output on device bcm2835 ALSA
-hardware address: hw:0,1 (or hw:ALSA,1)
-device label: bcm2835 ALSA
-sample rates per format: S16_LE: 384000, 352800, 192000, 176400, 96000, 88200, 48000, 44100
-usb audio class: (n/a)
-streamfile: (n/a)
-character device: /dev/snd/pcmC0D1p
-monitor file: /proc/asound/card0/pcm1p/sub0/hw_params
3: `bcm2835 IEC958/HDMI1' Digital non-UAC audio output on device bcm2835 ALSA
-hardware address: hw:0,2 (or hw:ALSA,2)
-device label: bcm2835 ALSA
-sample rates per format: S16_LE: 384000, 352800, 192000, 176400, 96000, 88200, 48000, 44100
-usb audio class: (n/a)
-streamfile: (n/a)
-character device: /dev/snd/pcmC0D2p
-monitor file: /proc/asound/card0/pcm2p/sub0/hw_params
4: `USB Audio' Digital USB Audio Class audio output on device Khadas Tone Control
-hardware address: hw:1,0 (or hw:Control,0)
-device label: Khadas Tone Control
-sample rates per format: (n/a)
-usb audio class: UAC2 (isochronous asynchronous)
-streamfile: /proc/asound/card1/stream0
-character device: /dev/snd/pcmC1D0p
-monitor file: /proc/asound/card1/pcm0p/sub0/hw_params