Bug#913045: [Pkg-alsa-devel] Bug#913045: libasound2: ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave

2018-11-15 Thread Elimar Riesebieter
* Ryan Lue  [2018-11-16 11:51 +0800]:

> Hi Elimar,
> 
> Sorry for the radio silence. I thought I responded in a previous email,
> but I guess it never went through?
> 
> I believe the issue goes deeper than simply setting soundcard priority.
> I’m experiencing it on two different machines, and I’m trying (and
> failing) to play sound out of the default device.
> 
> Desktop:
> 
> $ cat /proc/asound/cards
>  0 [HDMI   ]: HDA-Intel - HDA Intel HDMI
>   HDA Intel HDMI at 0xf7e14000 irq 50
>  1 [PCH]: HDA-Intel - HDA Intel PCH
>   HDA Intel PCH at 0xf7e1 irq 48
>  2 [U0x46d0x81b]: USB-Audio - USB Device 0x46d:0x81b
>   USB Device 0x46d:0x81b at usb-:00:14.0-1, high 
> speed
> 
> Laptop:
> 
> $ cat /proc/asound/cards
>  0 [PCH]: HDA-Intel - HDA Intel PCH
>   HDA Intel PCH at 0xe124 irq 127
> 
> Both the .asoundrc you suggested and the one given by Pedro Silva solve
> the problem for me, but it would be nice not to need an .asoundrc to
> play sound out of the default (or only) sound device.
> 
> Given that this is happening on a machine with only one sound card
> device, and that it was working in 1.1.6-1, is there any chance we could
> have this issue reopened?
> 
> (FWIW, I’m working against libasound2-plugins 1.1.7-2; don’t know how to
> upgrade to 1.1.7-3, since I’m on testing and not unstable. Happy to
> help with any additional debugging.)

Well, if you want to use card 0 on both you don't need a .asoundrc.
libasound2-plugins 1.1.7-3 should arrive in testing soon. You can
add unstable to your sources.list and run

# apt update && apt install -t unstable libasound2-plugins

HTH
Elimar
-- 
  On the keyboard of life you have always
  to keep a finger at the escape key;-)


signature.asc
Description: PGP signature


Bug#913045: [Pkg-alsa-devel] Bug#913045: libasound2: ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave

2018-11-15 Thread Ryan Lue
Hi Elimar,

Sorry for the radio silence. I thought I responded in a previous email,
but I guess it never went through?

I believe the issue goes deeper than simply setting soundcard priority.
I’m experiencing it on two different machines, and I’m trying (and
failing) to play sound out of the default device.

Desktop:

$ cat /proc/asound/cards
 0 [HDMI   ]: HDA-Intel - HDA Intel HDMI
  HDA Intel HDMI at 0xf7e14000 irq 50
 1 [PCH]: HDA-Intel - HDA Intel PCH
  HDA Intel PCH at 0xf7e1 irq 48
 2 [U0x46d0x81b]: USB-Audio - USB Device 0x46d:0x81b
  USB Device 0x46d:0x81b at usb-:00:14.0-1, high 
speed

Laptop:

$ cat /proc/asound/cards
 0 [PCH]: HDA-Intel - HDA Intel PCH
  HDA Intel PCH at 0xe124 irq 127

Both the .asoundrc you suggested and the one given by Pedro Silva solve
the problem for me, but it would be nice not to need an .asoundrc to
play sound out of the default (or only) sound device.

Given that this is happening on a machine with only one sound card
device, and that it was working in 1.1.6-1, is there any chance we could
have this issue reopened?

(FWIW, I’m working against libasound2-plugins 1.1.7-2; don’t know how to
upgrade to 1.1.7-3, since I’m on testing and not unstable. Happy to
help with any additional debugging.)

—Ryan

On 2018 Nov 06, Elimar Riesebieter wrote:
> * Ryan Lue  [2018-11-06 18:51 +0800]:
> 
> > Package: libasound2
> > Version: 1.1.7-1
> > Severity: important
> > 
> > Dear Maintainer,
> > 
> > Please forgive my lack of familiarity with ALSA.
> > 
> > I use sox in a script to play an mp3 via STDIN, using the
> > AUDIODRIVER=alsa environment variable. Since upgrading libasound2 from
> > 1.1.6-1 to 1.1.7-1 this morning, the script now gives the following
> > error:
> > 
> > ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
> > play FAIL formats: can’t open output file `default’: snd_pcm_open 
> > error: No such file or directory
> > 
> > I ran speaker-test to try to isolate the problem. The output is below:
> > 
> > speaker-test 1.1.6
> > 
> > Playback device is default
> > Stream parameters are 48000Hz, S16_LE, 1 channels
> > Using 16 octaves of pink noise
> > ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
> > Playback open error: -2,No such file or directory
> > 
> > Sound works throughout the rest of the system – I assume via PulseAudio?
> > 
> > I’m happy to provide any other information to help diagnose the problem.
> 
> libasound2-plugins 1.1.7-2 and alsa-utils 1.1.7-1 should arrive soon
> in testing. Please update them first and come back to this bug
> report.
> 
> Thanks for your patience
> 
> Elimar
> -- 
>   Obviously the human brain works like a computer.
>   Since there are no stupid computers humans can't be stupid.
>   There are just a few running with Windows or even CE ;-)



Bug#913045: [Pkg-alsa-devel] Bug#913045: libasound2: ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave

2018-11-13 Thread Pedro Silva
On Fri, 9 Nov 2018 20:41:17 + Pedro Silva 
wrote:
> No difference.
>
> Reboot, login, start game, sound ok. Start browser, play youtube video,
> playback hangs until game is closed.
>
> cat ~/.asoundrc
> ###
> pcm.!default {
>     type hw
>     card 2
> }
> ###
> ctl.snd_card {
>     type hw
>     card 2
>     device 2
> }
> ###
>
> Best regards,
> Pedro Silva

Hi Elimar,

I found a working ~/.asoundrc :

$ cat .asoundrc
ctl.dmixer {
type pulse
}
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}

I can run Steam Alsa games and youtube videos at the same time (I
believe system wide). I can even connect a bluetooth headset and have it
work without additional setup.

Found the info here :

https://steamcommunity.com/app/221410/discussions/0/618458030650103916/#c618458030650649992

Don't know if this is a libasound2 or steam games bug/feature.

Thank you for your support.

Best regards,
Pedro Silva


Bug#913045: [Pkg-alsa-devel] Bug#913045: libasound2: ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave

2018-11-09 Thread Pedro Silva
On Fri, 9 Nov 2018 06:29:49 +0100 Elimar Riesebieter 
wrote:
> * Pedro Silva  [2018-11-08 22:25 +]:
>
> [...]
> >
> > This is getting weird.
> >
> > Even with the $HOME/.asoundrc file, I've nailed it down to not being
> > able to play two sound sources at the same time.
>
> Could you please add:
>
> ###
> ctl.snd_card {
> type hw
> card 2
> device 2
> }
> ###
>
> to your .asoundrc and try again?
>
> Thanks
> Elimar
> --
> Alles, was viel bedacht wird, wird bedenklich!;-)
> Friedrich Nietzsche

No difference.

Reboot, login, start game, sound ok. Start browser, play youtube video,
playback hangs until game is closed.

cat ~/.asoundrc
###
pcm.!default {
    type hw
    card 2
}
###
ctl.snd_card {
    type hw
    card 2
    device 2
}
###

Best regards,
Pedro Silva


Bug#913045: [Pkg-alsa-devel] Bug#913045: libasound2: ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave

2018-11-08 Thread Elimar Riesebieter
* Pedro Silva  [2018-11-08 22:25 +]:

[...]
> 
> This is getting weird.
> 
> Even with the $HOME/.asoundrc file, I've nailed it down to not being
> able to play two sound sources at the same time.

Could you please add:

###
ctl.snd_card {
type hw
card 2
device 2
}
###

to your .asoundrc and try again?

Thanks
Elimar
-- 
  Alles, was viel bedacht wird, wird bedenklich!;-)
 Friedrich Nietzsche


signature.asc
Description: PGP signature


Bug#913045: [Pkg-alsa-devel] Bug#913045: libasound2: ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave

2018-11-07 Thread Pedro Silva
On Tue, 6 Nov 2018 12:16:18 +0100 Elimar Riesebieter 
wrote:
> * Ryan Lue  [2018-11-06 18:51 +0800]:
>
> > Package: libasound2
> > Version: 1.1.7-1
> > Severity: important
> >
> > Dear Maintainer,
> >
> > Please forgive my lack of familiarity with ALSA.
> >
> > I use sox in a script to play an mp3 via STDIN, using the
> > AUDIODRIVER=alsa environment variable. Since upgrading libasound2 from
> > 1.1.6-1 to 1.1.7-1 this morning, the script now gives the following
> > error:
> >
> > ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
> > play FAIL formats: can’t open output file `default’: snd_pcm_open
error: No such file or directory
> >
> > I ran speaker-test to try to isolate the problem. The output is below:
> >
> > speaker-test 1.1.6
> >
> > Playback device is default
> > Stream parameters are 48000Hz, S16_LE, 1 channels
> > Using 16 octaves of pink noise
> > ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
> > Playback open error: -2,No such file or directory
> >
> > Sound works throughout the rest of the system – I assume via PulseAudio?
> >
> > I’m happy to provide any other information to help diagnose the problem.
>
> libasound2-plugins 1.1.7-2 and alsa-utils 1.1.7-1 should arrive soon
> in testing. Please update them first and come back to this bug
> report.
>
> Thanks for your patience
>
> Elimar

Hi Elimar,

I've updated libasound2-plugins and alsa-utils and still hit the same
issue, this time launching a Steam game (WarThunder).
Since I updated libasound2 to 1.1.7-1, no sound on the game with the
same error message:

ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave

Packages installed on my system:

dpkg -l | grep libasound2 | awk {'print $2,$3'}
libasound2:amd64 1.1.7-1
libasound2:i386 1.1.7-1
libasound2-data 1.1.7-1
libasound2-dev:amd64 1.1.7-1
libasound2-plugins:amd64 1.1.7-2
libasound2-plugins:i386 1.1.7-2

dpkg -l | grep alsa | awk {'print $2,$3'}
alsa-base 1.0.27+1
alsa-utils 1.1.7-1
gstreamer0.10-alsa:amd64 0.10.36-2
gstreamer1.0-alsa:amd64 1.14.4-1
libsox-fmt-alsa:amd64 14.4.2-3

If you need further information, please feel free to ask.

Best regards,
Pedro Silva


Bug#913045: [Pkg-alsa-devel] Bug#913045: libasound2: ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave

2018-11-06 Thread Elimar Riesebieter
* Ryan Lue  [2018-11-06 18:51 +0800]:

> Package: libasound2
> Version: 1.1.7-1
> Severity: important
> 
> Dear Maintainer,
> 
> Please forgive my lack of familiarity with ALSA.
> 
> I use sox in a script to play an mp3 via STDIN, using the
> AUDIODRIVER=alsa environment variable. Since upgrading libasound2 from
> 1.1.6-1 to 1.1.7-1 this morning, the script now gives the following
> error:
> 
> ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
> play FAIL formats: can’t open output file `default’: snd_pcm_open error: 
> No such file or directory
> 
> I ran speaker-test to try to isolate the problem. The output is below:
> 
> speaker-test 1.1.6
> 
> Playback device is default
> Stream parameters are 48000Hz, S16_LE, 1 channels
> Using 16 octaves of pink noise
> ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
> Playback open error: -2,No such file or directory
> 
> Sound works throughout the rest of the system – I assume via PulseAudio?
> 
> I’m happy to provide any other information to help diagnose the problem.

libasound2-plugins 1.1.7-2 and alsa-utils 1.1.7-1 should arrive soon
in testing. Please update them first and come back to this bug
report.

Thanks for your patience

Elimar
-- 
  Obviously the human brain works like a computer.
  Since there are no stupid computers humans can't be stupid.
  There are just a few running with Windows or even CE ;-)


signature.asc
Description: PGP signature