qv4l2: fix audio looping
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 10 Aug 2014 11:02:07 +0000 (13:02 +0200)
committerHans Verkuil <hans.verkuil@cisco.com>
Sun, 10 Aug 2014 11:02:07 +0000 (13:02 +0200)
commitfb1334e60cf2541c630e15c4883cd0eabf0581b5
tree1d321ac922f77145e5d941ba90e666b7831641c4
parentfa4114409c0c973802a35f87ca8c85a47841fee7
qv4l2: fix audio looping

The audio loopback never really works well with qv4l2. After comparing it
with the xawtv3 implementation it became clear that the core problem was
that the wrong alsa device was chosen as the capture device.

The alsa handling has been simplified and only 'hw' devices are shown as
this is what the alsa loop code wants. The "Show All Audio Devices" menu
option has been removed.

In addition, a bug was fixed for radio devices: no associated alsa device
was found and the 'Play' button was disabled, so the audio loop was never
started.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/qv4l2/general-tab.cpp
utils/qv4l2/general-tab.h
utils/qv4l2/qv4l2.cpp
utils/qv4l2/qv4l2.h