![Infrasonic Quartet 和 ALSA 的问题](https://linux22.com/image/842021/Infrasonic%20Quartet%20%E5%92%8C%20ALSA%20%E7%9A%84%E9%97%AE%E9%A2%98.png)
我有次声四重奏PCI 声卡并使用 Ubuntu 13.04。该卡有 2 个模拟立体声输出。我使用这两个输出将耳机和扬声器相互连接。但我突然无法使用 alsamixer 管理输出:我只能静音输出 1/2。无论我在 Alsamixer 中更改什么,输出 3/4 始终处于“开启”状态。这是我的 /proc/asound/cards:
0 [HDMI ]: HDA-Intel - HDA ATI HDMI
HDA ATI HDMI at 0xf7e60000 irq 45
1 [Quartet ]: ICE1724 - Infrasonic Quartet
Infrasonic Quartet at 0xc080, irq 18
有人能告诉我如何让 alsamixer 管理两个输出吗?
更新。以下是amixer -c 1 内容输出:
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
Playback channels: Mono
Limits: Playback 0 - 255
Mono: Playback 249 [98%] [61.00dB] [on]
Simple mixer control 'PCM 1/2',0
Capabilities: pvolume cvolume penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 255 Capture 0 - 164
Front Left: Playback 165 [65%] [-3.78dB] Capture 155 [95%] [14.00dB]
Front Right: Playback 165 [65%] [-3.78dB] Capture 155 [95%] [14.00dB]
Simple mixer control 'PCM 3/4',0
Capabilities: pvolume cvolume penum
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 255 Capture 0 - 164
Front Left: Playback 169 [66%] [-3.57dB] Capture 155 [95%] [14.00dB]
Front Right: Playback 169 [66%] [-3.57dB] Capture 155 [95%] [14.00dB]
Simple mixer control 'PCM In 1/2',0
Capabilities: cenum
Items: 'An In 1/2' 'An In 3/4'
Item0: 'An In 1/2'
Simple mixer control 'PCM In 3/4',0
Capabilities: cenum
Items: 'An In 3/4' 'IEC958 In'
Item0: 'An In 3/4'
Simple mixer control 'IEC958',0
Capabilities: penum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'IEC958 Output',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'IEC958',1
Capabilities: penum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'Analog In 1/2',0
Capabilities: cenum
Items: 'Line In 1/2' 'Mic' 'Mic + Low-cut'
Item0: 'Line In 1/2'
Simple mixer control 'Analog In 1/2 to Monitor 1/2',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Analog In 1/2 to Monitor 3/4',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Analog In 3/4',0
Capabilities: cenum
Items: 'Line In 3/4' 'Hi-Z'
Item0: 'Line In 3/4'
Simple mixer control 'Analog In 3/4 to Monitor 1/2',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Analog In 3/4 to Monitor 3/4',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Coax Output Source',0
Capabilities: enum
Items: 'IEC958' 'I2S'
Item0: 'IEC958'
Simple mixer control 'H/W',0
Capabilities: penum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'H/W',1
Capabilities: penum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'Multi Track Internal Clock',0
Capabilities: enum
Items: '44100' '48000' '88200' '96000' '176400' '192000' 'IEC958 In' 'Word Clock 1xFS' 'Word Clock 256xFS'
Item0: '44100'
Simple mixer control 'Multi Track Rate Locking',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Multi Track Rate Reset',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Output 1/2 to Monitor 3/4',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Output 3/4 to Monitor 1/2',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Phantom Power',0
Capabilities: pswitch pswitch-joined penum
Playback channels: Mono
Mono: Playback [off]
有人能解释一下这个输出是什么意思吗?为什么播放通道是单声道的?
这是我的 alsamixer 截图:
输出 3/4 已关闭,但两个输出现在都在播放声音。我无法将其关闭。
答案1
ICE1724 芯片最初是为大型多通道卡设计的,其中所有输入和输出同时使用,因此不可能将输出用作完全独立的设备。
描述Mono
的是混音器控制本身,而不是音频设备。
alsamixer
显示了硬件实现的混频器控制。Windows
驱动程序通过在驱动程序中执行额外的软件处理步骤来实现额外的控制。在 Linux 中,可以使用某些音频服务器(如 PulseAudio)执行相同的操作,如中所述前/后分离:
将扬声器连接到前置模拟输出,将耳机连接到后置输出。将前置/后置分离到单独的接收器会很有用。添加到
/etc/pulse/default.pa
:load-module module-remap-sink sink_name=speakers remix=no master=alsa_output.pci-0000_05_00.0.analog-surround-40 channels=2 master_channel_map=front-left,front-right channel_map=front-left,front-right load-module module-remap-sink sink_name=headphones remix=no master=alsa_output.pci-0000_05_00.0.analog-surround-40 channels=2 master_channel_map=rear-left,rear-right channel_map=front-left,front-right
(替换
alsa_output.pci-0000_05_00.0.analog-surround-40
显示的声卡名称pacmd list-sinks
)
答案2
问题已解决。感谢CL。我尝试使用 PulseAudio 来解决这个问题。首先,我安装了pavucontrol
。然后我制作了~/.asoundrc
(Alsa 配置文件)并将以下内容粘贴到文件中:
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
它使 PulseAudio 成为默认使用。之后我可以用 分别管理声卡的两个输出pavucontrol
。现在这是可能的。最后,输出 1/2 被命名为模拟输出,输出 3/4 - 音量控制中的数字输出。我使用了 https://wiki.archlinux.org/index.php/PulseAudio/Examples#Advanced_ALSA_Configuration了解详情。