diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-12-22 11:27:02 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-07 02:09:26 -0500 |
commit | 01c2819330b1e0ec6b53dcfac76ad75ff2c8ba4f (patch) | |
tree | eb38919c378681f5e8da6e3271f3d33008a6855b /drivers/media/usb/em28xx/em28xx.h | |
parent | 1f0ee65a3b6a3c78c4f6b10f8df5700a44ed3c36 (diff) |
[media] em28xx: make em28xx-video to be a separate module
Now that all analog-specific code are at em28xx-video, convert
it into an em28xx extension and load it as a separate module.
Reviewed-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Tested-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx.h')
-rw-r--r-- | drivers/media/usb/em28xx/em28xx.h | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/drivers/media/usb/em28xx/em28xx.h b/drivers/media/usb/em28xx/em28xx.h index 7ae05ebc13c1..9d6f43e4681f 100644 --- a/drivers/media/usb/em28xx/em28xx.h +++ b/drivers/media/usb/em28xx/em28xx.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #ifndef _EM28XX_H | 26 | #ifndef _EM28XX_H |
27 | #define _EM28XX_H | 27 | #define _EM28XX_H |
28 | 28 | ||
29 | #define EM28XX_VERSION "0.2.0" | 29 | #define EM28XX_VERSION "0.2.1" |
30 | 30 | ||
31 | #include <linux/workqueue.h> | 31 | #include <linux/workqueue.h> |
32 | #include <linux/i2c.h> | 32 | #include <linux/i2c.h> |
@@ -474,6 +474,7 @@ struct em28xx_eeprom { | |||
474 | #define EM28XX_AUDIO 0x10 | 474 | #define EM28XX_AUDIO 0x10 |
475 | #define EM28XX_DVB 0x20 | 475 | #define EM28XX_DVB 0x20 |
476 | #define EM28XX_RC 0x30 | 476 | #define EM28XX_RC 0x30 |
477 | #define EM28XX_V4L2 0x40 | ||
477 | 478 | ||
478 | /* em28xx resource types (used for res_get/res_lock etc */ | 479 | /* em28xx resource types (used for res_get/res_lock etc */ |
479 | #define EM28XX_RESOURCE_VIDEO 0x01 | 480 | #define EM28XX_RESOURCE_VIDEO 0x01 |
@@ -527,6 +528,7 @@ struct em28xx { | |||
527 | 528 | ||
528 | unsigned int is_em25xx:1; /* em25xx/em276x/7x/8x family bridge */ | 529 | unsigned int is_em25xx:1; /* em25xx/em276x/7x/8x family bridge */ |
529 | unsigned char disconnected:1; /* device has been diconnected */ | 530 | unsigned char disconnected:1; /* device has been diconnected */ |
531 | unsigned int has_video:1; | ||
530 | unsigned int has_audio_class:1; | 532 | unsigned int has_audio_class:1; |
531 | unsigned int has_alsa_audio:1; | 533 | unsigned int has_alsa_audio:1; |
532 | unsigned int is_audio_only:1; | 534 | unsigned int is_audio_only:1; |
@@ -723,14 +725,9 @@ int em28xx_write_ac97(struct em28xx *dev, u8 reg, u16 val); | |||
723 | int em28xx_audio_analog_set(struct em28xx *dev); | 725 | int em28xx_audio_analog_set(struct em28xx *dev); |
724 | int em28xx_audio_setup(struct em28xx *dev); | 726 | int em28xx_audio_setup(struct em28xx *dev); |
725 | 727 | ||
726 | int em28xx_colorlevels_set_default(struct em28xx *dev); | ||
727 | const struct em28xx_led *em28xx_find_led(struct em28xx *dev, | 728 | const struct em28xx_led *em28xx_find_led(struct em28xx *dev, |
728 | enum em28xx_led_role role); | 729 | enum em28xx_led_role role); |
729 | int em28xx_capture_start(struct em28xx *dev, int start); | 730 | int em28xx_capture_start(struct em28xx *dev, int start); |
730 | int em28xx_vbi_supported(struct em28xx *dev); | ||
731 | int em28xx_set_outfmt(struct em28xx *dev); | ||
732 | int em28xx_resolution_set(struct em28xx *dev); | ||
733 | int em28xx_set_alternate(struct em28xx *dev); | ||
734 | int em28xx_alloc_urbs(struct em28xx *dev, enum em28xx_mode mode, int xfer_bulk, | 731 | int em28xx_alloc_urbs(struct em28xx *dev, enum em28xx_mode mode, int xfer_bulk, |
735 | int num_bufs, int max_pkt_size, int packet_multiplier); | 732 | int num_bufs, int max_pkt_size, int packet_multiplier); |
736 | int em28xx_init_usb_xfer(struct em28xx *dev, enum em28xx_mode mode, | 733 | int em28xx_init_usb_xfer(struct em28xx *dev, enum em28xx_mode mode, |
@@ -742,31 +739,17 @@ void em28xx_uninit_usb_xfer(struct em28xx *dev, enum em28xx_mode mode); | |||
742 | void em28xx_stop_urbs(struct em28xx *dev); | 739 | void em28xx_stop_urbs(struct em28xx *dev); |
743 | int em28xx_set_mode(struct em28xx *dev, enum em28xx_mode set_mode); | 740 | int em28xx_set_mode(struct em28xx *dev, enum em28xx_mode set_mode); |
744 | int em28xx_gpio_set(struct em28xx *dev, struct em28xx_reg_seq *gpio); | 741 | int em28xx_gpio_set(struct em28xx *dev, struct em28xx_reg_seq *gpio); |
745 | void em28xx_wake_i2c(struct em28xx *dev); | ||
746 | int em28xx_register_extension(struct em28xx_ops *dev); | 742 | int em28xx_register_extension(struct em28xx_ops *dev); |
747 | void em28xx_unregister_extension(struct em28xx_ops *dev); | 743 | void em28xx_unregister_extension(struct em28xx_ops *dev); |
748 | void em28xx_init_extension(struct em28xx *dev); | 744 | void em28xx_init_extension(struct em28xx *dev); |
749 | void em28xx_close_extension(struct em28xx *dev); | 745 | void em28xx_close_extension(struct em28xx *dev); |
750 | 746 | ||
751 | /* Provided by em28xx-video.c */ | ||
752 | void em28xx_tuner_setup(struct em28xx *dev); | ||
753 | int em28xx_vb2_setup(struct em28xx *dev); | ||
754 | int em28xx_register_analog_devices(struct em28xx *dev); | ||
755 | void em28xx_release_analog_resources(struct em28xx *dev); | ||
756 | void em28xx_ctrl_notify(struct v4l2_ctrl *ctrl, void *priv); | ||
757 | int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count); | ||
758 | int em28xx_stop_vbi_streaming(struct vb2_queue *vq); | ||
759 | extern const struct v4l2_ctrl_ops em28xx_ctrl_ops; | ||
760 | |||
761 | /* Provided by em28xx-cards.c */ | 747 | /* Provided by em28xx-cards.c */ |
762 | extern struct em28xx_board em28xx_boards[]; | 748 | extern struct em28xx_board em28xx_boards[]; |
763 | extern struct usb_device_id em28xx_id_table[]; | 749 | extern struct usb_device_id em28xx_id_table[]; |
764 | int em28xx_tuner_callback(void *ptr, int component, int command, int arg); | 750 | int em28xx_tuner_callback(void *ptr, int component, int command, int arg); |
765 | void em28xx_release_resources(struct em28xx *dev); | 751 | void em28xx_release_resources(struct em28xx *dev); |
766 | 752 | ||
767 | /* Provided by em28xx-vbi.c */ | ||
768 | extern struct vb2_ops em28xx_vbi_qops; | ||
769 | |||
770 | /* Provided by em28xx-camera.c */ | 753 | /* Provided by em28xx-camera.c */ |
771 | int em28xx_detect_sensor(struct em28xx *dev); | 754 | int em28xx_detect_sensor(struct em28xx *dev); |
772 | int em28xx_init_camera(struct em28xx *dev); | 755 | int em28xx_init_camera(struct em28xx *dev); |