首先总结下这段时间接触音频,音频在linux下分三种结构,HSP,ALSA和A2DP。HSP(handset profile)是单声道的,ALSA和A2DP都是双声道,但A2DP比ALSA更容易控制。
pavucontrol:Ubuntu Unity环境提供的音频控制有很多需要改进的地方。如果你从不使用USB音频设备,也不想从Skype这样的应用切换到另一个录音设备的话,那没问题。但还是推荐pavucontrol,在进行Skype呼叫时,能轻松从网络摄像头麦克风切换到USB耳机。它也能轻松排除是否由于Ubuntu安装造成的音频漏洞。
使用pacmd查看了一下声卡(list-cards),惊讶的发现,其实声卡还存在一堆的profile
profiles:
input:analog-stereo: 模拟立体声 Input (priority 60, available: unknown)
output:analog-stereo: 模拟立体声 Output (priority 6000, available: unknown)
output:analog-stereo+input:analog-stereo: 模拟立体声双工 (priority 6060, available: unknown)
output:analog-surround-21: 模拟环绕 2.1 Output (priority 800, available: unknown)
output:analog-surround-21+input:analog-stereo: 模拟环绕 2.1 Output + 模拟立体声 Input (priority 860, available: unknown)
output:analog-surround-40: 模拟环绕 4.0 Output (priority 700, available: unknown)
output:analog-surround-40+input:analog-stereo: 模拟环绕 4.0 Output + 模拟立体声 Input (priority 760, available: unknown)
output:analog-surround-41: 模拟环绕 4.1 Output (priority 800, available: unknown)
output:analog-surround-41+input:analog-stereo: 模拟环绕 4.1 Output + 模拟立体声 Input (priority 860, available: unknown)
output:analog-surround-50: 模拟环绕 5.0 Output (priority 700, available: unknown)
output:analog-surround-50+input:analog-stereo: 模拟环绕 5.0 Output + 模拟立体声 Input (priority 760, available: unknown)
output:analog-surround-51: 模拟环绕 5.1 Output (priority 800, available: unknown)
output:analog-surround-51+input:analog-stereo: 模拟环绕 5.1 Output + 模拟立体声 Input (priority 860, available: unknown)
output:iec958-stereo: 数字立体声(IEC958) Output (priority 5500, available: unknown)
output:iec958-stereo+input:analog-stereo: 数字立体声(IEC958) Output + 模拟立体声 Input (priority 5560, available: unknown)
off: 关闭 (priority 0, available: unknown)
下面的问题似乎很简单,就是激活相应的profile就可以了!pacmd的set-card-profile用起来有些罗嗦,于是装起了pavucontrol,图形化选择profile,搞定!