Re: USB audio on riscv64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2021-11-05 at 11:17 +0100, Takashi Iwai wrote:
> Check the contents in /proc/asound/cards.  Is that empty as well?

Thanks for getting back to me, Takashi. Looks like it's empty:

   $ sudo tree /proc/asound/
   /proc/asound/
   ├── Device -> card1
   ├── card1
   │   ├── id
   │   ├── pcm0p
   │   │   ├── info
   │   │   └── sub0
   │   │       ├── hw_params
   │   │       ├── info
   │   │       ├── status
   │   │       └── sw_params
   │   ├── stream0
   │   ├── usbbus
   │   ├── usbid
   │   └── usbmixer
   ├── cards
   ├── devices
   ├── hwdep
   ├── modules
   ├── oss
   │   ├── devices
   │   └── sndstat
   ├── pcm
   ├── seq
   │   ├── clients
   │   ├── drivers
   │   ├── queues
   │   └── timer
   ├── timers
   └── version
   
   6 directories, 23 files

> If the card is recognized there, check the /sys/class/sound/*.

This is what I see in that directory:

   $ sudo tree /sys/class/sound/
   /sys/class/sound/
   ├── card1 -> ../../devices/platform/soc/e00000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:02.0/0000:04:00.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1
   ├── controlC1 -> ../../devices/platform/soc/e00000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:02.0/0000:04:00.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/controlC1
   ├── pcmC1D0p -> ../../devices/platform/soc/e00000000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:02.0/0000:04:00.0/usb1/1-2/1-2.1/1-2.1:1.0/sound/card1/pcmC1D0p
   ├── seq -> ../../devices/virtual/sound/seq
   └── timer -> ../../devices/virtual/sound/timer
   
   5 directories, 0 files

> If a PCM device is found there, it must be the lack of the
> corresponding device in /dev/snd/* that is usually created via udev.

And this is what I see there:

   $ sudo tree /dev/snd/
   /dev/snd/
   ├── by-id
   │   └── usb-Generic_USB2.0_Device_20130100ph0-00 -> ../controlC1
   ├── by-path
   │   └── platform-e00000000.pcie-pci-0000:04:00.0-usb-0:2.1:1.0 -> ../controlC1
   ├── controlC1
   ├── pcmC1D0p
   ├── seq
   └── timer
   
   2 directories, 6 files

A bit of information on my system:

   $ uname -a
   Linux kip-unmatched 5.11.0-1021-generic #22-Ubuntu SMP Tue Sep 28 15:19:16 UTC 2021 riscv64 riscv64 riscv64 GNU/Linux
   
   $ lscpu 
   Architecture:        riscv64
   Byte Order:          Little Endian
   CPU(s):              4
   On-line CPU(s) list: 0-3
   Thread(s) per core:  4
   Core(s) per socket:  1
   Socket(s):           1
   L1d cache:           32 KiB
   L1i cache:           32 KiB
   L2 cache:            2 MiB

I've also attached the output of the alsa-info(1) generated log.

-- 
Kip Warner -- Senior Software Engineer
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.65
!!################################

!!Script ran on: Fri Nov  5 18:44:49 UTC 2021


!!Linux Distribution
!!------------------

Ubuntu 21.04 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 21.04" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 21.04" HOME_URL="https://www.ubuntu.com/"; SUPPORT_URL="https://help.ubuntu.com/"; BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"; PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"; UBUNTU_CODENAME=hirsute Ubuntu 21.04 (Hirsute Hippo)


!!DMI Information
!!---------------

Manufacturer:      
Product Name:      
Product Version:   
Firmware Version:  
System SKU:        
Board Vendor:      
Board Name:        


!!ACPI Device Status Information
!!---------------



!!Kernel Information
!!------------------

Kernel release:    5.11.0-1021-generic
Operating System:  GNU/Linux
Architecture:      riscv64
Processor:         riscv64
SMP Enabled:       Yes


!!ALSA Version
!!------------

Driver version:     k5.11.0-1021-generic
Library version:    1.2.4
Utilities version:  1.2.4


!!Loaded ALSA modules
!!-------------------

snd_usb_audio


!!Sound Servers on this system
!!----------------------------

Pulseaudio:
      Installed - Yes (/usr/bin/pulseaudio)
      Running - Yes


!!Soundcards recognised by ALSA
!!-----------------------------

 1 [Device         ]: USB-Audio - USB2.0 Device
                      Generic USB2.0 Device at usb-0000:04:00.0-2.1, full speed


!!PCI Soundcards installed in the system
!!--------------------------------------



!!Modprobe options (Sound related)
!!--------------------------------

snd_pcsp: index=-2
snd_usb_audio: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2
snd_atiixp_modem: index=-2
snd_intel8x0m: index=-2
snd_via82xx_modem: index=-2
snd_usb_audio: index=-2
snd_usb_caiaq: index=-2
snd_usb_ua101: index=-2
snd_usb_us122l: index=-2
snd_usb_usx2y: index=-2
snd_cmipci: mpu_port=0x330 fm_port=0x388
snd_pcsp: index=-2
snd_usb_audio: index=-2


!!Loaded sound module options
!!---------------------------

!!Module: snd_usb_audio
	autoclock : Y
	delayed_register : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	device_setup : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
	enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
	id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	ignore_ctl_error : N
	implicit_fb : N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N
	index : -2,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	pid : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
	quirk_alias : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
	skip_validation : N
	use_vmalloc : Y
	vid : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1


!!USB Mixer information
!!---------------------
--startcollapse--

USB Mixer: usb_id=0x19082070, ctrlif=0, ctlerr=0
Card: Generic USB2.0 Device at usb-0000:04:00.0-2.1, full speed
  Unit: 2
    Control: name="PCM Playback Volume", index=0
    Info: id=2, control=2, cmask=0x0, channels=1, type="S16"
    Volume: min=-32768, max=-32513, dBmin=0, dBmax=0
  Unit: 2
    Control: name="PCM Playback Switch", index=0
    Info: id=2, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN"
    Volume: min=0, max=1, dBmin=0, dBmax=0
--endcollapse--


!!ALSA Device nodes
!!-----------------

crw-rw---- 1 root audio 116,  3 Nov  5 11:39 /dev/snd/controlC1
crw-rw---- 1 root audio 116,  2 Nov  5 11:39 /dev/snd/pcmC1D0p
crw-rw---- 1 root audio 116,  1 Nov  5 11:39 /dev/snd/seq
crw-rw---- 1 root audio 116, 33 Nov  5 11:39 /dev/snd/timer

/dev/snd/by-id:
total 0
drwxr-xr-x 2 root root  60 Nov  5 11:39 .
drwxr-xr-x 4 root root 160 Nov  5 11:39 ..
lrwxrwxrwx 1 root root  12 Nov  5 11:39 usb-Generic_USB2.0_Device_20130100ph0-00 -> ../controlC1

/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  60 Nov  5 11:39 .
drwxr-xr-x 4 root root 160 Nov  5 11:39 ..
lrwxrwxrwx 1 root root  12 Nov  5 11:39 platform-e00000000.pcie-pci-0000:04:00.0-usb-0:2.1:1.0 -> ../controlC1


!!Aplay/Arecord output
!!--------------------

APLAY

**** List of PLAYBACK Hardware Devices ****
card 1: Device [USB2.0 Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

ARECORD

**** List of CAPTURE Hardware Devices ****

!!Amixer output
!!-------------

!!-------Mixer controls for card Device

Card hw:1 'Device'/'Generic USB2.0 Device at usb-0000:04:00.0-2.1, full speed'
  Mixer name	: 'USB Mixer'
  Components	: 'USB1908:2070'
  Controls      : 3
  Simple ctrls  : 1
Simple mixer control 'PCM',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 255
  Mono: Playback 192 [75%] [on]


!!Alsactl output
!!--------------

--startcollapse--
state.Device {
	control.1 {
		iface PCM
		name 'Playback Channel Map'
		value.0 0
		value.1 0
		comment {
			access read
			type INTEGER
			count 2
			range '0 - 36'
		}
	}
	control.2 {
		iface MIXER
		name 'PCM Playback Switch'
		value true
		comment {
			access 'read write'
			type BOOLEAN
			count 1
		}
	}
	control.3 {
		iface MIXER
		name 'PCM Playback Volume'
		value 192
		comment {
			access 'read write'
			type INTEGER
			count 1
			range '0 - 255'
		}
	}
}
--endcollapse--


!!All Loaded Modules
!!------------------

async_memcpy
async_pq
async_raid6_recov
async_tx
async_xor
autofs4
backlight
blake2b_generic
btrfs
da9063_onkey
da9063_regulator
dm_multipath
drm
i2c_ocores
ip_tables
libcrc32c
linear
lm90
macb
macsec
mc
mscc
multipath
nls_iso8859_1
nvme
nvme_core
phylink
raid0
raid1
raid10
raid456
raid6_pq
rtc_da9063
sch_fq_codel
scsi_dh_alua
scsi_dh_emc
scsi_dh_rdac
snd
snd_hwdep
snd_pcm
snd_rawmidi
snd_seq
snd_seq_device
snd_seq_midi
snd_seq_midi_event
snd_timer
snd_usb_audio
snd_usbmidi_lib
soundcore
uio
uio_pdrv_genirq
x_tables
xhci_pci
xhci_pci_renesas
xor


!!ALSA/HDA dmesg
!!--------------

[  220.902815] usb 1-2.1: 2:0: bogus dB values (-12800/-12700), disabling dB reporting
[  220.905314] usbcore: registered new interface driver snd-usb-audio


!!Packages installed
!!--------------------

ii  alsa-tools                              1.2.2-1                                                              riscv64      Console based ALSA utilities for specific hardware
ii  alsa-topology-conf                      1.2.4-1                                                              all          ALSA topology configuration files
ii  alsa-ucm-conf                           1.2.4-2ubuntu1.4                                                     all          ALSA Use Case Manager configuration files
ii  alsa-utils                              1.2.4-1ubuntu3                                                       riscv64      Utilities for configuring and using ALSA

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux