[Alsa-user] USB audio on riscv64

Kip Warner kip at thevertigo.com
Thu Nov 4 22:37:26 CET 2021


On Thu, 2021-11-04 at 08:40 +0000, Dmitri Seletski wrote:
> I am just a user.
> Can't help but wonder if usb snd modules were compiled in or loaded?

Hey Dmitri,

CC'ing the lists. When I plug in the device, I see the following on the
bus:

   $ lsusb
   ...
   Bus 001 Device 003: ID 1908:2070 GEMBIRD Honk HK-5002 USB Speaker
   ...

The kernel logs the following in kern.log:

   [  291.681086] usb 1-2.3: new full-speed USB device number 3 using xhci_hcd
   [  291.850299] usb 1-2.3: New USB device found, idVendor=1908, idProduct=2070, bcdDevice= 1.00
   [  291.850333] usb 1-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
   [  291.850345] usb 1-2.3: Product: USB2.0 Device
   [  291.850355] usb 1-2.3: Manufacturer: Generic
   [  291.850365] usb 1-2.3: SerialNumber: 20130100ph0
   [  292.434209] mc: Linux media interface: v0.10
   [  292.734949] usb 1-2.3: 1:1: cannot get freq at ep 0x2
   [  292.802612] usb 1-2.3: 2:0: bogus dB values (-12800/-12700), disabling dB reporting
   [  292.803733] usbcore: registered new interface driver snd-usb-audio

The device still doesn't appear to be visible to ALSA:

   $ aplay -l
   aplay: device_list:276: no soundcards found...

If I try playing an Ogg/Vorbis file with mpv, I see the following with
no sound:

   $ mpv "/usr/share/games/lincity-ng/music/default/01 - pronobozo - lincity.ogg"
    (+) Audio --aid=1 (vorbis 2ch 44100Hz)
   AO: [pulse] 44100Hz stereo 2ch float
   
   A: 00:01:00 / 00:03:30 (28%)

The device works fine on arm64 via a Raspberry Pi 4.

-- 
Kip Warner -- Senior Software Engineer
OpenPGP signed/encrypted mail preferred
https://www.thevertigo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20211104/dd07f5ff/attachment.sig>


More information about the Alsa-devel mailing list