﻿{"id":1705,"date":"2018-05-28T16:17:22","date_gmt":"2018-05-28T08:17:22","guid":{"rendered":"http:\/\/nick.txtcc.com\/?p=1705"},"modified":"2019-10-08T13:51:12","modified_gmt":"2019-10-08T05:51:12","slug":"amixer%e5%91%bd%e4%bb%a4%e7%94%a8%e4%ba%8e%e8%ae%be%e7%bd%ae%e7%b3%bb%e7%bb%9f%e9%9f%b3%e9%87%8f","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/linux\/1705","title":{"rendered":"amixer\u547d\u4ee4\u7528\u4e8e\u8bbe\u7f6e\u7cfb\u7edf\u97f3\u91cf"},"content":{"rendered":"<p><wbr \/>\u00a0<a href=\"http:\/\/photo.blog.sina.com.cn\/showpic.html#blogid=8c817d4c0101t1l8&#038;url=http:\/\/album.sina.com.cn\/pic\/002zwYuEgy6F2u8Oudfdd\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"amixer\u547d\u4ee4\u7528\u4e8e\u8bbe\u7f6e\u7cfb\u7edf\u97f3\u91cf\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2018\/05\/081724GzZ.jpg\" alt=\"amixer\u547d\u4ee4\u7528\u4e8e\u8bbe\u7f6e\u7cfb\u7edf\u97f3\u91cf\" width=\"258\" height=\"27\" name=\"image_operate_46321387250947484\" \/><\/a><\/p>\n<p><wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0\u8be5\u53e5\u4e3a-c\u9009\u62e90\u7684\u58f0\u5361\uff08\u8c8c\u4f3c\uff09\uff0cPCM volume\u8bbe\u7f6e\u4e3a\u589e\u52a060<em>2=120\uff08value\u503c\u53d8\u4e3a\u52a0\u4e0a120\uff09\uff0c60dB-\u5c31\u662f\u51cf\u5c0f60<\/em>2=120\uff0c\u5982\u679c\u662f\u5982\u4e0b\uff1a<\/p>\n<p><wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<span style=\"color: #ed1c24;\">amixer -c 0 set PCM 60db+<\/span><\/p>\n<p><span style=\"color: #ed1c24;\">\u00a0<wbr \/>\u00a0<wbr \/><\/span>\u00a0<span style=\"color: #000000;\">\u5219\u4e3a\u628avalue\u8bbe\u7f6e\u4e3a60.<\/span><\/p>\n<p><wbr \/>\u00a0<wbr \/>\u00a0\u5728FX1\u7684case\u4e2d\uff0cvalue\u7684\u503c\u5982\u679cloopback\u8981\u8fc7\u7684\u8bdd\uff0c\u5fc5\u987b\u5f97value\u7684\u503c\u5728\u4e00\u5b9a\u8303\u56f480-127\u4ee5\u5185\uff0c\u4e0d\u80fd\u8d85\u8fc7127\u5373\u7206\u58f0\uff08\u6211\u662f\u8fd9\u6837\u8bb0\u7684\uff09\u3002<\/p>\n<p><wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0\u5728FX1\u7684case\u4e2d\uff0crunin\u9636\u6bb5\u6709\u8bbe\u7f6e\u7cfb\u7edf\u58f0\u5361\u97f3\u91cf\uff0c\u4f7f\u97f3\u91cf\u589e\u5927\uff0c\u800c\u8fd9\u53e5\u5f71\u54cd\u5230final\u9636\u6bb5\u7684loopback\u6d4b\u8bd5\uff0c\u4f7f\u5f97\u64ad\u653e\u548c\u5f55\u97f3\u7684\u4e24\u4e2a\u97f3\u9891\u4e0d\u4e00\u6837\uff0ccheck_wav\u65f6\u5c31fail\u4e86\uff0c\u4f46\u662f\u5982\u679c\u6ca1\u6709amixer\u547d\u4ee4\uff0c\u4e0d\u4f1a\u51fa\u9519\u3002<\/p>\n<p><wbr \/><\/p>\n<p><span style=\"color: #2f3699;\">\u4f7f\u7528\u5230\u547d\u4ee4\uff1a<\/span><\/p>\n<p><span style=\"color: #2f3699;\">\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0amixer controls\uff08\u627e\u5230\u4e00\u4e2a\u5173\u4e8ePCM\u7684\u63a7\u5236\u9879PCM Playback Volume\uff09<\/span><\/p>\n<p><span style=\"color: #2f3699;\">\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0amixer cget numid=1,iface=MAXER,name=\u2018PCM Playback Volume\u2019\uff08\u51fa\u73b0PCM\u7684value\u7684\u6570\u636e\uff09<\/span><\/p>\n<p><span style=\"color: #2f3699;\">\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0amixer -c 0 set PCM 60dB+(\u5c06value\u503c\u5728\u539f\u57fa\u7840\u4e0a\u52a0\u4e0a60*2=120)<\/span><\/p>\n<p><span style=\"color: #6f3198;\">\u00a0<wbr \/>Q\uff1a\u4f46\u662fFX1\u4e2d\u6709\u4e00\u4e9b\u6279\u6b21\u4ea7\u54c1\u662freboot\u4e4b\u540e\u4f1a\u6062\u590ddefault \u7684value\u503c\uff0c\u6709\u4e00\u4e9b\u5219\u4e0d\u4f1a\u3002<\/span><\/p>\n<p><wbr \/><\/p>\n<p><wbr \/><\/p>\n<p><span style=\"color: #ed1c24;\">amixer\u547d\u4ee4\uff1a<\/span><\/p>\n<p><wbr \/>\u00a0<wbr \/>\u00a0alsamixer\u662fLinux \u97f3\u9891\u67b6\u6784ALSA\u4e2d\u7684Alsa\u5de5\u5177\u7684\u5176\u4e2d\u4e00\u4e2a\uff0c\u7528\u4e8e\u914d\u7f6e\u97f3\u9891\u7684\u5404\u4e2a\u53c2\u6570\u3002<\/p>\n<p><wbr \/>\u00a0<wbr \/>\u00a0alsamixer\u662f\u57fa\u4e8e\u6587\u672c\u4e0b\u7684\u56fe\u5f62\u754c\u9762\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u952e\u76d8\u7684\u4e0a\u4e0b\u952e\uff0c\u5de6\u53f3\u952e\u7b49\uff0c\u5f88\u65b9\u4fbf\u5730\u8bbe\u7f6e\u9700\u8981\u7684\u97f3\u91cf\uff0c\u5f00\u5173\u67d0\u4e2aswitch\uff08\u5f00\u5173\uff09\u7b49\u7b49\u64cd\u4f5c\u3002<\/p>\n<p><wbr \/>\u00a0<wbr \/>\u00a0amixer\uff0c\u662falsamixer\u7684\u6587\u672c\u6a21\u5f0f,\u5373\u547d\u4ee4\u884c\u6a21\u5f0f\uff0c\u9700\u8981\u7528amixer\u547d\u4ee4\u7684\u5f62\u5f0f\u53bb\u914d\u7f6e\u4f60\u7684\u58f0\u5361\u7684\u5404\u4e2a\u9009\u9879\u3002<\/p>\n<p>\u5bf9\u4e8eamixer\u7684\u4f7f\u7528\uff0c\u4f60\u9996\u5148\u9700\u8981\u641e\u61c2\u4f60\u8981\u8bbe\u7f6e\u7684\u53c2\u6570\u662f\u54ea\u4e9b\uff0c\u7136\u540e\u624d\u53ef\u80fd\u53bb\u4e86\u89e3\uff0c\u5982\u4f55\u53bb\u914d\u7f6e\u5bf9\u5e94\u7684\u503c\uff0c\u6574\u4f53\u6765\u8bf4\uff0c\u76f8\u5bf9alsamixer\u6765\u8bf4\uff0c\u662f\u6709\u70b9\u7e41\u7410\uff0c\u4e0b\u9762\u7b80\u8981\u4ecb\u7ecd\u5176\u5177\u4f53\u7528\u6cd5\uff1a<\/p>\n<p><strong>\u00a0<wbr \/>\u00a0<span style=\"color: #2f3699;\">1.\u5148\u770b\u770bamixer\u652f\u6301\u54ea\u4e9b\u547d\u4ee4,\u5927\u6982\u6709\u54ea\u4e9b\u529f\u80fd<\/span><\/strong><\/p>\n<p><wbr \/>\u00a0#\u00a0<strong>amixer &#8211;help<\/strong><\/p>\n<p><strong>\u00a0<wbr \/><\/strong>\u00a0<span style=\"color: #38761d;\">Usage: amixer [command]<\/span><\/p>\n<p><strong>\u00a0<wbr \/><\/strong>\u00a0<span style=\"color: #6f3198;\">Available options:\n<\/span>\u00a0<wbr \/>\u00a0-h,&#8211;help\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0this help\n<wbr \/>\u00a0-c,&#8211;card N\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0select the card\n<wbr \/>\u00a0-D,&#8211;device N\u00a0<wbr \/>\u00a0<wbr \/>\u00a0select the device, default &#8216;default&#8217;\n<wbr \/>\u00a0-d,&#8211;debug\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0debug mode\n<wbr \/>\u00a0-n,&#8211;nocheck\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0do not perform range checking\n<wbr \/>\u00a0-v,&#8211;version\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0print version of this program\n<wbr \/>\u00a0-q,&#8211;quiet\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0be quiet\n<wbr \/>\u00a0-i,&#8211;inactive\u00a0<wbr \/>\u00a0<wbr \/>\u00a0show also inactive controls\n<wbr \/>\u00a0-a,&#8211;abstract L select abstraction level (none or basic)\n<wbr \/>\u00a0-s,&#8211;stdin\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0Read and execute commands from stdin sequentially<\/p>\n<p><wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<span style=\"color: #6f3198;\">Available commands:\n<\/span>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0scontrols\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0show all mixer simple controls\n<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0scontents\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0show contents of all mixer simple controls (default command)\n<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0sset sID P\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0set contents for one mixer simple control\n<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0sget sID\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0get contents for one mixer simple control\n<strong>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/><\/strong>controls\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0show all controls for given card\n<strong>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/><\/strong>contents\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0show contents of all controls for given card\n<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0cset cID P\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0set control contents for one control\n<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0cget cID\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0get control contents for one control<\/p>\n<p><strong>2.\u518d\u770b\u770b\u5f53\u524d\u4f60\u7684\u97f3\u9891\u7cfb\u7edf\uff08\u4e0d\u540c\u7684\u97f3\u9891\u9a71\u52a8\u5bf9\u5e94\u4e0d\u540c\u7684\u5185\u5bb9\u548c\u64cd\u4f5c\u63a5\u53e3\uff09\u63d0\u4f9b\u4e86\u90a3\u4e9b\u4f9b\u4f60\u4f7f\u7528\u7684\u63a5\u53e3\u53bb\u64cd\u4f5c<\/strong><\/p>\n<p>\u5173\u4e8e\u9a71\u52a8\u91cc\u9762\u5df2\u7ecf\u63d0\u4f9b\u4e86\u591a\u5c11\u63a5\u53e3\u53ef\u4ee5\u53bb\u64cd\u4f5c\uff0c\u53ef\u4ee5\u7528\u547d\u4ee4\uff1a<\/p>\n<p><strong>amixer contents<\/strong><\/p>\n<p>\u67e5\u770b\uff0c\u6bd4\u5982:<\/p>\n<p>#\u00a0<strong>amixer controls\n<\/strong>numid=3,iface=MIXER,name=&#8217;Master Mode Switch&#8217;\nnumid=29,iface=MIXER,name=&#8217;Master Mux&#8217;\nnumid=4,iface=MIXER,name=&#8217;Master Quality Switch&#8217;\nnumid=2,iface=MIXER,name=&#8217;Master Switch&#8217;\nnumid=1,iface=MIXER,name=&#8217;Master Volume&#8217;\nnumid=7,iface=MIXER,name=&#8217;PCM Mode Switch&#8217;\nnumid=6,iface=MIXER,name=&#8217;PCM Switch&#8217;\nnumid=5,iface=MIXER,name=&#8217;PCM Volume&#8217;\nnumid=21,iface=MIXER,name=&#8217;Line Input Switch&#8217;\nnumid=16,iface=MIXER,name=&#8217;Line Mode Switch&#8217;\nnumid=27,iface=MIXER,name=&#8217;Line Mux&#8217;\n\u3002\u3002\u3002\u3002\u3002\nnumid=9,iface=MIXER,name=&#8217;Mic Switch&#8217;\nnumid=8,iface=MIXER,name=&#8217;Mic Volume&#8217;\nnumid=19,iface=MIXER,name=&#8217;ADC Mode Switch&#8217;\nnumid=28,iface=MIXER,name=&#8217;ADC Mux&#8217;\n\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\n\u53bb\u67e5\u770b\uff0c\u5f53\u7136\u4f60\u7684Linux\u5185\u6838\u652f\u6301\u54ea\u4e9b\u914d\u7f6e\u53c2\u6570\uff0c\u5982\u4e0a\uff0c\u4e00\u5171\u670920\u591a\u4e2a\u53c2\u6570\u53ef\u4f9b\u4f60\u914d\u7f6e\u3002<\/p>\n<p>\u800c\u5bf9\u4e8e\u6240\u6709\u7684\u5f53\u7136\u7684\u914d\u7f6e\u7684\u503c\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u67e5\u770b\uff1a<\/p>\n<dl>\n<dt>#\u00a0<strong>amixer contents<\/strong><\/dt>\n<dt>numid=3,iface=MIXER,name=&#8217;Master Mode Switch&#8217;<\/dt>\n<dt>; type=ENUMERATED,access=rw&#8212;&#8212;,values=1,items=2<\/dt>\n<dt>; Item #0 &#8216;Common Buffer Off&#8217;<\/dt>\n<dt>; Item #1 &#8216;Common Buffer On&#8217;<\/dt>\n<dd>values=0\n\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002<\/dd>\n<dt>numid=5,iface=MIXER,name=&#8217;PCM Volume&#8217;<\/dt>\n<dt>; type=INTEGER,access=rw&#8212;R&#8211;,values=2,min=0,max=27,step=0<\/dt>\n<dd>values=27,27\n| dBscale-min=-40.50dB,step=1.50dB,mute=0\nnumid=24,iface=MIXER,name=&#8217;Mixer ADC Mix Switch&#8217;\n; type=BOOLEAN,access=rw&#8212;&#8212;,values=1<\/dd>\n<dd>values=off\nnumid=26,iface=MIXER,name=&#8217;Mixer DAC Mix Switch&#8217;\n; type=BOOLEAN,access=rw&#8212;&#8212;,values=1<\/dd>\n<dd>values=on\nnumid=25,iface=MIXER,name=&#8217;Mixer Line Mix Switch&#8217;\n; type=BOOLEAN,access=rw&#8212;&#8212;,values=1<\/dd>\n<dd>values=on\nnumid=23,iface=MIXER,name=&#8217;Mixer Mic Mix Switch&#8217;\n; type=BOOLEAN,access=rw&#8212;&#8212;,values=1<\/dd>\n<dd>values=on<\/dd>\n<\/dl>\n<p><strong>3.\u641e\u61c2\u5982\u4f55\u53bb\u8bbe\u7f6e\u67d0\u4e2a\u53c2\u6570<\/strong><\/p>\n<p><strong>\u603b\u7ed3\u8d77\u6765\u5c31\u662f\uff0c\u5148\u8981\u7528get\u7cfb\u5217\u547d\u4ee4\u53bb\u770b\u61c2\u6709\u54ea\u4e9b\u63a5\u53e3\uff0c\u7136\u540e\u518d\u53bb\u7528set\u7cfb\u5217\u7684\u547d\u4ee4\uff0c\u53bb\u8bbe\u7f6e\u5bf9\u5e94\u4f60\u6240\u8981\u8bbe\u7f6e\u7684\u503c\u3002<\/strong><\/p>\n<p>\u60f3\u8981\u9488\u5bf9\u67d0\u9879\u8bbe\u7f6e\uff0c\u6bd4\u5982\u60f3\u8981\u8bbe\u7f6e\u4e0a\u9762\u7684\u7684\u4e3b\u97f3\u91cf\uff0cmaster volume\uff0c\u5373controls\u4e2d\u663e\u793a\u7684\uff1a<\/p>\n<p>numid=5,iface=MIXER,name=&#8217;PCM Volume&#8217;\n\u90a3\u4e48\uff0c\u53ef\u4ee5\u5148\u770b\u770b\u5f53\u524d\u7684\u503c\uff1a<\/p>\n<dl>\n<dt>#\u00a0<strong>amixer cget\u00a0numid=5,iface=MIXER,name=&#8217;PCM Volume&#8217;<\/strong><\/dt>\n<dt>numid=5,iface=MIXER,name=&#8217;PCM Volume&#8217;<\/dt>\n<dt>; type=INTEGER,access=rw&#8212;R&#8211;,values=2,min=0,max=27,step=0<\/dt>\n<dd>values=27,27\n| dBscale-min=-40.50dB,step=1.50dB,mute=0<\/dd>\n<\/dl>\n<p>\u663e\u793a\u7684\u662f\u6700\u5927\u768427\uff0c\u5047\u8bbe\u60f3\u8981\u8bbe\u7f6e\u4e3a25\uff0c\u90a3\u4e48\u5c31\u7528cset\u53bb\u8bbe\u7f6e\uff1a<\/p>\n<dl>\n<dt>#\u00a0<strong>amixer cset\u00a0numid=5,iface=MIXER,name=&#8217;PCM Volume&#8217; 25<\/strong><\/dt>\n<dt>numid=5,iface=MIXER,name=&#8217;PCM Volume&#8217;<\/dt>\n<dt>; type=INTEGER,access=rw&#8212;R&#8211;,values=2,min=0,max=27,step=0<\/dt>\n<dd>values=25,25\n| dBscale-min=-40.50dB,step=1.50dB,mute=0<\/dd>\n<\/dl>\n<p>\u518d\u6bd4\u5982\uff0c\u53bb\u5c06&#8217;Mic Supply \u7684switch\u5173\u95ed\uff1a<\/p>\n<dl>\n<dt>#\u00a0<strong>amixer cset\u00a0numid=12,iface=MIXER,name=&#8217;Mic Supply Switch&#8217;\u00a0Off<\/dt>\n<dt><\/strong>numid=12,iface=MIXER,name=&#8217;Mic Supply Switch&#8217;<\/dt>\n<dt>; type=ENUMERATED,access=rw&#8212;&#8212;,values=1,items=2<\/dt>\n<dt>; Item #0 &#8216;On&#8217;<\/dt>\n<dt>; Item #1 &#8216;Off&#8217;<\/dt>\n<dd>values=1<\/dd>\n<\/dl>\n<p>\u603b\u7ed3\u4e00\u4e0b\u7528\u6cd5\uff0c\u5c31\u662f\uff1a<\/p>\n<p><strong>amixer cget\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0controls\u4e2d\u6240\u8f93\u51fa\u7684\u67d0\u4e2a\u53c2\u6570<\/strong><\/p>\n<p><strong>amixer cset\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0controls\u4e2d\u6240\u8f93\u51fa\u7684\u67d0\u4e2a\u53c2\u6570\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0\u5177\u4f53\u7684\u503c(\u6bd4\u5982,0,1,On,Off\u7b49)<\/strong><\/p>\n<p><strong>\u3010\u63d0\u793a\u3011<\/strong><\/p>\n<p>\u540c\u4e0a\u9762\u4ecb\u7ecd\u7684\u7684cget\/cset\u7cfb\u5217\u547d\u4ee4\uff1a<\/p>\n<p>controls\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0show all controls for given card\ncontents\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0show contents of all controls for given card\ncset cID P\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0set control contents for one control\ncget cID\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0get control contents for one control<\/p>\n<p>\u7c7b\u4f3c\u7684\uff0c\u8fd8\u6709\u53e6\u5916\u4e00\u5957sget\/sset\u7cfb\u5217\u7684\u547d\u4ee4\uff1a<\/p>\n<p>scontrols\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0show all mixer simple controls\nscontents\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0show contents of all mixer simple controls (default command)\nsset sID P\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0set contents for one mixer simple control\nsget sID\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0<wbr \/>\u00a0get contents for one mixer simple control<\/p>\n<p>\u4e5f\u662f\u540c\u6837\u505a\u6cd5\uff0c\u6bd4\u5982\uff1a<\/p>\n<p>\u901a\u8fc7\u67e5\u770b\u5f53\u7136\u6709\u54ea\u4e9b\u9009\u62e9\u53ef\u4ee5\u63a7\u5236\uff1a<\/p>\n<p>#\u00a0<strong>amixer scontrols\n<\/strong>Simple mixer control &#8216;Master&#8217;,0\nSimple mixer control &#8216;Master Mode&#8217;,0\nSimple mixer control &#8216;Master Mux&#8217;,0\nSimple mixer control &#8216;Master Quality&#8217;,0\n\u3002\u3002\u3002<\/p>\n<p>\u540c\u7406\uff0c<strong>amixer scontents<\/strong>\uff0c\u53ef\u4ee5\u67e5\u770b\u5f53\u524d\u6240\u6709\u7684\u503c\uff0c\u5177\u4f53\u5c31\u4e0d\u5728\u8fd9\u5217\u4e3e\u4e86\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u53bb\u67e5\u770b\u6216\u8005\u914d\u7f6e\u7528sget\uff0c\u6bd4\u5982\uff1a<\/p>\n<p>#\u00a0<strong>amixer sget\u00a0&#8216;Microphone Input&#8217;,0<\/strong>\nSimple mixer control &#8216;Microphone Input&#8217;,0\nCapabilities: pswitch pswitch-joined\nPlayback channels: Mono\nMono: Playback [off]<\/p>\n<p>\u5982\u679c\u60f3\u8981\u4fee\u6539\u5bf9\u5e94\u8bbe\u7f6e\uff0c\u7528amixer sset \uff0c\u5177\u4f53\u7528\u6cd5\u662f\uff1a<\/p>\n<p><strong>amixer sset sID(\u63a7\u5236\u5b57\u7b26\u4e32) P(\u652f\u6301\u7684\u67d0\u4e2a\u503c)<\/strong><\/p>\n<p>\u5176\u4e2dsID\uff0c\u5c31\u662f\u4e0a\u9762\u7684Simple mixer control\u540e\u9762\u7684\u90a3\u4e2a\u5b57\u7b26\u4e32\uff0c\u6bd4\u5982&#8217;Master Mux&#8217;,0<\/p>\n<p>\u800c\u5bf9\u5176\u8bbe\u7f6e\u5c31\u662f\uff0c\u5148\u770b\u770b\u5176\u63d0\u4f9b\u4e86\u54ea\u4e9b\u4f9b\u4f60\u8bbe\u7f6e\u7684\u503c\uff1a<\/p>\n<p>#\u00a0<strong>amixer sget\u00a0&#8216;Master Mux&#8217;,0\n<\/strong>Simple mixer control &#8216;Master Mux&#8217;,0\nCapabilities: enum\nItems: &#8216;Sum&#8217; &#8216;DAC&#8217; &#8216;Line&#8217; &#8216;Mic&#8217;\nItem0: &#8216;DAC&#8217;<\/p>\n<p>\u7136\u540e\u6bd4\u5982\u8981\u8bbe\u7f6e\u6210Line\u7684\uff0c\u5c31\u53ef\u4ee5\u8fd9\u6837\uff1a<\/p>\n<p>#\u00a0<strong>amixer sset\u00a0&#8216;Master Mux&#8217;,0\u00a0Line\n<\/strong>Simple mixer control &#8216;Master Mux&#8217;,0\nCapabilities: enum\nItems: &#8216;Sum&#8217; &#8216;DAC&#8217; &#8216;Line&#8217; &#8216;Mic&#8217;\nItem0: &#8216;Line&#8217;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u591a\u4e2a\u58f0\u5361\u53ef\u80fd\u9700\u8981\u624b\u52a8\u8bbe\u7f6e\u9ed8\u8ba4\u8bbe\u5907:<\/p>\n<p>aplay -l<\/p>\n<p>\u521b\u5efa\u6216\u8005\u4fee\u6539\/etc\/asound.conf\uff08\u5bf9\u6240\u6709\u7528\u6237\u6709\u6548\uff09\uff0c~\/.asound.conf\uff08\u5bf9\u672c\u7528\u6237\u6709\u6548\uff09<\/p>\n<p class=\"p1\"><span class=\"s1\">defaults.pcm.card 0<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">defaults.pcm.device 0<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">defaults.ctl.card 0<\/span><\/p>\n<p class=\"p1\"><\/p>","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0\u00a0\u00a0\u8be5\u53e5\u4e3a-c\u9009\u62e90\u7684\u58f0\u5361\uff08\u8c8c\u4f3c\uff09\uff0cPCM volume\u8bbe\u7f6e\u4e3a\u589e\u52a0602=120\uff08value\u503c\u53d8\u4e3a\u52a0\u4e0a120\uff09\uff0c60dB-\u5c31\u662f\u51cf\u5c0f602=120\uff0c\u5982\u679c\u662f\u5982\u4e0b\uff1a \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0am&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[493,492],"class_list":["post-1705","post","type-post","status-publish","format-standard","hentry","category-linux","tag-alsamix","tag-amixer"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=1705"}],"version-history":[{"count":3,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1705\/revisions"}],"predecessor-version":[{"id":1993,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/1705\/revisions\/1993"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=1705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=1705"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=1705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}