diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-07-16 07:53:36 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-04 17:33:46 -0300 |
commit | 668cb00ed50688190417ae95cc2d2bf22ec285d2 (patch) | |
tree | f194bc76d447cfd1e3d9d653efdc849e1c8c96bf /drivers/media/usb/tlg2300/pd-main.c | |
parent | 173fdb8aff63a4275fd5f51742b4e13bd7680ab8 (diff) |
[media] tlg2300: switch to v4l2_fh
This switch to v4l2_fh resolves the last v4l2_compliance issues with respect
to control events and priority handling.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/tlg2300/pd-main.c')
-rw-r--r-- | drivers/media/usb/tlg2300/pd-main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/usb/tlg2300/pd-main.c b/drivers/media/usb/tlg2300/pd-main.c index 247d6ac99947..e07e4c699cc2 100644 --- a/drivers/media/usb/tlg2300/pd-main.c +++ b/drivers/media/usb/tlg2300/pd-main.c @@ -267,7 +267,8 @@ static inline void set_map_flags(struct poseidon *pd, struct usb_device *udev) static inline int get_autopm_ref(struct poseidon *pd) { return pd->video_data.users + pd->vbi_data.users + pd->audio.users - + atomic_read(&pd->dvb_data.users) + pd->radio_data.users; + + atomic_read(&pd->dvb_data.users) + + !list_empty(&pd->radio_data.fm_dev.fh_list); } /* fixup something for poseidon */ |