Skip to content

qv4l2: add ALSA audio playback

Bård Eirik Winther linux-media 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v15 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Fixed the A-V average measuring
- ALSA is always compiled in but uses include guards from config.h instead

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5qv4l2: alter capture menuutils/qv4l2/qv4l2.cpp+1 -20 replies
2/5qv4l2: new ALSA stream source codeutils/qv4l2/alsa_stream.c utils/qv4l2/alsa_stream.h+650 -00 replies
3/5qv4l2: fix a bug where the alsa thread never stopsutils/qv4l2/alsa_stream.c+1 -10 replies
4/5qv4l2: add ALSA stream to qv4l2configure.ac utils/qv4l2/Makefile.am utils/qv4l2/alsa_stream.c +1 more+47 -90 replies
5/5qv4l2: add ALSA audio playbackutils/qv4l2/general-tab.cpp utils/qv4l2/general-tab.h utils/qv4l2/qv4l2.cpp +1 more+480 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/5] qv4l2: add ALSA audio playback

The qv4l2 test utility now supports ALSA playback of audio. This allows for PCM playback during capture for supported devices.

This requires at least the OpenGL patch series' "qv4l2: add Capture menu" patch. A device must be ALSA compatible in order to be used with the qv4l2. The ALSA implementation requires ALSA on the system. If ALSA support is not present, then this feature will not be compiled in.

Changelog v2:
- Fixed the A-V average measuring
- ALSA is always compiled in but uses include guards from config.h instead

Some of the changes/improvements:
- Capturing will also capture audio
- Added audio controls to the capture menu
- Selectable audio devices (can also have no audio)
- Automatically find corresponding audio source for a given video device if applicable
- Supports both radio, video and audio devices that uses PCM.
- Bug fixes

Known issues:
- Sometimes when generating the audio in and out device lists,
it may take some time for the combo boxes to render correctly.
- If the audio causes underruns/overruns, try increase the audio buffer.
- Not all audio input/output combination will work, depending on system and devices.
- The A-V difference in ms is not always correct, but should still help as an indicator