Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map #952

Open
TornaxO7 opened this issue Feb 14, 2025 · 0 comments

Comments

@TornaxO7
Copy link

Hello! I'm somehow getting some weird artifacts if I try to iterate through the available devices:

ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map

Reproduction steps

Cargo.toml

# [packages] omitted

[dependencies]
cpal = "0.15"

main.rs

use cpal::traits::{DeviceTrait, HostTrait};

fn main() {
    for device in cpal::default_host().output_devices().unwrap() {
        if let Ok(name) = device.name() {
            println!("From my code: {}", name);
        }
    }
}

Output after cargo run:

From my code: pipewire
From my code: default
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
From my code: iec958:CARD=PCH,DEV=0
From my code: hdmi:CARD=HDMI,DEV=0
From my code: hdmi:CARD=HDMI,DEV=1
From my code: hdmi:CARD=HDMI,DEV=2
From my code: hdmi:CARD=HDMI,DEV=3
From my code: hdmi:CARD=HDMI,DEV=4
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave

but I expected

From my code: pipewire
From my code: default
From my code: iec958:CARD=PCH,DEV=0
From my code: hdmi:CARD=HDMI,DEV=0
From my code: hdmi:CARD=HDMI,DEV=1
From my code: hdmi:CARD=HDMI,DEV=2
From my code: hdmi:CARD=HDMI,DEV=3
From my code: hdmi:CARD=HDMI,DEV=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant