[pulseaudio-discuss] Unable to attach to mixer hw:2, 1, 0: No such file or directory

Raymond Yau superquad.vortex2 at gmail.com
Fri Jun 5 20:55:06 PDT 2015


>>
>> Do capture work as there is no output of snd_pcm_dump of the
snd-usb-audio 's hw params ?
>>
> Well, after system restart Mic is not working, while it is available and
selected in UI.
> After single switch to Line and back to Mic it starts working fine.
> I wasn't able to reproduce it twice during working session, so, here is
verbose log of the first start right after system restart where Mic was
initially selected but didn't work, and started working after switching to
Line and back: http://pastebin.com/fr0cTUu3

(   0.119|   0.000) I: [pulseaudio] (alsa-lib)conf.c: Unknown parameter 1

(   0.119|   0.000) I: [pulseaudio] (alsa-lib)conf.c: Parse arguments
error: No such file or directory

(   0.119|   0.000) I: [pulseaudio] (alsa-lib)control.c: Invalid CTL
hw:2,1,0

(   0.119|   0.000) I: [pulseaudio] alsa-util.c: Unable to attach to mixer
hw:2,1,0: No such file or directory

(   0.119|   0.000) I: [pulseaudio] alsa-util.c: Successfully attached to
mixer 'hw:2'

These messages can be avoided by not try pcm name first in alsa-util.c

Do those IO/EXT plugin expose ctl device as pcm name ?

    if ((err = snd_mixer_open(&m, 0)) < 0) {
        pa_log("Error opening mixer: %s", pa_alsa_strerror(err));
        return NULL;
    }

    /* First, try by name */
+/*
    if ((dev = snd_pcm_name(pcm)))
        if (prepare_mixer(m, dev) >= 0) {
            if (ctl_device)
                *ctl_device = pa_xstrdup(dev);

            return m;
        }
+*/
    /* Then, try by card index */
    if (snd_pcm_info(pcm, info) >= 0) {
        char *md;
        int card_idx;

        if ((card_idx = snd_pcm_info_get_card(info)) >= 0) {

            md = pa_sprintf_malloc("hw:%i", card_idx);

You can try comiling and  running pulseaudio from git without installing

http://colin.guthr.ie/2010/09/compiling-and-running-pulseaudio-from-git/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150606/3989559f/attachment-0001.html>


More information about the pulseaudio-discuss mailing list