Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8EE67CD612D for ; Mon, 9 Oct 2023 19:37:31 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0B017ED6; Mon, 9 Oct 2023 21:36:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0B017ED6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1696880249; bh=ztzO0FP2n7mxeegciH74/PuIP43zv0rB6yVMvGm6tOc=; h=Date:To:From:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=QLdllTv/u5JsqqbOKYgtw8i2AsnADPYDGplm8/q0qp/ZJyoVs6H7fGczBPi++MnRU 34ZEDBTupG6pE4cPdkj5xoWEgE1vvimcmZJKS+1xzldwauJHYPR+Qj95ZQKng9qA+L EEq+vyCoc0B+6eE6wUjzGx0gpNb3na+DvGaQB3Yw= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 99C70F8015B; Mon, 9 Oct 2023 21:36:01 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 2C74DF80552; Mon, 9 Oct 2023 21:36:01 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 078D6F802BE; Mon, 9 Oct 2023 21:35:58 +0200 (CEST) Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 6485EF80130 for ; Mon, 9 Oct 2023 21:35:54 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6485EF80130 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=posteo.net header.i=@posteo.net header.a=rsa-sha256 header.s=2017 header.b=GS6JVBBp Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id B3EA7240101 for ; Mon, 9 Oct 2023 21:35:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1696880153; bh=ztzO0FP2n7mxeegciH74/PuIP43zv0rB6yVMvGm6tOc=; h=Message-ID:Date:MIME-Version:To:From:Subject: Content-Transfer-Encoding:From; b=GS6JVBBpd6g5Kczxm3mgIP8G/7PI2td4YkgOw4rH4PnHEOb/o/1OumR3BBXECKHpI VSh4gR1bWHHjNDoIdZ/wa6/J8EFlSq9lyHCfZ0mBRAnkSeGISgxqOAlbbt0ZIhMW2D UchJ2WEUFqz+q/6KnQ6H7OhocHg5odnIEfvIMGHvsMA4BXhAB092Ww1wuinC+tH5i5 PfClRlPFndXDv9irfnk9OmlUonahp9uSdCpbt/S9wipzErRIa5Xlay9Rv65udgVSNy CWZD75C6xNeVWLTQ0yZ5Tx2eke1r+QSs9B5M/WxufXrAv+hRcIBMLvsZVb6sd9UGF1 iFAXJNgZi6xuQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S48Qd29Rkz9rxW for ; Mon, 9 Oct 2023 21:35:53 +0200 (CEST) Message-ID: Date: Mon, 9 Oct 2023 19:35:53 +0000 MIME-Version: 1.0 To: alsa-devel@alsa-project.org Content-Language: fr From: prts Subject: Alsa change value to limit maximum volu Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID-Hash: IWEM5X4SZRH53MAVBJTRQGVVCYM6YVTW X-Message-ID-Hash: IWEM5X4SZRH53MAVBJTRQGVVCYM6YVTW X-MailFrom: prts@posteo.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi! I am trying to limit the maximum allowed volume without using any softvol (I want to control direct hardware mixer, no dmix). My card is an external usb DAC, stating: `amixer -c Balanced` Simple mixer control 'D10 Balanced',0   Capabilities: pvolume pvolume-joined pswitch pswitch-joined   Playback channels: Mono   Limits: Playback 0 - 127   Mono: Playback 34 [27%] [-93.00dB] [on] Limits are from 0 to 127. I would like to tune this manually so that anything using the card in the system will (for example) never go beyond 98 (and not 127). I noticed that this value is in /var/lib/alsa/asound.state. Any possibility to change this value? Thanks and have a nice day. Sylvain