ALSA auto-muting digital output

On my (headless) Linux box at home, I have a soundcard with digital out (optical), going straight to my amp. I can use various music-playing servers to let me select the music to play remotely, with the output emitting from the server. However for reasons that completely elude me, the ALSA system auto-mutes the output at the end of every song. It's infuriating. ALSA does indeed have an "auto-mute" setting, but I have ensured it is set to off. I wondered if the issue was with PulseAudio for a long time, but the problem still occurs after reconfiguring things to go direct to ALSA. As a work-around, I could modify the open-source software I'm using, to get it to run an unmute command after starting to play a track, but that's ridiculous. Surely there's a way to just stop it auto-muting on close? I don't suppose anyone else has ever encountered this, or found a solution? Toby

On Wed, Sep 23, 2015 at 03:55:38AM +0000, Toby Corkindale wrote:
However for reasons that completely elude me, the ALSA system auto-mutes the output at the end of every song. It's infuriating. ALSA does indeed have an "auto-mute" setting, but I have ensured it is set to off.
are you sure it's ALSA itself and not whatever program you're using to play the songs? maybe try some different audio players to see if the same thing happens. craig -- craig sanders <cas@taz.net.au>

Ah, sorry, perhaps I wasn't clear. When I said "I can use several different music players to play music remotely", I meant that I had in fact tried several, all with the same problem. The problem even occurs if I use ALSA's own "aplay", like so: $ amixer -c 1 sget IEC958 Simple mixer control 'IEC958',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] $ aplay -D iec958:CARD=1 sample.wav Playing WAVE 'sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo # Or aplay -D hw:CARD=PCH,DEV=1 $ amixer -c 1 sget IEC958 Simple mixer control 'IEC958',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off] Although hah, I just ran through that process again and the second time the On setting stuck. Which I think I've seen happen before, but it always seems to go back to flipping off afterwards. On Wed, 23 Sep 2015 at 15:39 Craig Sanders <cas@taz.net.au> wrote:
On Wed, Sep 23, 2015 at 03:55:38AM +0000, Toby Corkindale wrote:
However for reasons that completely elude me, the ALSA system auto-mutes the output at the end of every song. It's infuriating. ALSA does indeed have an "auto-mute" setting, but I have ensured it is set to off.
are you sure it's ALSA itself and not whatever program you're using to play the songs?
maybe try some different audio players to see if the same thing happens.
craig
-- craig sanders <cas@taz.net.au> _______________________________________________ luv-main mailing list luv-main@luv.asn.au http://lists.luv.asn.au/listinfo/luv-main

Looking at this issue again, I notice that even if I'm telling aplay to use a direct ALSA hardware device, pulseaudio's daemon still starts up in the background. Grr. I've purged pulseaudio from the system entirely now, so will see if that has an effect.. even though it wasn't meant to be being used. (Pulseaudio has normally been great, in my experience, but I don't like that it seems to be starting up even when unintended) On Wed, 23 Sep 2015 at 18:13 Toby Corkindale <toby@dryft.net> wrote:
Ah, sorry, perhaps I wasn't clear. When I said "I can use several different music players to play music remotely", I meant that I had in fact tried several, all with the same problem.
The problem even occurs if I use ALSA's own "aplay", like so:
$ amixer -c 1 sget IEC958 Simple mixer control 'IEC958',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on]
$ aplay -D iec958:CARD=1 sample.wav Playing WAVE 'sample.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
# Or aplay -D hw:CARD=PCH,DEV=1
$ amixer -c 1 sget IEC958 Simple mixer control 'IEC958',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [off]
Although hah, I just ran through that process again and the second time the On setting stuck. Which I think I've seen happen before, but it always seems to go back to flipping off afterwards.
On Wed, 23 Sep 2015 at 15:39 Craig Sanders <cas@taz.net.au> wrote:
On Wed, Sep 23, 2015 at 03:55:38AM +0000, Toby Corkindale wrote:
However for reasons that completely elude me, the ALSA system auto-mutes the output at the end of every song. It's infuriating. ALSA does indeed have an "auto-mute" setting, but I have ensured it is set to off.
are you sure it's ALSA itself and not whatever program you're using to play the songs?
maybe try some different audio players to see if the same thing happens.
craig
-- craig sanders <cas@taz.net.au> _______________________________________________ luv-main mailing list luv-main@luv.asn.au http://lists.luv.asn.au/listinfo/luv-main

Toby Corkindale <toby@dryft.net> writes:
Looking at this issue again, I notice that even if I'm telling aplay to use a direct ALSA hardware device, pulseaudio's daemon still starts up in the background.
If pa is around, it presents itself as an alsa card - probably card 0. Telling a client to use alsa on a pa system will PROBABLY result in alsa -> pa -> alsa not alsa ...unless you also specify card 1. See /proc/asound/cards.
participants (3)
-
Craig Sanders
-
Toby Corkindale
-
trentbuck@gmail.com