/linux/drivers/media/pci/bt8xx/ |
H A D | bttv-driver.c | 177 struct bttv *btv = video_get_drvdata(vfd); in card_show() local 178 return sprintf(buf, "%d\n", btv ? btv->c.type : UNSET); in card_show() 644 int check_alloc_btres_lock(struct bttv *btv, int bit) in check_alloc_btres_lock() argument 653 if (btv->resources & xbits) { in check_alloc_btres_lock() 659 && 0 == (btv->resources & VIDEO_RESOURCES)) { in check_alloc_btres_lock() 661 __s32 top = btv->crop[!!btv->do_crop].rect.top; in check_alloc_btres_lock() 663 if (btv->vbi_end > top) in check_alloc_btres_lock() 668 btv->crop_start = top; in check_alloc_btres_lock() 670 __s32 end = btv->vbi_fmt.end; in check_alloc_btres_lock() 672 if (end > btv->crop_start) in check_alloc_btres_lock() [all …]
|
H A D | bttv-risc.c | 35 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_packed() argument 54 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0) in bttv_risc_packed() 71 btv->opt_vcr_hack) in bttv_risc_packed() 114 bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_planar() argument 137 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions*4*5)) < 0) in bttv_risc_planar() 150 if ((btv->opt_vcr_hack) && in bttv_risc_planar() 237 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, in bttv_calc_geo_old() argument 248 if (btv->input == btv->dig) { in bttv_calc_geo_old() 271 if (btv->opt_combfilter) { in bttv_calc_geo_old() 281 bttv_calc_geo (struct bttv * btv, in bttv_calc_geo() argument [all …]
|
H A D | bttv-i2c.c | 48 struct bttv *btv = (struct bttv*)data; in bttv_bit_setscl() local 51 btv->i2c_state |= 0x02; in bttv_bit_setscl() 53 btv->i2c_state &= ~0x02; in bttv_bit_setscl() 54 btwrite(btv->i2c_state, BT848_I2C); in bttv_bit_setscl() 60 struct bttv *btv = (struct bttv*)data; in bttv_bit_setsda() local 63 btv->i2c_state |= 0x01; in bttv_bit_setsda() 65 btv->i2c_state &= ~0x01; in bttv_bit_setsda() 66 btwrite(btv->i2c_state, BT848_I2C); in bttv_bit_setsda() 72 struct bttv *btv = (struct bttv*)data; in bttv_bit_getscl() local 81 struct bttv *btv = (struct bttv*)data; in bttv_bit_getsda() local [all …]
|
H A D | bttv-cards.c | 36 static void boot_msp34xx(struct bttv *btv, int pin); 37 static void hauppauge_eeprom(struct bttv *btv); 38 static void avermedia_eeprom(struct bttv *btv); 39 static void osprey_eeprom(struct bttv *btv, const u8 ee[256]); 40 static void modtec_eeprom(struct bttv *btv); 41 static void init_PXC200(struct bttv *btv); 42 static void init_RTV24(struct bttv *btv); 43 static void init_PCI8604PW(struct bttv *btv); 45 static void rv605_muxsel(struct bttv *btv, unsigned int input); 46 static void eagle_muxsel(struct bttv *btv, unsigned int input); [all …]
|
H A D | bttv-input.c | 40 static void ir_handle_key(struct bttv *btv) in ir_handle_key() argument 42 struct bttv_ir *ir = btv->remote; in ir_handle_key() 46 gpio = bttv_gpio_read(&btv->c); in ir_handle_key() 67 if (btv->c.type == BTTV_BOARD_WINFAST2000) in ir_handle_key() 75 static void ir_enltv_handle_key(struct bttv *btv) in ir_enltv_handle_key() argument 77 struct bttv_ir *ir = btv->remote; in ir_enltv_handle_key() 81 gpio = bttv_gpio_read(&btv->c); in ir_enltv_handle_key() 115 static int bttv_rc5_irq(struct bttv *btv); 117 void bttv_input_irq(struct bttv *btv) in bttv_input_irq() argument 119 struct bttv_ir *ir = btv->remote; in bttv_input_irq() [all …]
|
H A D | bttv-vbi.c | 51 pr_debug("%d: " fmt, btv->c.nr, ##__VA_ARGS__); \ 64 struct bttv *btv = vb2_get_drv_priv(q); in queue_setup_vbi() local 65 unsigned int size = IMAGE_SIZE(&btv->vbi_fmt.fmt); in queue_setup_vbi() 79 struct bttv *btv = vb2_get_drv_priv(vq); in buf_queue_vbi() local 83 spin_lock_irqsave(&btv->s_lock, flags); in buf_queue_vbi() 84 if (list_empty(&btv->vcapture)) { in buf_queue_vbi() 85 btv->loop_irq = BT848_RISC_VBI; in buf_queue_vbi() 86 if (vb2_is_streaming(&btv->capq)) in buf_queue_vbi() 87 btv->loop_irq |= BT848_RISC_VIDEO; in buf_queue_vbi() 88 bttv_set_dma(btv, BT848_CAP_CTL_CAPTURE_VBI_ODD | in buf_queue_vbi() [all …]
|
H A D | bttv-audio-hook.h | 12 void winview_volume (struct bttv *btv, __u16 volume); 14 void lt9415_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 15 void avermedia_tvphone_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 16 void avermedia_tv_stereo_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 17 void terratv_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 18 void gvbctv3pci_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 19 void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 20 void winfast2000_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 21 void pvbt878p9b_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 22 void fv2000s_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); [all …]
|
H A D | bttv-audio-hook.c | 15 void winview_volume(struct bttv *btv, __u16 volume) in winview_volume() argument 55 void gvbctv3pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in gvbctv3pci_audio() argument 86 void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in gvbctv5pci_audio() argument 90 if (btv->radio_user) in gvbctv5pci_audio() 109 bttv_gpio_tracking(btv, "gvbctv5pci"); in gvbctv5pci_audio() 157 void avermedia_tvphone_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in avermedia_tvphone_audio() argument 184 bttv_gpio_tracking(btv, "avermedia"); in avermedia_tvphone_audio() 188 void avermedia_tv_stereo_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in avermedia_tv_stereo_audio() argument 216 bttv_gpio_tracking(btv, "avermedia"); in avermedia_tv_stereo_audio() 221 void lt9415_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in lt9415_audio() argument [all …]
|
H A D | bttv-if.c | 47 struct bttv *btv; in bttv_gpio_enable() local 53 btv = bttvs[card]; in bttv_gpio_enable() 54 if (!btv) in bttv_gpio_enable() 59 bttv_gpio_tracking(btv,"extern enable"); in bttv_gpio_enable() 65 struct bttv *btv; in bttv_read_gpio() local 71 btv = bttvs[card]; in bttv_read_gpio() 72 if (!btv) in bttv_read_gpio() 75 if(btv->shutdown) { in bttv_read_gpio() 87 struct bttv *btv; in bttv_write_gpio() local 93 btv = bttvs[card]; in bttv_write_gpio() [all …]
|
H A D | bttvp.h | 111 struct bttv *btv; member 197 int bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, 204 void bttv_set_dma(struct bttv *btv, int override); 205 int bttv_risc_init_main(struct bttv *btv); 206 int bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc, 210 int bttv_buffer_risc(struct bttv *btv, struct bttv_buffer *buf); 211 int bttv_buffer_activate_video(struct bttv *btv, 213 int bttv_buffer_risc_vbi(struct bttv *btv, struct bttv_buffer *buf); 214 int bttv_buffer_activate_vbi(struct bttv *btv, 244 extern void init_bttv_i2c_ir(struct bttv *btv); [all …]
|
H A D | bttv.h | 219 void (*volume_gpio)(struct bttv *btv, __u16 volume); 220 void (*audio_mode_gpio)(struct bttv *btv, struct v4l2_tuner *tuner, int set); 221 void (*muxsel_hook)(struct bttv *btv, unsigned int input); 286 extern void bttv_idcard(struct bttv *btv); 287 extern void bttv_init_card1(struct bttv *btv); 288 extern void bttv_init_card2(struct bttv *btv); 289 extern void bttv_init_tuner(struct bttv *btv); 292 extern u32 bttv_tda9880_setnorm(struct bttv *btv, u32 gpiobits); 296 extern int bttv_handle_chipset(struct bttv *btv); 355 #define gpio_inout(mask,bits) bttv_gpio_inout(&btv->c, mask, bits) [all …]
|
H A D | bttv-gpio.c | 130 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_inout() local 134 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_inout() 139 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_inout() 144 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_read() local 153 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_write() local 160 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_bits() local 164 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_bits() 169 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_bits()
|