- 我有 SoC
orange pi 4 lts
和操作系统Ubuntu
:
orangepi@orangepi4-lts:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
orange pi 4 lts
有音频端口插孔 3.5我将带麦克风的耳机
jack 3.5 4-pin
插入orange pi 4 lts
耳机作为扬声器工作正常
但耳机的麦克风不工作
顺便说一句,机上的原生麦克风
orange pi 4 lts
也很好用音频源列表在这里:
orangepi@orangepi4-lts:~$ pacmd list-sources
2 source(s) available.
index: 0
name: <alsa_output.platform-heaadphones-sound.stereo-fallback.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 1000
volume: front-left: 54262 / 83% / -4.92 dB, front-right: 54262 / 83% / -4.92 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max rewind: 6 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
monitor_of: 0
card: 1 <alsa_card.platform-heaadphones-sound>
module: 8
properties:
device.description = "Monitor of Built-in Audio Stereo"
device.class = "monitor"
alsa.card = "0"
alsa.card_name = "rockchip-es8316c"
alsa.long_card_name = "rockchip-es8316c"
alsa.driver_name = "snd_soc_simple_card"
device.bus_path = "platform-heaadphones-sound"
sysfs.path = "/devices/platform/heaadphones-sound/sound/card0"
device.form_factor = "internal"
device.string = "0"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card"
* index: 1
name: <alsa_input.platform-heaadphones-sound.stereo-fallback>
driver: <module-alsa-card.c>
flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause: (none)
priority: 9000
volume: front-left: 38611 / 59% / -13.79 dB, front-right: 38611 / 59% / -13.79 dB
balance 0.00
base volume: 65536 / 100% / 0.00 dB
volume steps: 65537
muted: no
current latency: 2.71 ms
max rewind: 0 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 1
linked by: 1
configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
card: 1 <alsa_card.platform-heaadphones-sound>
module: 8
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ff880000.i2s-ES8316 HiFi ES8316 HiFi-0"
alsa.id = "ff880000.i2s-ES8316 HiFi ES8316 HiFi-0"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "0"
alsa.card_name = "rockchip-es8316c"
alsa.long_card_name = "rockchip-es8316c"
alsa.driver_name = "snd_soc_simple_card"
device.bus_path = "platform-heaadphones-sound"
sysfs.path = "/devices/platform/heaadphones-sound/sound/card0"
device.form_factor = "internal"
device.string = "hw:0"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "stereo-fallback"
device.profile.description = "Stereo"
device.description = "Built-in Audio Stereo"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card"
ports:
analog-input: Analog Input (priority 10000, latency offset 0 usec, available: unknown)
properties:
active port: <analog-input>
pulseaudio
版本
orangepi@orangepi4-lts:~$ pulseaudio --version
pulseaudio 15.99.1
ALSA
版本:
orangepi@orangepi4-lts:~$ cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version k5.18.5-rk3399.
亲爱的朋友们,我不太熟悉ALSA
,并pulseaudio
感谢任何帮助:)如何修复耳机的麦克风并将其用作录音设备?
答案1
最后,我通过以下方法解决了耳机麦克风的问题:
amixer cset name='Differential Mux' lin1-rin1
amixer cset name="ADC Capture Volume" 192
我在这里的手册指南中找到了以下步骤orange pi 4 lts
:
https://uelectronics.com/wp-content/uploads/2022/08/OrangePi_4_LTS_User-manual_v2.1.pdf
现在我可以通过耳机麦克风录音:
arecord -d 5 -f cd test-mic.wav