/kernel/linux/linux-5.10/drivers/media/usb/em28xx/ |
H A D | Makefile | 2 em28xx-y += em28xx-core.o em28xx-i2c.o em28xx-cards.o em28xx-camera.o 4 em28xx-v4l-objs := em28xx-video.o em28xx-vbi.o 5 em28xx-alsa-objs := em28xx [all...] |
H A D | em28xx.h | 3 * em28xx.h - driver for Empia EM2800/EM2820/2840 USB video capture devices 29 #define DRIVER_DESC "Empia em28xx device driver" 46 #include "em28xx-reg.h" 171 /* maximum number of em28xx boards */ 172 #define EM28XX_MAXBOARDS DVB_MAX_ADAPTERS /* All adapters could be em28xx */ 183 /* max number of I2C buses on em28xx devices */ 218 struct em28xx; 251 int (*urb_data_copy)(struct em28xx *dev, struct urb *urb); 259 * @reg: em28xx register value to set it 337 * em28xx_amux - describes the type of audio input used by em28xx 646 struct em28xx { global() struct [all...] |
H A D | em28xx-video.c | 3 // em28xx-video.c - driver for Empia EM2800/EM2820/2840 USB 25 #include "em28xx.h" 38 #include "em28xx-v4l.h" 136 static inline unsigned int norm_maxw(struct em28xx *dev) in norm_maxw() 149 static inline unsigned int norm_maxh(struct em28xx *dev) in norm_maxh() 162 static int em28xx_vbi_supported(struct em28xx *dev) in em28xx_vbi_supported() 177 /* Version of em28xx that does not support VBI */ in em28xx_vbi_supported() 185 static void em28xx_wake_i2c(struct em28xx *dev) in em28xx_wake_i2c() 194 static int em28xx_colorlevels_set_default(struct em28xx *dev) in em28xx_colorlevels_set_default() 212 static int em28xx_set_outfmt(struct em28xx *de [all...] |
H A D | em28xx-core.c | 3 // em28xx-core.c - driver for Empia EM2800/EM2820/2840 USB video capture devices 21 #include "em28xx.h" 76 int em28xx_read_reg_req_len(struct em28xx *dev, u8 req, u16 reg, in em28xx_read_reg_req_len() 122 int em28xx_read_reg_req(struct em28xx *dev, u8 req, u16 reg) in em28xx_read_reg_req() 134 int em28xx_read_reg(struct em28xx *dev, u16 reg) in em28xx_read_reg() 144 int em28xx_write_regs_req(struct em28xx *dev, u8 req, u16 reg, char *buf, in em28xx_write_regs_req() 187 int em28xx_write_regs(struct em28xx *dev, u16 reg, char *buf, int len) in em28xx_write_regs() 194 int em28xx_write_reg(struct em28xx *dev, u16 reg, u8 val) in em28xx_write_reg() 205 int em28xx_write_reg_bits(struct em28xx *dev, u16 reg, u8 val, in em28xx_write_reg_bits() 225 int em28xx_toggle_reg_bits(struct em28xx *de [all...] |
H A D | em28xx-audio.c | 24 #include "em28xx.h" 59 static int em28xx_deinit_isoc_audio(struct em28xx *dev) in em28xx_deinit_isoc_audio() 78 struct em28xx *dev = urb->context; in em28xx_audio_isocirq() 169 static int em28xx_init_audio_isoc(struct em28xx *dev) in em28xx_init_audio_isoc() 228 struct em28xx *dev = snd_pcm_substream_chip(substream); in snd_em28xx_capture_open() 233 pr_err("em28xx-audio: BUG: em28xx can't find device struct. Can't proceed with open\n"); in snd_em28xx_capture_open() 302 "Error while configuring em28xx mixer\n"); in snd_em28xx_capture_open() 308 struct em28xx *dev = snd_pcm_substream_chip(substream); in snd_em28xx_pcm_close() 329 struct em28xx *de in snd_em28xx_prepare() [all...] |
H A D | em28xx-input.c | 3 // handle em28xx IR remotes via linux kernel input layer. 20 #include "em28xx.h" 39 #define MODULE_NAME "em28xx" 48 * Polling structure used by em28xx IR's 60 struct em28xx *dev; 207 struct em28xx *dev = ir->dev; in default_polling_getkey() 250 struct em28xx *dev = ir->dev; in em2874_polling_getkey() 300 * Polling code for em28xx 397 struct em28xx *dev = ir->dev; in em2860_ir_change_protocol() 425 struct em28xx *de in em2874_ir_change_protocol() [all...] |
H A D | em28xx-i2c.c | 3 // em28xx-i2c.c - driver for Empia EM2800/EM2820/2840 USB video capture devices 21 #include "em28xx.h" 60 static int em28xx_i2c_timeout(struct em28xx *dev) in em28xx_i2c_timeout() 83 static int em2800_i2c_send_bytes(struct em28xx *dev, u8 addr, u8 *buf, u16 len) in em2800_i2c_send_bytes() 135 static int em2800_i2c_recv_bytes(struct em28xx *dev, u8 addr, u8 *buf, u16 len) in em2800_i2c_recv_bytes() 195 static int em2800_i2c_check_for_device(struct em28xx *dev, u8 addr) in em2800_i2c_check_for_device() 209 static int em28xx_i2c_send_bytes(struct em28xx *dev, u16 addr, u8 *buf, in em28xx_i2c_send_bytes() 279 static int em28xx_i2c_recv_bytes(struct em28xx *dev, u16 addr, u8 *buf, u16 len) in em28xx_i2c_recv_bytes() 341 static int em28xx_i2c_check_for_device(struct em28xx *dev, u16 addr) in em28xx_i2c_check_for_device() 356 static int em25xx_bus_B_send_bytes(struct em28xx *de [all...] |
H A D | em28xx-vbi.c | 3 // em28xx-vbi.c - VBI driver for em28xx 19 #include "em28xx.h" 27 #include "em28xx-v4l.h" 35 struct em28xx *dev = vb2_get_drv_priv(vq); in vbi_queue_setup() 56 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare() 77 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
|
H A D | em28xx-camera.c | 3 // em28xx-camera.c - driver for Empia EM25xx/27xx/28xx USB video capture devices 18 #include "em28xx.h" 41 static int em28xx_initialize_mt9m111(struct em28xx *dev) in em28xx_initialize_mt9m111() 61 static int em28xx_initialize_mt9m001(struct em28xx *dev) in em28xx_initialize_mt9m001() 92 static int em28xx_probe_sensor_micron(struct em28xx *dev) in em28xx_probe_sensor_micron() 177 static int em28xx_probe_sensor_omnivision(struct em28xx *dev) in em28xx_probe_sensor_omnivision() 287 int em28xx_detect_sensor(struct em28xx *dev) in em28xx_detect_sensor() 310 int em28xx_init_camera(struct em28xx *dev) in em28xx_init_camera()
|
H A D | em28xx-dvb.c | 3 // DVB device driver for em28xx 24 #include "em28xx.h" 108 static inline void print_err_status(struct em28xx *dev, in print_err_status() 147 static inline int em28xx_dvb_urb_data_copy(struct em28xx *dev, struct urb *urb) in em28xx_dvb_urb_data_copy() 201 struct em28xx *dev = i2c_bus->dev; in em28xx_start_streaming() 244 struct em28xx *dev = i2c_bus->dev; in em28xx_stop_streaming() 294 struct em28xx *dev = i2c_bus->dev; in em28xx_dvb_bus_ctrl() 470 static void hauppauge_hvr930c_init(struct em28xx *dev) in hauppauge_hvr930c_init() 537 static void terratec_h5_init(struct em28xx *dev) in terratec_h5_init() 586 static void terratec_htc_stick_init(struct em28xx *de [all...] |
H A D | em28xx-cards.c | 3 // em28xx-cards.c - driver for Empia EM2800/EM2820/2840 USB 22 #include "em28xx.h" 39 #define DRIVER_NAME "em28xx" 72 static void em28xx_pre_card_setup(struct em28xx *dev); 2796 struct em28xx *dev = i2c_bus->dev; in em28xx_tuner_callback() 2811 static inline void em28xx_set_xclk_i2c_speed(struct em28xx *dev) in em28xx_set_xclk_i2c_speed() 2837 static inline void em28xx_set_model(struct em28xx *dev) in em28xx_set_model() 2855 static int em28xx_wait_until_ac97_features_equals(struct em28xx *dev, in em28xx_wait_until_ac97_features_equals() 2884 static void em28xx_pre_card_setup(struct em28xx *dev) in em28xx_pre_card_setup() 3008 static int em28xx_hint_board(struct em28xx *de [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/em28xx/ |
H A D | Makefile | 2 em28xx-y += em28xx-core.o em28xx-i2c.o em28xx-cards.o em28xx-camera.o 4 em28xx-v4l-objs := em28xx-video.o em28xx-vbi.o 5 em28xx-alsa-objs := em28xx [all...] |
H A D | em28xx.h | 3 * em28xx.h - driver for Empia EM2800/EM2820/2840 USB video capture devices 19 #define DRIVER_DESC "Empia em28xx device driver" 36 #include "em28xx-reg.h" 162 /* maximum number of em28xx boards */ 163 #define EM28XX_MAXBOARDS DVB_MAX_ADAPTERS /* All adapters could be em28xx */ 174 /* max number of I2C buses on em28xx devices */ 209 struct em28xx; 242 int (*urb_data_copy)(struct em28xx *dev, struct urb *urb); 250 * @reg: em28xx register value to set it 328 * enum em28xx_amux - describes the type of audio input used by em28xx 635 struct em28xx { global() struct [all...] |
H A D | em28xx-video.c | 3 // em28xx-video.c - driver for Empia EM2800/EM2820/2840 USB 15 #include "em28xx.h" 28 #include "em28xx-v4l.h" 126 static inline unsigned int norm_maxw(struct em28xx *dev) in norm_maxw() 139 static inline unsigned int norm_maxh(struct em28xx *dev) in norm_maxh() 152 static int em28xx_vbi_supported(struct em28xx *dev) in em28xx_vbi_supported() 167 /* Version of em28xx that does not support VBI */ in em28xx_vbi_supported() 175 static void em28xx_wake_i2c(struct em28xx *dev) in em28xx_wake_i2c() 184 static int em28xx_colorlevels_set_default(struct em28xx *dev) in em28xx_colorlevels_set_default() 202 static int em28xx_set_outfmt(struct em28xx *de [all...] |
H A D | em28xx-core.c | 3 // em28xx-core.c - driver for Empia EM2800/EM2820/2840 USB video capture devices 11 #include "em28xx.h" 66 int em28xx_read_reg_req_len(struct em28xx *dev, u8 req, u16 reg, in em28xx_read_reg_req_len() 112 int em28xx_read_reg_req(struct em28xx *dev, u8 req, u16 reg) in em28xx_read_reg_req() 124 int em28xx_read_reg(struct em28xx *dev, u16 reg) in em28xx_read_reg() 134 int em28xx_write_regs_req(struct em28xx *dev, u8 req, u16 reg, char *buf, in em28xx_write_regs_req() 177 int em28xx_write_regs(struct em28xx *dev, u16 reg, char *buf, int len) in em28xx_write_regs() 184 int em28xx_write_reg(struct em28xx *dev, u16 reg, u8 val) in em28xx_write_reg() 195 int em28xx_write_reg_bits(struct em28xx *dev, u16 reg, u8 val, in em28xx_write_reg_bits() 215 int em28xx_toggle_reg_bits(struct em28xx *de [all...] |
H A D | em28xx-audio.c | 14 #include "em28xx.h" 49 static int em28xx_deinit_isoc_audio(struct em28xx *dev) in em28xx_deinit_isoc_audio() 68 struct em28xx *dev = urb->context; in em28xx_audio_isocirq() 159 static int em28xx_init_audio_isoc(struct em28xx *dev) in em28xx_init_audio_isoc() 218 struct em28xx *dev = snd_pcm_substream_chip(substream); in snd_em28xx_capture_open() 223 pr_err("em28xx-audio: BUG: em28xx can't find device struct. Can't proceed with open\n"); in snd_em28xx_capture_open() 292 "Error while configuring em28xx mixer\n"); in snd_em28xx_capture_open() 298 struct em28xx *dev = snd_pcm_substream_chip(substream); in snd_em28xx_pcm_close() 319 struct em28xx *de in snd_em28xx_prepare() [all...] |
H A D | em28xx-input.c | 3 // handle em28xx IR remotes via linux kernel input layer. 10 #include "em28xx.h" 29 #define MODULE_NAME "em28xx" 38 * Polling structure used by em28xx IR's 50 struct em28xx *dev; 197 struct em28xx *dev = ir->dev; in default_polling_getkey() 240 struct em28xx *dev = ir->dev; in em2874_polling_getkey() 290 * Polling code for em28xx 387 struct em28xx *dev = ir->dev; in em2860_ir_change_protocol() 415 struct em28xx *de in em2874_ir_change_protocol() [all...] |
H A D | em28xx-i2c.c | 3 // em28xx-i2c.c - driver for Empia EM2800/EM2820/2840 USB video capture devices 11 #include "em28xx.h" 50 static int em28xx_i2c_timeout(struct em28xx *dev) in em28xx_i2c_timeout() 73 static int em2800_i2c_send_bytes(struct em28xx *dev, u8 addr, u8 *buf, u16 len) in em2800_i2c_send_bytes() 125 static int em2800_i2c_recv_bytes(struct em28xx *dev, u8 addr, u8 *buf, u16 len) in em2800_i2c_recv_bytes() 185 static int em2800_i2c_check_for_device(struct em28xx *dev, u8 addr) in em2800_i2c_check_for_device() 199 static int em28xx_i2c_send_bytes(struct em28xx *dev, u16 addr, u8 *buf, in em28xx_i2c_send_bytes() 269 static int em28xx_i2c_recv_bytes(struct em28xx *dev, u16 addr, u8 *buf, u16 len) in em28xx_i2c_recv_bytes() 335 static int em28xx_i2c_check_for_device(struct em28xx *dev, u16 addr) in em28xx_i2c_check_for_device() 350 static int em25xx_bus_B_send_bytes(struct em28xx *de [all...] |
H A D | em28xx-vbi.c | 3 // em28xx-vbi.c - VBI driver for em28xx 9 #include "em28xx.h" 17 #include "em28xx-v4l.h" 25 struct em28xx *dev = vb2_get_drv_priv(vq); in vbi_queue_setup() 46 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_prepare() 67 struct em28xx *dev = vb2_get_drv_priv(vb->vb2_queue); in vbi_buffer_queue()
|
H A D | em28xx-camera.c | 3 // em28xx-camera.c - driver for Empia EM25xx/27xx/28xx USB video capture devices 8 #include "em28xx.h" 31 static int em28xx_initialize_mt9m111(struct em28xx *dev) in em28xx_initialize_mt9m111() 51 static int em28xx_initialize_mt9m001(struct em28xx *dev) in em28xx_initialize_mt9m001() 82 static int em28xx_probe_sensor_micron(struct em28xx *dev) in em28xx_probe_sensor_micron() 167 static int em28xx_probe_sensor_omnivision(struct em28xx *dev) in em28xx_probe_sensor_omnivision() 277 int em28xx_detect_sensor(struct em28xx *dev) in em28xx_detect_sensor() 300 int em28xx_init_camera(struct em28xx *dev) in em28xx_init_camera()
|
H A D | em28xx-dvb.c | 3 // DVB device driver for em28xx 20 #include "em28xx.h" 105 static inline void print_err_status(struct em28xx *dev, in print_err_status() 144 static inline int em28xx_dvb_urb_data_copy(struct em28xx *dev, struct urb *urb) in em28xx_dvb_urb_data_copy() 198 struct em28xx *dev = i2c_bus->dev; in em28xx_start_streaming() 241 struct em28xx *dev = i2c_bus->dev; in em28xx_stop_streaming() 291 struct em28xx *dev = i2c_bus->dev; in em28xx_dvb_bus_ctrl() 467 static void hauppauge_hvr930c_init(struct em28xx *dev) in hauppauge_hvr930c_init() 534 static void terratec_h5_init(struct em28xx *dev) in terratec_h5_init() 583 static void terratec_htc_stick_init(struct em28xx *de [all...] |
H A D | em28xx-cards.c | 3 // em28xx-cards.c - driver for Empia EM2800/EM2820/2840 USB 12 #include "em28xx.h" 29 #define DRIVER_NAME "em28xx" 62 static void em28xx_pre_card_setup(struct em28xx *dev); 2841 struct em28xx *dev = i2c_bus->dev; in em28xx_tuner_callback() 2856 static inline void em28xx_set_xclk_i2c_speed(struct em28xx *dev) in em28xx_set_xclk_i2c_speed() 2882 static inline void em28xx_set_model(struct em28xx *dev) in em28xx_set_model() 2900 static int em28xx_wait_until_ac97_features_equals(struct em28xx *dev, in em28xx_wait_until_ac97_features_equals() 2929 static void em28xx_pre_card_setup(struct em28xx *dev) in em28xx_pre_card_setup() 3053 static int em28xx_hint_board(struct em28xx *de [all...] |