summaryrefslogtreecommitdiff
path: root/test/v4l2-ctl.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-06-29 00:57:21 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2006-06-29 00:57:21 +0200
commit24461bbacbddc49d1b13d6f2da9f66e13e68a680 (patch)
treed8ed9c785a26f63343e51760f293df04db22dc1c /test/v4l2-ctl.cpp
parent53ec74d7833a44ba5f7c4cf9d852b641c7510397 (diff)
downloadmediapointer-dvb-s2-24461bbacbddc49d1b13d6f2da9f66e13e68a680.tar.gz
mediapointer-dvb-s2-24461bbacbddc49d1b13d6f2da9f66e13e68a680.tar.bz2
Add support for a/v input/output selection
From: Hans Verkuil <hverkuil@xs4all.nl> Add missing audio output enumeration to v4l2-ctl. Add input/output and audio input/output selection to qv4l2. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'test/v4l2-ctl.cpp')
-rw-r--r--test/v4l2-ctl.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/v4l2-ctl.cpp b/test/v4l2-ctl.cpp
index 6e044e563..63bc3e82a 100644
--- a/test/v4l2-ctl.cpp
+++ b/test/v4l2-ctl.cpp
@@ -1099,6 +1099,19 @@ int main(int argc, char **argv)
}
}
+ if (options[OptListAudioOutputs]) {
+ struct v4l2_audioout vaudio; /* list audio outputs */
+ vaudio.index = 0;
+ printf("ioctl: VIDIOC_ENUMAUDOUT\n");
+ while (ioctl(fd, VIDIOC_ENUMAUDOUT, &vaudio) >= 0) {
+ if (vaudio.index)
+ printf("\n");
+ printf("\tOutput : %d\n", vaudio.index);
+ printf("\tName : %s\n", vaudio.name);
+ vaudio.index++;
+ }
+ }
+
if (options[OptSetAudioInput]) {
if (doioctl(fd, VIDIOC_S_AUDIO, &vaudio, "VIDIOC_S_AUDIO") == 0)
printf("Audio input set to %d\n", vaudio.index);