Thanks Stuart,

I have same container in other server and it works great with other sound
device.

If I try the speaker-test, it fails:

$ speaker-test

speaker-test 1.2.4

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver
returned error: No existe el fichero o el directorio
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat
returned error: No existe el fichero o el directorio
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer
returned error: No existe el fichero o el directorio
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No existe el
fichero o el directorio
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
Playback open error: -2,No existe el fichero o el directorio

Kind regards.

El sáb, 26 feb 2022 a las 1:49, Stuart Naylor (<stuartiannay...@outlook.com>)
escribió:

> Its not alsa its docker as its a container and you have to share the
> device with the container.
> Check docker for how.
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows
>
>
>
> *From: *Josu Lazkano <josu.lazk...@gmail.com>
> *Sent: *24 February 2022 12:02
> *To: *alsa-user@lists.sourceforge.net
> *Subject: *[Alsa-user] PCM2902 USB device in Debian
>
>
>
> Hello,
>
>
>
> I buy a cheap USB audio device:
> https://es.aliexpress.com/item/4000038850174.html
>
>
>
> This is the device info:
>
>
>
> $ lsusb | grep Audio
> Bus 004 Device 003: ID 08bb:2902 Texas Instruments PCM2902 Audio Codec
>
>
>
> # dmesg
>
> [ 1923.797116] usb usb4-port2: disabled by hub (EMI?), re-enabling...
> [ 1923.797141] usb 4-2: USB disconnect, device number 2
> [ 1924.140040] usb 4-2: new full-speed USB device number 3 using ohci-pci
> [ 1924.339006] usb 4-2: New USB device found, idVendor=08bb,
> idProduct=2902, bcdDevice= 1.00
> [ 1924.339017] usb 4-2: New USB device strings: Mfr=1, Product=2,
> SerialNumber=0
> [ 1924.339021] usb 4-2: Product: USB PnP Sound Device
> [ 1924.339025] usb 4-2: Manufacturer: C-Media Electronics Inc.
> [ 1924.510998] input: C-Media Electronics Inc.       USB PnP Sound Device
> as
> /devices/pci0000:00/0000:00:12.0/usb4/4-2/4-2:1.3/0003:08BB:2902.0002/input/input4
> [ 1924.568551] hid-generic 0003:08BB:2902.0002: input,hidraw0: USB HID
> v1.00 Device [C-Media Electronics Inc.       USB PnP Sound Device] on
> usb-0000:00:12.0-2/input3
>
>
>
> The problem is that my Spotify docker container can not open the device:
>
>
>
> ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
> ALSA lib conf.c:4660:(_snd_config_evaluate) function snd_func_card_driver
> returned error: No such file or directory
> ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
> ALSA lib conf.c:4660:(_snd_config_evaluate) function snd_func_concat
> returned error: No such file or directory
> ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
> ALSA lib conf.c:4660:(_snd_config_evaluate) function snd_func_refer
> returned error: No such file or directory
> ALSA lib conf.c:5148:(snd_config_expand) Evaluate error: No such file or
> directory
> ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM default
> [2022-02-18T09:40:36Z ERROR librespot_playback::audio_backend::alsa] Alsa
> error PCM open ALSA function 'snd_pcm_open' failed with error 'ENOENT: No
> such file or directory'
> [2022-02-18T09:40:36Z ERROR librespot_playback::player] Could not start
> audio: Alsa error: PCM open failed
>
>
>
> If I execute "alsamixer" it doesn't found the device:
>
>
>
> $ alsamixer
> cannot open mixer: No existe el fichero o el directorio
>
>
>
> I need to configure with device parameter:
>
>
>
> $ alsamixer -c 1
>
>
>
> This is the output: https://ibb.co/tcJPc89
>
>
>
> This is the aplay info:
>
>
>
> $ aplay -l
> **** List of PLAYBACK Hardware Devices ****
> card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
>
>
>
> $ aplay -L
> null
>     Discard all samples (playback) or generate zero samples (capture)
> hw:CARD=Device,DEV=0
>     USB PnP Sound Device, USB Audio
>     Direct hardware device without any conversions
> plughw:CARD=Device,DEV=0
>     USB PnP Sound Device, USB Audio
>     Hardware device with all software conversions
> default:CARD=Device
>     USB PnP Sound Device, USB Audio
>     Default Audio Device
> sysdefault:CARD=Device
>     USB PnP Sound Device, USB Audio
>     Default Audio Device
> front:CARD=Device,DEV=0
>     USB PnP Sound Device, USB Audio
>     Front output / input
> surround21:CARD=Device,DEV=0
>     USB PnP Sound Device, USB Audio
>     2.1 Surround output to Front and Subwoofer speakers
> surround40:CARD=Device,DEV=0
>     USB PnP Sound Device, USB Audio
>     4.0 Surround output to Front and Rear speakers
> surround41:CARD=Device,DEV=0
>     USB PnP Sound Device, USB Audio
>     4.1 Surround output to Front, Rear and Subwoofer speakers
> surround50:CARD=Device,DEV=0
>     USB PnP Sound Device, USB Audio
>     5.0 Surround output to Front, Center and Rear speakers
> surround51:CARD=Device,DEV=0
>     USB PnP Sound Device, USB Audio
>     5.1 Surround output to Front, Center, Rear and Subwoofer speakers
> surround71:CARD=Device,DEV=0
>     USB PnP Sound Device, USB Audio
>     7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
> iec958:CARD=Device,DEV=0
>     USB PnP Sound Device, USB Audio
>     IEC958 (S/PDIF) Digital Audio Output
> dmix:CARD=Device,DEV=0
>     USB PnP Sound Device, USB Audio
>     Direct sample mixing device
>
>
>
> I am using it in a Debian 11.2 server with alsa-tools and alsa-utils
> packages.
>
>
>
> I am missing some configuration?
>
>
>
> Could you help please?
>
>
>
> Best regards.
>
>
>
> --
>
> Josu Lazkano
>
>
>


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

Reply via email to