首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当我使用amixer时,sset和cset有什么不同?

当我使用amixer时,sset和cset有什么不同?
EN

Stack Overflow用户
提问于 2018-01-08 18:34:34
回答 1查看 2.6K关注 0票数 3

amixer有两组命令:

代码语言:javascript
复制
$ amixer -h
...
Available commands:
  scontrols       show all mixer simple controls
  scontents   show contents of all mixer simple controls (default command)
  sset sID P      set contents for one mixer simple control
  sget sID        get contents for one mixer simple control
  controls        show all controls for given card
  contents        show contents of all controls for given card
  cset cID P      set control contents for one control
  cget cID        get control contents for one control

通常,我可以通过使用不同的命令来做同样的事情,例如

代码语言:javascript
复制
amixer sset 'PCM' 144

代码语言:javascript
复制
amixer cset numid=1,iface=MIXER,name='PCM Playback Volume' 144

它们都可以设置PCM的播放音量。

那么这两组命令有什么不同呢?(cxxx和sxxx)

EN

回答 1

Stack Overflow用户

发布于 2018-01-08 22:57:22

“控件”是由硬件实际实现的东西。

“简单控件”是在此基础上的抽象;这就是在alsamixer中显示的内容。

运行amixer controlsamixer scontrols查看不同之处。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48148489

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档