/drivers/media/pci/bt8xx/ |
D | bttv-driver.c | 190 struct bttv *btv = video_get_drvdata(vfd); in show_card() local 191 return sprintf(buf, "%d\n", btv ? btv->c.type : UNSET); in show_card() 683 int check_alloc_btres_lock(struct bttv *btv, struct bttv_fh *fh, int bit) in check_alloc_btres_lock() argument 696 if (btv->resources & xbits) { in check_alloc_btres_lock() 702 && 0 == (btv->resources & VIDEO_RESOURCES)) { in check_alloc_btres_lock() 704 __s32 top = btv->crop[!!fh->do_crop].rect.top; in check_alloc_btres_lock() 706 if (btv->vbi_end > top) in check_alloc_btres_lock() 711 btv->crop_start = top; in check_alloc_btres_lock() 715 if (end > btv->crop_start) in check_alloc_btres_lock() 719 btv->vbi_end = end; in check_alloc_btres_lock() [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 | 48 static void boot_msp34xx(struct bttv *btv, int pin); 49 static void hauppauge_eeprom(struct bttv *btv); 50 static void avermedia_eeprom(struct bttv *btv); 51 static void osprey_eeprom(struct bttv *btv, const u8 ee[256]); 52 static void modtec_eeprom(struct bttv *btv); 53 static void init_PXC200(struct bttv *btv); 54 static void init_RTV24(struct bttv *btv); 55 static void init_PCI8604PW(struct bttv *btv); 57 static void rv605_muxsel(struct bttv *btv, unsigned int input); 58 static void eagle_muxsel(struct bttv *btv, unsigned int input); [all …]
|
D | bttv-input.c | 53 static void ir_handle_key(struct bttv *btv) in ir_handle_key() argument 55 struct bttv_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() 87 static void ir_enltv_handle_key(struct bttv *btv) in ir_enltv_handle_key() argument 89 struct bttv_ir *ir = btv->remote; in ir_enltv_handle_key() 93 gpio = bttv_gpio_read(&btv->c); in ir_enltv_handle_key() 126 static int bttv_rc5_irq(struct bttv *btv); 128 void bttv_input_irq(struct bttv *btv) in bttv_input_irq() argument 130 struct bttv_ir *ir = btv->remote; in bttv_input_irq() [all …]
|
D | bttv-risc.c | 47 bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_packed() argument 66 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions)) < 0) in bttv_risc_packed() 82 if ((btv->opt_vcr_hack) && in bttv_risc_packed() 126 bttv_risc_planar(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_planar() argument 149 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,instructions*4*5)) < 0) in bttv_risc_planar() 162 if ((btv->opt_vcr_hack) && in bttv_risc_planar() 246 bttv_risc_overlay(struct bttv *btv, struct btcx_riscmem *risc, in bttv_risc_overlay() argument 266 if ((rc = btcx_riscmem_alloc(btv->c.pci,risc,dwords*4)) < 0) { in bttv_risc_overlay() 276 addr = (unsigned long)btv->fbuf.base; in bttv_risc_overlay() 277 addr += btv->fbuf.fmt.bytesperline * ov->w.top; in bttv_risc_overlay() [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 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 …]
|
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-if.c | 59 struct bttv *btv; in bttv_gpio_enable() local 65 btv = bttvs[card]; in bttv_gpio_enable() 66 if (!btv) in bttv_gpio_enable() 71 bttv_gpio_tracking(btv,"extern enable"); in bttv_gpio_enable() 77 struct bttv *btv; in bttv_read_gpio() local 83 btv = bttvs[card]; in bttv_read_gpio() 84 if (!btv) in bttv_read_gpio() 87 if(btv->shutdown) { in bttv_read_gpio() 99 struct bttv *btv; in bttv_write_gpio() local 105 btv = bttvs[card]; in bttv_write_gpio() [all …]
|
D | bttv-vbi.c | 73 pr_debug("%d: " fmt, btv->c.nr, ##__VA_ARGS__); \ 86 struct bttv *btv = fh->btv; in vbi_buffer_setup() local 108 struct bttv *btv = fh->btv; in vbi_buffer_prepare() local 165 rc = bttv_risc_packed(btv, &buf->top, in vbi_buffer_prepare() 177 rc = bttv_risc_packed(btv, &buf->bottom, in vbi_buffer_prepare() 206 bttv_dma_free(q,btv,buf); in vbi_buffer_prepare() 214 struct bttv *btv = fh->btv; in vbi_buffer_queue() local 219 list_add_tail(&buf->vb.queue,&btv->vcapture); in vbi_buffer_queue() 220 if (NULL == btv->cvbi) { in vbi_buffer_queue() 221 fh->btv->loop_irq |= 4; in vbi_buffer_queue() [all …]
|
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 void tea5757_set_freq(struct bttv *btv, unsigned short freq); 293 extern u32 bttv_tda9880_setnorm(struct bttv *btv, u32 gpiobits); 297 extern int bttv_handle_chipset(struct bttv *btv); [all …]
|
D | bttvp.h | 221 struct bttv *btv; member 250 int bttv_risc_packed(struct bttv *btv, struct btcx_riscmem *risc, 257 void bttv_set_dma(struct bttv *btv, int override); 258 int bttv_risc_init_main(struct bttv *btv); 259 int bttv_risc_hook(struct bttv *btv, int slot, struct btcx_riscmem *risc, 263 int bttv_buffer_risc(struct bttv *btv, struct bttv_buffer *buf); 264 int bttv_buffer_activate_video(struct bttv *btv, 266 int bttv_buffer_activate_vbi(struct bttv *btv, 268 void bttv_dma_free(struct videobuf_queue *q, struct bttv *btv, 272 int bttv_overlay_risc(struct bttv *btv, struct bttv_overlay *ov, [all …]
|
D | bttv-gpio.c | 143 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_inout() local 147 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_inout() 152 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_inout() 157 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_read() local 166 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_write() local 173 struct bttv *btv = container_of(core, struct bttv, c); in bttv_gpio_bits() local 177 spin_lock_irqsave(&btv->gpio_lock,flags); in bttv_gpio_bits() 182 spin_unlock_irqrestore(&btv->gpio_lock,flags); in bttv_gpio_bits()
|