使用 alsa/amixer(/jack?)、SB Audigy2 卡在 Debian 上录制和监控 Line In

使用 alsa/amixer(/jack?)、SB Audigy2 卡在 Debian 上录制和监控 Line In

注意!我放弃解决这个问题(至少是暂时的)安装了另一个 Audigy 2 - 带有外部单元。3 个输入中有 2 个可以工作,但它们的名称不正确并且级别有问题。

我在驱动程序页面的评论中读到过类似的问题。设置正确的模块参数可能会有所帮助 - 但很难选择正确的参数,而且我还没有找到相关的最新 alsa 文档。

可以一个一个地尝试,但是因为我购买了二手 TASCAM USB 音频接口,所以现在就这样做。

我无法配置 Audigy2 卡以使用 Line In 进行监控和录制

以前我只使用内置声音(HDA Intel),配置它相对简单:有一个“输入源”控制,可以在其中选择线路、带有 cvolume 的捕获控制 - 用于录制,以及带有 pvolume 功能的线路控制 - 用于监控。

现在我正在尝试使用专用卡:SB Audigy2 Platinum。

我正在使用 Debian(嗯,Devuan),并希望尽可能保持其简单(即命令行,没有 PulseAudio 等)

因此,对于 amixer/alsamixer 中的 Audigy2: - 没有输入源混音器控制 - 只有这个“线路”控制,仅具有捕获功能(cvolume、cswitch、cswitch-joined)

线路已打开,但没有任何内容通过它录制。有一个“高清源捕获”控件,但没有“线路”选项,因此它可能无关紧要。

我不知道该如何监控 Line In。我想也许可以通过使用 Jack 将 Line In 路由到播放?

jack_lsp 返回:

system:capture_1
system:capture_2
system:playback_1
system:playback_2

所以我尝试了这个:

​jack_connect system:capture_1 system:playback_1

无济于事(虽然不是很确定,因为录音也不起作用)(抱歉,如果这个命令没有意义 - 关于 Jack 的维基百科看起来更像是笔记的集合,而不是详细的规格/参考,如果有人可以推荐一个好的,那就太好了)

为了测试目的,我尝试在 Reaper 中录制(使用内置卡时可以正常录制)。

它拒绝通过 ALSA 直接与 Audigy2 一起工作(“打开音频硬件时出错:ALSA:设置输入设备周期计数时出错”),但在使用 JACK 时可以工作。

或者确切地说,播放可以,但录音(或至少从 LINE IN 录音)不可以。

当选择 system:capture_1 作为音轨的输入时,级别不会显示任何内容。虽然录制播放(使用 PCM 捕获控制)确实有效。

完整的 amixer 输出:

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined cvolume cswitch cswitch-joined
  Playback channels: Mono
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 100 Capture 0 - 31
  Mono: Playback 100 [100%] [0.00dB]
  Front Left: Capture 31 [100%] [0.00dB] [off]
  Front Right: Capture 31 [100%] [0.00dB] [off]
Simple mixer control 'Tone',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [on]
  Front Right: Playback [on]
Simple mixer control 'Bass',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 40
  Front Left: 20 [50%]
  Front Right: 20 [50%]
Simple mixer control 'Treble',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 40
  Front Left: 20 [50%]
  Front Right: 20 [50%]
Simple mixer control '3D Control Sigmatel - Depth',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 0 - 3
  Mono: Playback 0 [0%]
Simple mixer control 'PCM',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 100
  Front Left: Capture 80 [80%] [-8.00dB]
  Front Right: Capture 80 [80%] [-8.00dB]
Simple mixer control 'PCM Center',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 100 [100%] [0.00dB]
Simple mixer control 'PCM Front',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 100
  Mono:
  Front Left: Playback 100 [100%] [0.00dB]
  Front Right: Playback 100 [100%] [0.00dB]
Simple mixer control 'PCM LFE',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 100 [100%] [0.00dB]
Simple mixer control 'PCM Side',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 100
  Mono:
  Front Left: Playback 100 [100%] [0.00dB]
  Front Right: Playback 100 [100%] [0.00dB]
Simple mixer control 'PCM Surround',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 100
  Mono:
  Front Left: Playback 100 [100%] [0.00dB]
  Front Right: Playback 100 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 100
  Mono:
  Front Left: Playback 100 [100%] [0.00dB]
  Front Right: Playback 100 [100%] [0.00dB]
Simple mixer control 'Surround',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 100
  Mono:
  Front Left: Playback 100 [100%] [0.00dB]
  Front Right: Playback 100 [100%] [0.00dB]
Simple mixer control 'Surround Phase Inversion',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 100 [100%] [0.00dB]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 100 [100%] [0.00dB]
Simple mixer control 'Side',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 100
  Mono:
  Front Left: Playback 0 [0%] [-99999.99dB]
  Front Right: Playback 0 [0%] [-99999.99dB]
Simple mixer control 'Synth',0
  Capabilities: pvolume cvolume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 100 Capture 0 - 100
  Front Left: Playback 50 [50%] [-20.00dB] Capture 80 [80%] [-8.00dB]
  Front Right: Playback 50 [50%] [-20.00dB] Capture 80 [80%] [-8.00dB]
Simple mixer control 'Wave',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 100
  Mono:
  Front Left: Playback 100 [100%] [0.00dB]
  Front Right: Playback 100 [100%] [0.00dB]
Simple mixer control 'Line',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 31 [100%] [12.00dB] [on]
  Front Right: Capture 31 [100%] [12.00dB] [on]
Simple mixer control 'CD',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 26 [84%] [4.50dB] [off]
  Front Right: Capture 26 [84%] [4.50dB] [off]
Simple mixer control 'Mic',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 31
  Mono: Capture 26 [84%] [4.50dB] [off]
Simple mixer control 'Mic Boost (+20dB)',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Mic Extra Boost',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Mic Select',0
  Capabilities: enum
  Items: 'Mic1' 'Mic2'
  Item0: 'Mic1'
Simple mixer control 'Video',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 0 [0%] [-34.50dB] [off]
  Front Right: Capture 0 [0%] [-34.50dB] [off]
Simple mixer control 'Phone',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 31
  Mono: Capture 0 [0%] [-34.50dB] [off]
Simple mixer control 'Phone Output',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 0 [0%] [-46.50dB] [on]
Simple mixer control 'IEC958 Optical',0
  Capabilities: pvolume cvolume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 100 Capture 0 - 100
  Front Left: Playback 0 [0%] [-99999.99dB] Capture 0 [0%] [-99999.99dB]
  Front Right: Playback 0 [0%] [-99999.99dB] Capture 0 [0%] [-99999.99dB]
Simple mixer control 'IEC958 Optical Raw',0
  Capabilities: pswitch
  Playback channels: Front Left - Front Right
  Mono:
  Front Left: Playback [off]
  Front Right: Playback [off]
Simple mixer control 'Beep',0
  Capabilities: cvolume cvolume-joined cswitch cswitch-joined
  Capture channels: Mono
  Limits: Capture 0 - 15
  Mono: Capture 0 [0%] [-45.00dB] [off]
Simple mixer control 'Aux',0
  Capabilities: cvolume cswitch cswitch-joined
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 31
  Front Left: Capture 0 [0%] [-34.50dB] [off]
  Front Right: Capture 0 [0%] [-34.50dB] [off]
Simple mixer control 'Aux2',0
  Capabilities: pvolume cvolume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 100 Capture 0 - 100
  Front Left: Playback 0 [0%] [-99999.99dB] Capture 0 [0%] [-99999.99dB]
  Front Right: Playback 0 [0%] [-99999.99dB] Capture 0 [0%] [-99999.99dB]
Simple mixer control 'Mono Output Select',0
  Capabilities: enum
  Items: 'Mix' 'Mic'
  Item0: 'Mic'
Simple mixer control 'AMic',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 100
  Mono:
  Front Left: Playback 36 [36%] [-25.60dB]
  Front Right: Playback 36 [36%] [-25.60dB]
Simple mixer control 'Analog Mix',0
  Capabilities: pvolume cvolume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 100 Capture 0 - 100
  Front Left: Playback 0 [0%] [-99999.99dB] Capture 73 [73%] [-10.80dB]
  Front Right: Playback 0 [0%] [-99999.99dB] Capture 73 [73%] [-10.80dB]
Simple mixer control 'Audigy Analog/Digital Output Jack',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Audigy CD',0
  Capabilities: pvolume cvolume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 100 Capture 0 - 100
  Front Left: Playback 0 [0%] [-99999.99dB] Capture 0 [0%] [-99999.99dB]
  Front Right: Playback 0 [0%] [-99999.99dB] Capture 0 [0%] [-99999.99dB]
Simple mixer control 'External Amplifier',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'HD Analog Center/LFE',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 207 [81%] [0.00dB]
  Front Right: Playback 207 [81%] [0.00dB]
Simple mixer control 'HD Analog Front',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 207 [81%] [0.00dB]
  Front Right: Playback 207 [81%] [0.00dB]
Simple mixer control 'HD Analog Rear',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 207 [81%] [0.00dB]
  Front Right: Playback 207 [81%] [0.00dB]
Simple mixer control 'HD Analog Side',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 207 [81%] [0.00dB]
  Front Right: Playback 207 [81%] [0.00dB]
Simple mixer control 'HD SPDIF Center/LFE',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 207 [81%] [0.00dB]
  Front Right: Playback 207 [81%] [0.00dB]
Simple mixer control 'HD SPDIF Front',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 207 [81%] [0.00dB]
  Front Right: Playback 207 [81%] [0.00dB]
Simple mixer control 'HD SPDIF Rear',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 207 [81%] [0.00dB]
  Front Right: Playback 207 [81%] [0.00dB]
Simple mixer control 'HD SPDIF Side',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 207 [81%] [0.00dB]
  Front Right: Playback 207 [81%] [0.00dB]
Simple mixer control 'HD channel Capture',0
  Capabilities: enum
  Items: '0' '1' '2' '3'
  Item0: '1'
Simple mixer control 'HD source Capture',0
  Capabilities: enum
  Items: 'SPDIF' 'I2S' 'SRC48' 'SRCMulti_SPDIF' 'SRCMulti_I2S' 'CDIF' 'FX' 'AC97'
  Item0: 'SPDIF'
Simple mixer control 'Sigmatel 4-Speaker Stereo',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]

或者 alsamixer 截图:

捕获控件

捕获控件第 1 页 捕获控制页面 2

播放控制: 播放控制页面 1 播放控制第 2 页 播放控制 第 3 页

提前感谢任何建议

答案1

部分答案:

首先尝试让一切在 ALSA 中运行;Jack 只是 ALSA 的一个附加层。

您可以使用

arecord -L

显示所有 ALSA 输入设备;根据您的 Jack 信息,您的 Audigy 可能有两个(代表硬件中的两个 ADC 转换器)。

您可以使用

sox -t alsa plughw:0,0 -n

获取输入设备的连续级别显示。plughw:0,0表示卡 0、设备 0,带有默认 ALSA 插件(采样率转换器等)。确切值取决于的结果arecord -L

因此,请对每个输入设备尝试此操作,同时alsamixer在另一个终端中打开。然后,取消静音每一个混音器(它应该显示OO而不是MM)可以以某种方式与声音输入相关,移动到某个中等水平,看看会发生什么,以及您是否可以弄清楚它的作用。

根据我的经验,这是“无法录制声音”的首要问题 - 某些 ALSA 混音器已关闭或级别错误。

我尝试在 Google 上搜索一些有关 Audigy 2 硬件的信息,但没有找到任何信息,所以如果你碰巧有一张混音器连接图,那也会有所帮助。

“打开音频硬件时出错:ALSA:设置输入设备周期计数错误”)

无关,假设“设备周期数”是采样率,您要么没有使用 ALSA 采样率转换器插件,要么 Reaper 有其他与硬件不相符的地方。但我对 Reaper 不熟悉。

但当使用 JACK 时可以工作。

正如我所写的,首先尝试不使用杰克。

播放某些内容时确实会显示某些内容

有混频器将声音输出的回环添加到声音输入。尝试使用上述方法识别并禁用它们。aplay如果 Reaper 不工作,您可以使用 WAV 文件。

答案2

PCI 卡背面的 Line-In 端口无法单独录制,这是硬件限制 — 请参阅“如何在 Audigy 和 Audigy 2 上录制”部分emu10k1 驱动程序页面(整个页面都值得一读)。

正如所示,可以记录所有模拟源的模拟混合。

一些 Audigy 变体具有5¼”接线盒带有额外的输入端口;这些端口可以作为捕获端口正常工作,在与 Jack 交互时应优先使用。您的帖子没有表明您是否拥有一个;如果有,我建议您忘记 PCI 卡的后端口用于捕获。

附注:我曾经拥有这款卡的一个变体(Audigy2 ZS),带有接线盒,我很喜欢它,但不幸的是,多年来出现了爆音和噼啪声;不确定是否所有的 Audigy2 都受到影响,但要知道,如果你的卡也遇到这种情况,焊接电解电容器可能会保存您的卡。

相关内容