复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30#include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { int iRightVol = 0; char ucCmdBuf[128] = {0}; int iLeftVol = 0; iLeftVol = atoi(argv[1]); iRightVol = atoi(argv[2]); printf("########## iRightVol is %d , iLeft is %d #########n", iRightVol, iLeftVol); system("i2cset -f -y 1 0x18 0x5d 0x99 b"); system("i2cset -f -y 1 0x18 0x5b 0x99 b"); sprintf(ucCmdBuf, "amixer cset numid=2 '%d,%d'", iLeftVol, iRightVol); printf("######## %s #############n", ucCmdBuf); system(ucCmdBuf); system("i2cget -f -y 1 0x18 0x5d b"); system("i2cget -f -y 1 0x18 0x5b b"); return 0; }
最后
以上就是诚心荷花最近收集整理的关于amixer 左右通道音量设置的全部内容,更多相关amixer内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复