The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


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


Solved: alsa unknown PCM
#1
I have a working librespot/moodeaudio config using --Device <hardware>, however I want to try two zones so I can vary volume from my terminal.

The following ~/.asoundrc allows me to successfully play a wav with "aplay -D quad2 <wav>" to my new PCM "quad2" which duplicates my audio out to 2 USB headphone audio cards:


Code:
pcm.quad {
    type multi
    slaves.a.pcm "hw:0,0"
    slaves.a.channels 2
    slaves.b.pcm "hw:2,0"
    slaves.b.channels 2
    bindings.0.slave a
    bindings.0.channel 0
    bindings.1.slave a
    bindings.1.channel 1
    bindings.2.slave b
    bindings.2.channel 0
    bindings.3.slave b
    bindings.3.channel 1
}

pcm.quad2 {
    type plug
    slave.pcm "quad"
    ttable.0.0 1
    ttable.1.1 1
    ttable.0.2 1
    ttable.1.3 1
}
However when I change my librespot config to --device quad2 (instead of <hardware>), I get the following errors:

Code:
librespot[432]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM quad2                                                                          
librespot[432]: [2019-07-06T14:42:24Z ERROR librespot_playback::audio_backend::alsa] Alsa error PCM open ALSA function 'snd_pcm_open' failed with error 'ENOENT: No such file or directory' 
librespot[432]: [2019-07-06T14:42:24Z ERROR librespot_playback::player] Could not start audio: Alsa error: PCM open failed  

Google has decided that I am in the Wild West and am on my own, so I appreciate any feedback and suggestions!
Reply


Messages In This Thread
alsa unknown PCM - by spittlbm - 07-06-2019, 03:15 PM
RE: alsa unknown PCM - by Tim Curtis - 07-06-2019, 03:35 PM
RE: alsa unknown PCM - by spittlbm - 07-06-2019, 04:12 PM
RE: alsa unknown PCM - by Tim Curtis - 07-06-2019, 05:46 PM
RE: alsa unknown PCM - by spittlbm - 07-06-2019, 06:09 PM
RE: alsa unknown PCM - by Tim Curtis - 07-06-2019, 06:40 PM
RE: alsa unknown PCM - by spittlbm - 07-06-2019, 07:11 PM

Forum Jump: