USB Microphone control shown as a Playback control in tools using alsa-lib

Đang mở
#427 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
15/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c, linux
Lĩnh vực
audio-video-rtc

Hướng nghiên cứu

The report is about one mixer control ('Auto Gain Control') being exposed as playback on a capture-only USB device. Start by reproducing with amixer scontrols and amixer sget on the attached alsa-info output, then check which direction the library assigns to the control. The payload does not name the source files involved, so locate the simple-mixer control code yourself. Done means the control is reported as capture (or direction-agnostic) for this device, with the fix confirmed on the reporter's hardware or a similar capture-only device.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I have a 'Clip-on USB microphone UM02' which functions with Alsa just fine,
except for one of its controls: 'Auto Gain Control'.

This control is shown by alsa-mixer on the playback controls 'tab', when one
would logically expect it to be on the capture controls (or perhaps
just show up if the user selects 'ALL').

On a bit of investigation, amixer lists it as follows:
Simple mixer control 'Auto Gain Control',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]

This USB sound device is only a microphone - it has no playback
capabilities. So any controls should either be 'capture' or perhaps
be seen as generic (i.e. playback/capture agnostic) for the device.

The fact that alsa libraries make this control appear to be playback
not only affects user interfaces like alsamixer, but also throws
other tools like pulseaudio/pipewire (with their 'alsa-card-profile' logic).

alsa-info output attached.
alsa_karl1.txt

Ngôn ngữ chính
C
Star
501
Fork
227
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của alsa-project/alsa-lib

Tất cả issue của alsa-project/alsa-lib

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.