简体   繁体   English

如何在Linux中使用Amixer命令行实用程序设置控件属性?

[英]How to set control property with amixer command line utility in linux?

I am using amixer command line utility to set the property of mixer control. 我正在使用amixer命令行实用程序来设置混音器控件的属性。 I am trying to set property on my default card (sound card no. 0). 我试图在默认卡(0号声卡)上设置属性。

With the try I set one of the PCM property with command amixer set PCM 90 . 通过尝试,我使用命令amixer set PCM 90了PCM属性之一。 And got successful response with below output. 并获得了以下输出的成功响应。

Simple mixer control 'PCM',0
  Capabilities: pvolume penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 127
  Mono:
  Front Left: Playback 90 [71%] [-18.50dB]
  Front Right: Playback 90 [71%] [-18.50dB]

But with the another property "HP DAC", I applied same type command amixer set HP DAC 90 . 但是,通过另一个属性“ HP DAC”,我应用了相同类型的命令amixer set HP DAC 90 But no output came like PCM. 但是没有输出像PCM。 And also property value had not been changed. 财产价值也没有改变。

Note: With the (alsamixer) graphical view of amixer utility, I can able to change the property value of "HP DAC". 注意:使用混合器实用程序的(alsamixer)图形视图,我可以更改“ HP DAC”的属性值。

Can someone please give suggestion what extra need to do or correction in this to change the value of "HP DAC" property through amixer command line utility. 有人可以建议通过混合器命令行实用程序更改“ HP DAC”属性的值的额外操作或更正操作。

外壳程序使用空格来分隔参数,因此包含空格的控件名称必须用引号引起来:

amixer set "HP DAC" 90

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM