From 24461bbacbddc49d1b13d6f2da9f66e13e68a680 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Thu, 29 Jun 2006 00:57:21 +0200 Subject: Add support for a/v input/output selection From: Hans Verkuil Add missing audio output enumeration to v4l2-ctl. Add input/output and audio input/output selection to qv4l2. Signed-off-by: Hans Verkuil --- test/v4l2-ctl.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/v4l2-ctl.cpp') 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); -- cgit v1.2.3