/drivers/media/video/bt8xx/ |
D | bttv-driver.c | 170 struct bttv *btv = dev_get_drvdata(vfd->parent); in show_card() local 171 return sprintf(buf, "%d\n", btv ? btv->c.type : UNSET); in show_card() 840 int check_alloc_btres(struct bttv *btv, struct bttv_fh *fh, int bit) in check_alloc_btres() argument 853 mutex_lock(&btv->lock); in check_alloc_btres() 854 if (btv->resources & xbits) { in check_alloc_btres() 860 && 0 == (btv->resources & VIDEO_RESOURCES)) { in check_alloc_btres() 862 __s32 top = btv->crop[!!fh->do_crop].rect.top; in check_alloc_btres() 864 if (btv->vbi_end > top) in check_alloc_btres() 869 btv->crop_start = top; in check_alloc_btres() 873 if (end > btv->crop_start) in check_alloc_btres() [all …]
|
D | bttv-i2c.c | 62 struct bttv *btv = (struct bttv*)data; in bttv_bit_setscl() local 65 btv->i2c_state |= 0x02; in bttv_bit_setscl() 67 btv->i2c_state &= ~0x02; in bttv_bit_setscl() 68 btwrite(btv->i2c_state, BT848_I2C); in bttv_bit_setscl() 74 struct bttv *btv = (struct bttv*)data; in bttv_bit_setsda() local 77 btv->i2c_state |= 0x01; in bttv_bit_setsda() 79 btv->i2c_state &= ~0x01; in bttv_bit_setsda() 80 btwrite(btv->i2c_state, BT848_I2C); in bttv_bit_setsda() 86 struct bttv *btv = (struct bttv*)data; in bttv_bit_getscl() local 95 struct bttv *btv = (struct bttv*)data; in bttv_bit_getsda() local [all …]
|
D | bttv-cards.c | 46 static void boot_msp34xx(struct bttv *btv, int pin); 47 static void hauppauge_eeprom(struct bttv *btv); 48 static void avermedia_eeprom(struct bttv *btv); 49 static void osprey_eeprom(struct bttv *btv, const u8 ee[256]); 50 static void modtec_eeprom(struct bttv *btv); 51 static void init_PXC200(struct bttv *btv); 52 static void init_RTV24(struct bttv *btv); 54 static void rv605_muxsel(struct bttv *btv, unsigned int input); 55 static void eagle_muxsel(struct bttv *btv, unsigned int input); 56 static void xguard_muxsel(struct bttv *btv, unsigned int input); [all …]
|
D | bttv-risc.c | 44 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_packed() argument 63 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0) in bttv_risc_packed() 79 if ((btv->opt_vcr_hack) && in bttv_risc_packed() 123 bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_planar() argument 146 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions*4*5)) < 0) in bttv_risc_planar() 159 if ((btv->opt_vcr_hack) && in bttv_risc_planar() 243 bttv_risc_overlay(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_overlay() argument 263 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,dwords*4)) < 0) { in bttv_risc_overlay() 273 addr = (unsigned long)btv->fbuf.base; in bttv_risc_overlay() 274 addr += btv->fbuf.fmt.bytesperline * ov->w.top; in bttv_risc_overlay() [all …]
|
D | bttv-input.c | 53 static void ir_handle_key(struct bttv *btv) in ir_handle_key() argument 55 struct card_ir *ir = btv->remote; in ir_handle_key() 59 gpio = bttv_gpio_read(&btv->c); in ir_handle_key() 80 if (btv->c.type == BTTV_BOARD_WINFAST2000) in ir_handle_key() 88 static void ir_enltv_handle_key(struct bttv *btv) in ir_enltv_handle_key() argument 90 struct card_ir *ir = btv->remote; in ir_enltv_handle_key() 94 gpio = bttv_gpio_read(&btv->c); in ir_enltv_handle_key() 127 void bttv_input_irq(struct bttv *btv) in bttv_input_irq() argument 129 struct card_ir *ir = btv->remote; in bttv_input_irq() 132 ir_handle_key(btv); in bttv_input_irq() [all …]
|
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 76 void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in gvbctv5pci_audio() argument 80 if (btv->radio_user) in gvbctv5pci_audio() 99 bttv_gpio_tracking(btv,"gvbctv5pci"); in gvbctv5pci_audio() 143 void avermedia_tvphone_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in avermedia_tvphone_audio() argument 155 bttv_gpio_tracking(btv,"avermedia"); in avermedia_tvphone_audio() 165 void avermedia_tv_stereo_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in avermedia_tv_stereo_audio() argument 176 bttv_gpio_tracking(btv,"avermedia"); in avermedia_tv_stereo_audio() 186 void lt9415_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in lt9415_audio() argument [all …]
|
D | bttv-audio-hook.h | 10 void winview_volume (struct bttv *btv, __u16 volume); 12 void lt9415_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 13 void avermedia_tvphone_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 14 void avermedia_tv_stereo_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 15 void terratv_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 16 void gvbctv3pci_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 17 void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 18 void winfast2000_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 19 void pvbt878p9b_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); 20 void fv2000s_audio(struct bttv *btv, struct v4l2_tuner *tuner, int set); [all …]
|
D | bttv-vbi.c | 69 printk(KERN_DEBUG "bttv%d/vbi: " fmt, btv->c.nr , ## arg) 81 struct bttv *btv = fh->btv; in vbi_buffer_setup() local 103 struct bttv *btv = fh->btv; in vbi_buffer_prepare() local 160 rc = bttv_risc_packed(btv, &buf->top, in vbi_buffer_prepare() 172 rc = bttv_risc_packed(btv, &buf->bottom, in vbi_buffer_prepare() 201 bttv_dma_free(q,btv,buf); in vbi_buffer_prepare() 209 struct bttv *btv = fh->btv; in vbi_buffer_queue() local 214 list_add_tail(&buf->vb.queue,&btv->vcapture); in vbi_buffer_queue() 215 if (NULL == btv->cvbi) { in vbi_buffer_queue() 216 fh->btv->loop_irq |= 4; in vbi_buffer_queue() [all …]
|
D | bttv.h | 252 void (*volume_gpio)(struct bttv *btv, __u16 volume); 253 void (*audio_mode_gpio)(struct bttv *btv, struct v4l2_tuner *tuner, int set); 255 void (*muxsel_hook)(struct bttv *btv, unsigned int input); 261 extern void bttv_idcard(struct bttv *btv); 262 extern void bttv_init_card1(struct bttv *btv); 263 extern void bttv_init_card2(struct bttv *btv); 266 extern void tea5757_set_freq(struct bttv *btv, unsigned short freq); 267 extern void bttv_tda9880_setnorm(struct bttv *btv, int norm); 271 extern int bttv_handle_chipset(struct bttv *btv); 330 #define gpio_inout(mask,bits) bttv_gpio_inout(&btv->c, mask, bits) [all …]
|
D | bttv-if.c | 56 struct bttv *btv; in bttv_gpio_enable() local 62 btv = &bttvs[card]; in bttv_gpio_enable() 65 bttv_gpio_tracking(btv,"extern enable"); in bttv_gpio_enable() 71 struct bttv *btv; in bttv_read_gpio() local 77 btv = &bttvs[card]; in bttv_read_gpio() 79 if(btv->shutdown) { in bttv_read_gpio() 91 struct bttv *btv; in bttv_write_gpio() local 97 btv = &bttvs[card]; in bttv_write_gpio() 103 bttv_gpio_tracking(btv,"extern write"); in bttv_write_gpio()
|
D | bttvp.h | 194 struct bttv *btv; member 226 int bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, 233 void bttv_set_dma(struct bttv *btv, int override); 234 int bttv_risc_init_main(struct bttv *btv); 235 int bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc, 239 int bttv_buffer_risc(struct bttv *btv, struct bttv_buffer *buf); 240 int bttv_buffer_activate_video(struct bttv *btv, 242 int bttv_buffer_activate_vbi(struct bttv *btv, 244 void bttv_dma_free(struct videobuf_queue *q, struct bttv *btv, 248 int bttv_overlay_risc(struct bttv *btv, struct bttv_overlay *ov, [all …]
|
D | bttv-gpio.c | 140 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_inout() local 144 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_inout() 149 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_inout() 154 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_read() local 163 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_write() local 170 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_bits() local 174 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_bits() 179 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_bits()
|