[Alsa-user] USB audio on riscv64

Takashi Iwai tiwai at suse.de
Fri Nov 5 19:58:08 CET 2021


On Fri, 05 Nov 2021 19:47:16 +0100,
Kip Warner wrote:
> 
> 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:

No, it contains the card entry.  You can see it in alsa-info.sh output
you attached, which is:

> !!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

> > 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

So all files look fine.

> > 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

Here, too.

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

... and this looks also fine.

Try to run like
  % aplay -Dplughw:1 -vv foo.wav
  
If this works, the problem is rather the access via PulseAudio.


Takashi


More information about the Alsa-devel mailing list