我的音频系统很简单:后面的面板上有两个扬声器--front left(FL),front right(FR),前面板的耳机。原始状态如下--原始状态:

在这种状态下,声音可以从FL、FR和headphone中听到。
我发现一个奇怪的事实: alsamixer中的master、front、surround在LFE上单击M时,在LFE上移动光标,然后单击M,LFE更改为MM,同时master、front、d18所有更改为MM状态!

我在M上第二次单击LFE,所有状态更改如下:

让我们继续从原始状态,并从后面的面板拔出线,耳机没有声音!在alsamixer gui中的地位如下:

现在重新插入后面板中的线路,在alsamixer中的状态变为:

请详细解释一下。
发布于 2021-03-12 00:08:51
看看是怎么回事
在一个终端窗口中运行alsactl monitor.
alsamixer.
时,您应该会看到多个开关命令出现。
之所以会发生这种情况,是因为alsamixer使用的脉冲音频配置文件。
/usr/share/pulseaudio/alsa-mixer/profile-sets/*.conf
/usr/share/pulseaudio/alsa-mixer/paths/*.conf中
那么哪些在使用呢?您可以使用pacmd info | grep "active"进行检查,这可能会产生如下内容:
active port: <analog-output-speaker>
active port: <analog-input-headphone-mic>
active profile: <output:analog-stereo+input:analog-stereo>好的,输出映射是analog-stereo。我可以在/usr/share/pulseaudio/alsa-mixer/profile-sets/default.conf找到这个。它包含以下内容:
[Mapping analog-stereo]
device-strings = front:%f hw:%f
channel-map = left,right
paths-output = analog-output analog-output-lineout analog-output-speaker analog-output-headphones analog-output-headphones-2
paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headphone-mic analog-input-headset-mic
priority = 10真正的控制在/usr/share/pulseaudio/alsa-mixer/paths/analog-output-speaker.conf之下。您可以阅读/usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common获得详细信息,在其中我们可以看到两个重要部分:
; When a device shall be muted/unmuted *all* elements listed in a path
; file with "switch = mute" will be toggled.(对这件事有一点告诫。似乎非静音并不会切换路径中的其他元素)
和
; [Element ...] # For each element that we shall control
...
; switch = ignore | mute | off | on | select # What to do with this switch: ignore it, make it follow mute status,
; # always set it to off, always to on, or make it selectable as port.
; # If set to 'select' you need to define an Option section for on
; # and off
...所以现在,如果我们想调整一个元素,使它总是打开,总是关闭,或者只是忽略静音,我们将在感兴趣的元素中设置相应的switch=值。
如果要在激活该路径时(即插入耳机时)调整耳机的行为,请更改paths/analog-output-headphones.conf中的元素值
https://stackoverflow.com/questions/66084445
复制相似问题