[pulseaudio-discuss] Unable to attach to mixer hw:2, 1, 0: No such file or directory
Nazar Mokrynskyi
nazar at mokrynskyi.com
Tue Jun 9 16:34:40 PDT 2015
> ( 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/
>
That manual is a bit outdated, but finally I found time and figured out
how to compile and run it.
Bad news: it didn't fix the issue with mic not working right after reboot.
Good news: mentioned errors really gone.
Good news 2: today I found another issue - when non-stereo speakers mode
is selected and I switch to Mic - laptop's built-in speakers become
active, when I select 5.1 mode again - laptop's built-in mic become
active, so, I was not able to use 5.1 (and any other than stereo) mode
and mic of sound card simultaneously, this change fixed issue completely.
Good news 3: Now I know how to compile it, so I'll reply faster if there
will be need to recompile it.
New verbose log from patched PulseAudio: http://pastebin.com/CTPEShST
Sincerely, Nazar Mokrynskyi
github.com/nazar-pc
Skype: nazar-pc
Diaspora: nazarpc at diaspora.mokrynskyi.com
Tox: A9D95C9AA5F7A3ED75D83D0292E22ACE84BA40E912185939414475AF28FD2B2A5C8EF5261249
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4245 bytes
Desc: Кріптографічний підпис S/MIME
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20150610/e6e4a126/attachment-0001.bin>
More information about the pulseaudio-discuss
mailing list