Re: UVC and V4L2_CAP_AUDIO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hans,

On Thursday 25 July 2013 11:03:13 Hans Verkuil wrote:
> Hi Laurent,
> 
> While working on adding alsa streaming support to qv4l2 we noticed that uvc
> doesn't set this capability telling userspace that the webcam supports
> audio.
> 
> Is it possible at all in the uvc driver to determine whether or not a uvc
> webcam has a microphone?

Not without dirty hacks. The UVC interfaces don't report whether the device 
has an audio function, the driver would need to look at all the interfaces of 
the parent USB device and find out whether they match one of the USB audio 
drivers. That's not something I would be inclined to merge in the uvcvideo 
driver.

> If not, then it looks like the only way to find the associated alsa device
> is to use libmedia_dev (or its replacement, although I wonder if anyone is
> still working on that).

I need to post the code I have. I'll try to do that next week.

> And in particular, the presence of CAP_AUDIO cannot be used to determine
> whether the device has audio capabilities, it can only be used to determine
> if the V4L2 audio ioctls are supported. That would have to be clarified in
> the spec.

The V4L2 audio ioctls are definitely not supported by the uvcvideo driver :-)

-- 
Regards,

Laurent Pinchart

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux