RE: No audio support in struct v4l2_subdev_format

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

 



Hi Hans,


> int my_subdev_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh,
> struct v4l2_event_subscription *sub)
> {
> switch (sub->type) {
> case V4L2_EVENT_CTRL:
> return v4l2_ctrl_subdev_subscribe_event(sd, fh, sub);
> case V4L2_EVENT_SOURCE_CHANGE:
> return v4l2_src_change_event_subdev_subscribe(sd, fh, sub);
> ...
> default:
> return -EINVAL;
> }
The state machine is already ON, whether the user does a subdev open or not.

So, the events are generated anyways.

I guess it's not too weird as the v4l2_event_queue_fh() requires fh, and it seems okay to get hold off fh by using these ops.


Regards,

Divneil 		 	   		  --
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