Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Khadas Tone Board
#21
(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
Reply


Messages In This Thread
Khadas Tone Board - by jonners - 11-03-2018, 04:23 PM
RE: Khadas Tone Board - by DRONE7 - 11-04-2018, 02:43 AM
RE: Khadas Tone Board - by jonners - 11-04-2018, 10:03 AM
RE: Khadas Tone Board - by Tim Curtis - 03-25-2019, 11:52 AM
RE: Khadas Tone Board - by Tim Curtis - 03-25-2019, 04:08 PM
RE: Khadas Tone Board - by Tim Curtis - 03-25-2019, 04:34 PM
RE: Khadas Tone Board - by Tim Curtis - 03-25-2019, 05:38 PM
RE: Khadas Tone Board - by Tim Curtis - 03-25-2019, 08:13 PM
RE: Khadas Tone Board - by Tim Curtis - 03-25-2019, 09:21 PM
RE: Khadas Tone Board - by Tim Curtis - 03-25-2019, 09:26 PM
RE: Khadas Tone Board - by Tim Curtis - 03-26-2019, 03:34 PM
RE: Khadas Tone Board - by TheOldPresbyope - 03-30-2019, 08:27 PM
RE: Khadas Tone Board - by TheOldPresbyope - 06-15-2019, 11:40 AM
RE: Khadas Tone Board - by TheOldPresbyope - 09-09-2019, 11:41 AM
RE: Khadas Tone Board - by rrobot - 02-06-2020, 01:28 AM
RE: Khadas Tone Board - by stefano_mbp - 02-06-2020, 10:28 AM
RE: Khadas Tone Board - by Tim Curtis - 02-06-2020, 11:50 AM
RE: Khadas Tone Board - by stefano_mbp - 02-06-2020, 12:09 PM
RE: Khadas Tone Board - by Tim Curtis - 02-06-2020, 12:26 PM
RE: Khadas Tone Board - by stefano_mbp - 02-06-2020, 12:42 PM
RE: Khadas Tone Board - by Tim Curtis - 02-06-2020, 03:48 PM
RE: Khadas Tone Board - by stefano_mbp - 02-06-2020, 04:06 PM
RE: Khadas Tone Board - by TheOldPresbyope - 02-06-2020, 08:14 PM
RE: Khadas Tone Board - by stefano_mbp - 02-07-2020, 04:55 PM
RE: Khadas Tone Board - by TheOldPresbyope - 02-14-2020, 05:39 PM
RE: Khadas Tone Board - by Tim Curtis - 02-07-2020, 05:07 PM
RE: Khadas Tone Board - by DRONE7 - 02-08-2020, 12:10 AM
RE: Khadas Tone Board - by Tim Curtis - 02-08-2020, 02:01 AM
RE: Khadas Tone Board - by DRONE7 - 02-08-2020, 02:29 AM
RE: Khadas Tone Board - by Tim Curtis - 02-08-2020, 02:45 AM
RE: Khadas Tone Board - by DRONE7 - 02-08-2020, 03:28 AM
RE: Khadas Tone Board - by williamlawson - 05-10-2021, 08:45 PM
RE: Khadas Tone Board - by Tim Curtis - 05-11-2021, 01:11 AM
RE: Khadas Tone Board - by TheOldPresbyope - 05-11-2021, 11:06 PM
RE: Khadas Tone Board - by Tim Curtis - 05-12-2021, 01:00 AM
RE: Khadas Tone Board - by TheOldPresbyope - 05-12-2021, 01:34 AM
RE: Khadas Tone Board - by Tim Curtis - 05-12-2021, 01:55 AM
RE: Khadas Tone Board - by TheOldPresbyope - 05-12-2021, 03:44 PM
RE: Khadas Tone Board - by Tim Curtis - 05-12-2021, 10:00 PM
RE: Khadas Tone Board - by williamlawson - 05-14-2021, 07:19 PM
RE: Khadas Tone Board - by TheOldPresbyope - 05-14-2021, 07:46 PM
RE: Khadas Tone Board - by Tim Curtis - 05-14-2021, 08:34 PM
RE: Khadas Tone Board - by TheOldPresbyope - 05-14-2021, 10:28 PM
RE: Khadas Tone Board - by williamlawson - 05-14-2021, 08:44 PM
RE: Khadas Tone Board - by Tim Curtis - 05-15-2021, 12:05 AM

Forum Jump: