Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Dec 2025 14:23:26 -0500 (EST)
From:      "Sean C. Farley" <scf@FreeBSD.org>
To:        Christos Margiolis <christos@FreeBSD.org>
Cc:        freebsd-multimedia@FreeBSD.org
Subject:   Re: Muting only affects audio that is playing
Message-ID:  <598a46dd-3abc-2a72-3f58-a9ca16ab3bb0@FreeBSD.org>
In-Reply-To: <DEUKE1MYMQJY.JDSTZX83BW19@FreeBSD.org>
References:  <8028333b-f7c1-7992-1016-4194623fce38@FreeBSD.org> <DEUKE1MYMQJY.JDSTZX83BW19@FreeBSD.org>

index | next in thread | previous in thread | raw e-mail

On Wed, 10 Dec 2025, Christos Margiolis wrote:

> Hello Sean,
>
> On Wed Dec 10, 2025 at 4:56 AM CET, Sean C. Farley wrote:
>> When I mute the mixer, it will mute any program currently playing 
>> audio to the device.  That is as expected.
>>
>> However, this does not prevent audio from being played in other 
>> conditions:
>> - Restarting mpv.
>> - Pausing then unpausing mpv.
>> - Playing something in Firefox then skipping into the video.  Pausing 
>> and unpausing seems to work with Firefox.
>>
>> I wish I could recall better, but I think it used to work at least 
>> prior to switching from the motherboard sound to a dedicated sound 
>> card.
>>
>> Mute should stick, yes?  I have also tried pcm.mute=on, but it does 
>> not change anything.
>
> I do not run 14.3-STABLE anymore, but I am pretty sure this wasn't an 
> issue back then, and definitely doesn't seem to be a problem in 
> 15.0-RELEASE. At least I do not recall anyone else having reported 
> such an issue.
>
> Can you by any chance try with 15.0 and let me know if the issue 
> persists? I am not sure if that could be a sound card-specific issue, 
> as the muting functionality is done on the sound(4) layer, but if your 
> issue persists we'll have to dig investigate this scenario as well.
>
> If you cannot try 15.0, can you at least recompile sound (or your 
> kernel if sound is compiled into the kernel) and re-test?

Hi Christos,

First, I tested with 14.3-STABLE:  stable/14-n272977-63b77ab1554e
I now tried with 15.0-STABLE:  stable/15-n281468-224d65015465

Muting still does not work correctly even after removing any sound 
related settings from /boot/loader.conf and /etc/sysctl.conf just to 
make sure they were not doing anything.

With hw.snd.verbose=4, I played an MP3 with mpv while the sound was 
muted.  Here is the information, although, I am not sure if it helps.

sndbuf_remalloc(): b=0xfffff80106608a80 8192 [8192] NOCHANGE
pcm4: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=10 b[2048/1024/2] bs[2048/1024/2] limit=0
sndbuf_remalloc(): b=0xfffff8014cdfd180 0 -> 8192 [8192]
pcm4: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=10 b[0/0/0] bs[8192/1024/8] limit=2048
pcm4: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=10 b[2048/1024/2] bs[2048/1024/2] limit=0
pcm4: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=10 b[0/0/0] bs[8192/1024/8] limit=2048
pcm4: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=10 b[2048/1024/2] bs[2048/1024/2] limit=0
sndbuf_remalloc(): b=0xfffff8014cdfd180 8192 -> 16384 [16384]
pcm4: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=10 b[0/0/0] bs[16384/2048/8] limit=4096
pcm4: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=10 b[2048/1024/2] bs[2048/1024/2] limit=0
pcm4: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=10 b[0/0/0] bs[16384/2048/8] limit=3763
pcm4: chn_trigger() dsp4.virtual_play.0: calling go=0x00000001 , prev=0x00000000
pcm4: chn_start(): VCHAN PARENT starting! (PCMDIR_PLAY/running) (ready=2048 force=1 i=1 j=0 intrtimeout=10 latency=10ms)
pcm4: chn_trigger() dsp4.play.0: calling go=0x00000001 , prev=0xffffffff
hdac1: 1536Kbps of 46080Kbps bandwidth used
pcm4: PCMDIR_PLAY: Stream setup fmt=00200010 (2.0) speed=48000
pcm4: PCMDIR_PLAY: Stream setup nid=2: fmt=0x0011, dfmt=0x0001, chan=0x0010, chan_count=0x01, stripe=0
pcm4: chn_trigger() dsp4.virtual_play.0: calling go=0xffffffff , prev=0x00000001
pcm4: chn_trigger() dsp4.play.0: calling go=0xffffffff , prev=0x00000001
pcm4: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=10 b[2048/1024/2] bs[2048/1024/2] limit=0
pcm4: chn_resizebuf(): PCMDIR_PLAY (virtual) timeout=10 b[0/0/0] bs[16384/2048/8] limit=3763
sndbuf_remalloc(): b=0xfffff80106608a80 8192 [2048] NOCHANGE
pcm4: chn_resizebuf(): PCMDIR_PLAY (hardware) timeout=42 b[2048/1024/2] bs[8192/1024/8] limit=2048

One odd thing was that running "mixer vol.mute=off" while audio is 
playing actually muted the sound.  However, pausing and unpausing got it 
to play anyway.

Sean
-- 
scf@FreeBSD.org


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?598a46dd-3abc-2a72-3f58-a9ca16ab3bb0>