Skip to contentSkip to conversation

VIDIOC_ENUMAUDIO - please help

DISCUSSION [email protected] 1 participant 1 message Oct 17, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi,

I'm having problems with the ioctl VIDIOC_ENUMAUDIO. When i use it the application returns EINVAL. I Trying it with /dev/video0

int fd;

if ( (fd = open("/dev/video0", O_RDWR)) != -1)

{
    return -1;
}

v4l2_audio audio;
memset(&audio, 0, sizeof(audio));
audio.index = 0;

while (ioctl(fd, VIDIOC_ENUMAUDIO, &audio) != -1)
{
// some code
}

What am I doing wrong ??
Please help...

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list