NetBSD Problem Report #58328
From www@netbsd.org Sun Jun 9 20:44:49 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 21A271A923C
for <gnats-bugs@gnats.NetBSD.org>; Sun, 9 Jun 2024 20:44:49 +0000 (UTC)
Message-Id: <20240609204448.0A2361A923D@mollari.NetBSD.org>
Date: Sun, 9 Jun 2024 20:44:48 +0000 (UTC)
From: andrew.cagney@gmail.com
Reply-To: andrew.cagney@gmail.com
To: gnats-bugs@NetBSD.org
Subject: service mixerctl {stop,start} causes volume creep
X-Send-Pr-Version: www-1.0
>Number: 58328
>Category: bin
>Synopsis: service mixerctl {stop,start} causes volume creep
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 09 20:45:00 +0000 2024
>Originator: cagney
>Release: NetBSD thomasina 10.0_RC5 NetBSD 10.0_RC5
>Organization:
>Environment:
NetBSD thomasina 10.0_RC5 NetBSD 10.0_RC5 (GENERIC64) #0: Thu Mar 7 21:45:53 EST 2024 cagney@fedora:/home/cagney/netbsd-build/10/evbarm64/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
audio 1 is a USB sound blaster:
[ 6.187055] uaudio0 at uhub1 port 5 configuration 1 interface 0
[ 6.187055] uaudio0: Creative Technology Ltd (0x041e) Sound BlasterX G1 (0x3249), rev 2.00/10.13, addr 5
[ 6.217055] uaudio0: audio rev 1.00
[ 6.217055] audio1 at uaudio0: playback, capture, full duplex, independent
[ 6.227492] audio1: slinear_le:16 2ch 44100Hz, blk 10584 bytes (60ms) for playback
[ 6.237622] audio1: slinear_le:16 2ch 44100Hz, blk 10800 bytes (61.2ms) for recording
trying to get it to pre-set the audio. Notice how output.speaker is slowly increasing as the audio is saved/restored using service mixerctl.
first I save it, and change the value:
thomasina$ sudo service mixerctl stop
Saving mixer settings: mixer1.
thomasina$ mixerctl -d /dev/mixer1 -a
outputs.speaker.mute=off
outputs.speaker=232,232
record.mic.mute=off
record.mic=204,204
inputs.mic.mute=on
inputs.mic=214,214
thomasina$ mixerctl -d /dev/mixer1 -w outputs.speaker=200,200
outputs.speaker: 232,232 -> 203,203
but when it is restored it actually increases:
thomasina$ sudo service mixerctl start
Restoring mixer settings: mixer1.
thomasina$ mixerctl -d /dev/mixer1 -a
outputs.speaker.mute=off
outputs.speaker=238,238
record.mic.mute=off
record.mic=204,204
inputs.mic.mute=on
inputs.mic=214,214
same thing again, and it goes up another 10:
thomasina$ sudo service mixerctl stop
Saving mixer settings: mixer1.
thomasina$ sudo service mixerctl start
Restoring mixer settings: mixer1.
thomasina$ mixerctl -d /dev/mixer1 -a
outputs.speaker.mute=off
outputs.speaker=243,243
record.mic.mute=off
record.mic=204,204
inputs.mic.mute=on
inputs.mic=214,214
looking in the saved file the saved value is correct, but the restored value increases:
thomasina$ cat /var/db/mixer1.conf
outputs.speaker.mute=off
outputs.speaker=238,238
record.mic.mute=off
record.mic=204,204
inputs.mic.mute=on
inputs.mic=214,214
>How-To-Repeat:
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.