cx88.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. /*
  2. *
  3. * v4l2 device driver for cx2388x based TV cards
  4. *
  5. * (c) 2003,04 Gerd Knorr <kraxel@bytesex.org> [SUSE Labs]
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21. #include <linux/pci.h>
  22. #include <linux/i2c.h>
  23. #include <linux/i2c-algo-bit.h>
  24. #include <linux/videodev2.h>
  25. #include <linux/kdev_t.h>
  26. #include <media/v4l2-common.h>
  27. #include <media/tuner.h>
  28. #include <media/tveeprom.h>
  29. #include <media/video-buf.h>
  30. #include <media/cx2341x.h>
  31. #include <media/audiochip.h>
  32. #include <media/video-buf-dvb.h>
  33. #include "btcx-risc.h"
  34. #include "cx88-reg.h"
  35. #include <linux/version.h>
  36. #include <linux/mutex.h>
  37. #define CX88_VERSION_CODE KERNEL_VERSION(0,0,6)
  38. #define UNSET (-1U)
  39. #define CX88_MAXBOARDS 8
  40. /* Max number of inputs by card */
  41. #define MAX_CX88_INPUT 8
  42. /* ----------------------------------------------------------- */
  43. /* defines and enums */
  44. #define FORMAT_FLAGS_PACKED 0x01
  45. #define FORMAT_FLAGS_PLANAR 0x02
  46. #define VBI_LINE_COUNT 17
  47. #define VBI_LINE_LENGTH 2048
  48. /* need "shadow" registers for some write-only ones ... */
  49. #define SHADOW_AUD_VOL_CTL 1
  50. #define SHADOW_AUD_BAL_CTL 2
  51. #define SHADOW_MAX 3
  52. /* FM Radio deemphasis type */
  53. enum cx88_deemph_type {
  54. FM_NO_DEEMPH = 0,
  55. FM_DEEMPH_50,
  56. FM_DEEMPH_75
  57. };
  58. enum cx88_board_type {
  59. CX88_BOARD_NONE = 0,
  60. CX88_MPEG_DVB,
  61. CX88_MPEG_BLACKBIRD
  62. };
  63. /* ----------------------------------------------------------- */
  64. /* tv norms */
  65. struct cx88_tvnorm {
  66. char *name;
  67. v4l2_std_id id;
  68. u32 cxiformat;
  69. u32 cxoformat;
  70. };
  71. static unsigned int inline norm_maxw(struct cx88_tvnorm *norm)
  72. {
  73. return (norm->id & V4L2_STD_625_50) ? 768 : 640;
  74. }
  75. static unsigned int inline norm_maxh(struct cx88_tvnorm *norm)
  76. {
  77. return (norm->id & V4L2_STD_625_50) ? 576 : 480;
  78. }
  79. /* ----------------------------------------------------------- */
  80. /* static data */
  81. struct cx8800_fmt {
  82. char *name;
  83. u32 fourcc; /* v4l2 format id */
  84. int depth;
  85. int flags;
  86. u32 cxformat;
  87. };
  88. struct cx88_ctrl {
  89. struct v4l2_queryctrl v;
  90. u32 off;
  91. u32 reg;
  92. u32 sreg;
  93. u32 mask;
  94. u32 shift;
  95. };
  96. /* ----------------------------------------------------------- */
  97. /* SRAM memory management data (see cx88-core.c) */
  98. #define SRAM_CH21 0 /* video */
  99. #define SRAM_CH22 1
  100. #define SRAM_CH23 2
  101. #define SRAM_CH24 3 /* vbi */
  102. #define SRAM_CH25 4 /* audio */
  103. #define SRAM_CH26 5
  104. #define SRAM_CH28 6 /* mpeg */
  105. /* more */
  106. struct sram_channel {
  107. char *name;
  108. u32 cmds_start;
  109. u32 ctrl_start;
  110. u32 cdt;
  111. u32 fifo_start;
  112. u32 fifo_size;
  113. u32 ptr1_reg;
  114. u32 ptr2_reg;
  115. u32 cnt1_reg;
  116. u32 cnt2_reg;
  117. };
  118. extern struct sram_channel cx88_sram_channels[];
  119. /* ----------------------------------------------------------- */
  120. /* card configuration */
  121. #define CX88_BOARD_NOAUTO UNSET
  122. #define CX88_BOARD_UNKNOWN 0
  123. #define CX88_BOARD_HAUPPAUGE 1
  124. #define CX88_BOARD_GDI 2
  125. #define CX88_BOARD_PIXELVIEW 3
  126. #define CX88_BOARD_ATI_WONDER_PRO 4
  127. #define CX88_BOARD_WINFAST2000XP_EXPERT 5
  128. #define CX88_BOARD_AVERTV_STUDIO_303 6
  129. #define CX88_BOARD_MSI_TVANYWHERE_MASTER 7
  130. #define CX88_BOARD_WINFAST_DV2000 8
  131. #define CX88_BOARD_LEADTEK_PVR2000 9
  132. #define CX88_BOARD_IODATA_GVVCP3PCI 10
  133. #define CX88_BOARD_PROLINK_PLAYTVPVR 11
  134. #define CX88_BOARD_ASUS_PVR_416 12
  135. #define CX88_BOARD_MSI_TVANYWHERE 13
  136. #define CX88_BOARD_KWORLD_DVB_T 14
  137. #define CX88_BOARD_DVICO_FUSIONHDTV_DVB_T1 15
  138. #define CX88_BOARD_KWORLD_LTV883 16
  139. #define CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_Q 17
  140. #define CX88_BOARD_HAUPPAUGE_DVB_T1 18
  141. #define CX88_BOARD_CONEXANT_DVB_T1 19
  142. #define CX88_BOARD_PROVIDEO_PV259 20
  143. #define CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_PLUS 21
  144. #define CX88_BOARD_PCHDTV_HD3000 22
  145. #define CX88_BOARD_DNTV_LIVE_DVB_T 23
  146. #define CX88_BOARD_HAUPPAUGE_ROSLYN 24
  147. #define CX88_BOARD_DIGITALLOGIC_MEC 25
  148. #define CX88_BOARD_IODATA_GVBCTV7E 26
  149. #define CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO 27
  150. #define CX88_BOARD_DVICO_FUSIONHDTV_3_GOLD_T 28
  151. #define CX88_BOARD_ADSTECH_DVB_T_PCI 29
  152. #define CX88_BOARD_TERRATEC_CINERGY_1400_DVB_T1 30
  153. #define CX88_BOARD_DVICO_FUSIONHDTV_5_GOLD 31
  154. #define CX88_BOARD_AVERMEDIA_ULTRATV_MC_550 32
  155. #define CX88_BOARD_KWORLD_VSTREAM_EXPERT_DVD 33
  156. #define CX88_BOARD_ATI_HDTVWONDER 34
  157. #define CX88_BOARD_WINFAST_DTV1000 35
  158. #define CX88_BOARD_AVERTV_303 36
  159. #define CX88_BOARD_HAUPPAUGE_NOVASPLUS_S1 37
  160. #define CX88_BOARD_HAUPPAUGE_NOVASE2_S1 38
  161. #define CX88_BOARD_KWORLD_DVBS_100 39
  162. #define CX88_BOARD_HAUPPAUGE_HVR1100 40
  163. #define CX88_BOARD_HAUPPAUGE_HVR1100LP 41
  164. #define CX88_BOARD_DNTV_LIVE_DVB_T_PRO 42
  165. #define CX88_BOARD_KWORLD_DVB_T_CX22702 43
  166. #define CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_DUAL 44
  167. #define CX88_BOARD_KWORLD_HARDWARE_MPEG_TV_XPERT 45
  168. #define CX88_BOARD_DVICO_FUSIONHDTV_DVB_T_HYBRID 46
  169. #define CX88_BOARD_PCHDTV_HD5500 47
  170. #define CX88_BOARD_KWORLD_MCE200_DELUXE 48
  171. #define CX88_BOARD_PIXELVIEW_PLAYTV_P7000 49
  172. #define CX88_BOARD_NPGTECH_REALTV_TOP10FM 50
  173. #define CX88_BOARD_WINFAST_DTV2000H 51
  174. #define CX88_BOARD_GENIATECH_DVBS 52
  175. #define CX88_BOARD_HAUPPAUGE_HVR3000 53
  176. #define CX88_BOARD_NORWOOD_MICRO 54
  177. #define CX88_BOARD_TE_DTV_250_OEM_SWANN 55
  178. #define CX88_BOARD_HAUPPAUGE_HVR1300 56
  179. enum cx88_itype {
  180. CX88_VMUX_COMPOSITE1 = 1,
  181. CX88_VMUX_COMPOSITE2,
  182. CX88_VMUX_COMPOSITE3,
  183. CX88_VMUX_COMPOSITE4,
  184. CX88_VMUX_SVIDEO,
  185. CX88_VMUX_TELEVISION,
  186. CX88_VMUX_CABLE,
  187. CX88_VMUX_DVB,
  188. CX88_VMUX_DEBUG,
  189. CX88_RADIO,
  190. };
  191. struct cx88_input {
  192. enum cx88_itype type;
  193. unsigned int vmux;
  194. u32 gpio0, gpio1, gpio2, gpio3;
  195. };
  196. struct cx88_board {
  197. char *name;
  198. unsigned int tuner_type;
  199. unsigned int radio_type;
  200. unsigned char tuner_addr;
  201. unsigned char radio_addr;
  202. int tda9887_conf;
  203. struct cx88_input input[MAX_CX88_INPUT];
  204. struct cx88_input radio;
  205. enum cx88_board_type mpeg;
  206. enum audiochip audio_chip;
  207. };
  208. struct cx88_subid {
  209. u16 subvendor;
  210. u16 subdevice;
  211. u32 card;
  212. };
  213. #define INPUT(nr) (&cx88_boards[core->board].input[nr])
  214. /* ----------------------------------------------------------- */
  215. /* device / file handle status */
  216. #define RESOURCE_OVERLAY 1
  217. #define RESOURCE_VIDEO 2
  218. #define RESOURCE_VBI 4
  219. #define BUFFER_TIMEOUT (HZ/2) /* 0.5 seconds */
  220. /* buffer for one video frame */
  221. struct cx88_buffer {
  222. /* common v4l buffer stuff -- must be first */
  223. struct videobuf_buffer vb;
  224. /* cx88 specific */
  225. unsigned int bpl;
  226. struct btcx_riscmem risc;
  227. struct cx8800_fmt *fmt;
  228. u32 count;
  229. };
  230. struct cx88_dmaqueue {
  231. struct list_head active;
  232. struct list_head queued;
  233. struct timer_list timeout;
  234. struct btcx_riscmem stopper;
  235. u32 count;
  236. };
  237. struct cx88_core {
  238. struct list_head devlist;
  239. atomic_t refcount;
  240. /* board name */
  241. int nr;
  242. char name[32];
  243. /* pci stuff */
  244. int pci_bus;
  245. int pci_slot;
  246. u32 __iomem *lmmio;
  247. u8 __iomem *bmmio;
  248. u32 shadow[SHADOW_MAX];
  249. int pci_irqmask;
  250. /* i2c i/o */
  251. struct i2c_adapter i2c_adap;
  252. struct i2c_algo_bit_data i2c_algo;
  253. struct i2c_client i2c_client;
  254. u32 i2c_state, i2c_rc;
  255. /* config info -- analog */
  256. unsigned int board;
  257. unsigned int tuner_type;
  258. unsigned int radio_type;
  259. unsigned char tuner_addr;
  260. unsigned char radio_addr;
  261. unsigned int tda9887_conf;
  262. unsigned int has_radio;
  263. /* Supported V4L _STD_ tuner formats */
  264. unsigned int tuner_formats;
  265. /* config info -- dvb */
  266. struct dvb_pll_desc *pll_desc;
  267. unsigned int pll_addr;
  268. int (*prev_set_voltage)(struct dvb_frontend* fe, fe_sec_voltage_t voltage);
  269. /* state info */
  270. struct task_struct *kthread;
  271. struct cx88_tvnorm *tvnorm;
  272. u32 tvaudio;
  273. u32 audiomode_manual;
  274. u32 audiomode_current;
  275. u32 input;
  276. u32 astat;
  277. u32 use_nicam;
  278. /* IR remote control state */
  279. struct cx88_IR *ir;
  280. struct mutex lock;
  281. /* various v4l controls */
  282. u32 freq;
  283. /* cx88-video needs to access cx8802 for hybrid tuner pll access. */
  284. struct cx8802_dev *dvbdev;
  285. };
  286. struct cx8800_dev;
  287. struct cx8802_dev;
  288. /* ----------------------------------------------------------- */
  289. /* function 0: video stuff */
  290. struct cx8800_fh {
  291. struct cx8800_dev *dev;
  292. enum v4l2_buf_type type;
  293. int radio;
  294. unsigned int resources;
  295. /* video overlay */
  296. struct v4l2_window win;
  297. struct v4l2_clip *clips;
  298. unsigned int nclips;
  299. /* video capture */
  300. struct cx8800_fmt *fmt;
  301. unsigned int width,height;
  302. struct videobuf_queue vidq;
  303. /* vbi capture */
  304. struct videobuf_queue vbiq;
  305. };
  306. struct cx8800_suspend_state {
  307. int disabled;
  308. };
  309. struct cx8800_dev {
  310. struct cx88_core *core;
  311. struct list_head devlist;
  312. spinlock_t slock;
  313. /* various device info */
  314. unsigned int resources;
  315. struct video_device *video_dev;
  316. struct video_device *vbi_dev;
  317. struct video_device *radio_dev;
  318. /* pci i/o */
  319. struct pci_dev *pci;
  320. unsigned char pci_rev,pci_lat;
  321. /* capture queues */
  322. struct cx88_dmaqueue vidq;
  323. struct cx88_dmaqueue vbiq;
  324. /* various v4l controls */
  325. /* other global state info */
  326. struct cx8800_suspend_state state;
  327. };
  328. /* ----------------------------------------------------------- */
  329. /* function 1: audio/alsa stuff */
  330. /* =============> moved to cx88-alsa.c <====================== */
  331. /* ----------------------------------------------------------- */
  332. /* function 2: mpeg stuff */
  333. struct cx8802_fh {
  334. struct cx8802_dev *dev;
  335. struct videobuf_queue mpegq;
  336. };
  337. struct cx8802_suspend_state {
  338. int disabled;
  339. };
  340. struct cx8802_dev {
  341. struct cx88_core *core;
  342. spinlock_t slock;
  343. /* pci i/o */
  344. struct pci_dev *pci;
  345. unsigned char pci_rev,pci_lat;
  346. /* dma queues */
  347. struct cx88_dmaqueue mpegq;
  348. u32 ts_packet_size;
  349. u32 ts_packet_count;
  350. /* other global state info */
  351. struct cx8802_suspend_state state;
  352. /* for blackbird only */
  353. struct list_head devlist;
  354. struct video_device *mpeg_dev;
  355. u32 mailbox;
  356. int width;
  357. int height;
  358. /* for dvb only */
  359. struct videobuf_dvb dvb;
  360. void* fe_handle;
  361. int (*fe_release)(void *handle);
  362. void *card_priv;
  363. /* for switching modulation types */
  364. unsigned char ts_gen_cntrl;
  365. /* mpeg params */
  366. struct cx2341x_mpeg_params params;
  367. };
  368. /* ----------------------------------------------------------- */
  369. #define cx_read(reg) readl(core->lmmio + ((reg)>>2))
  370. #define cx_write(reg,value) writel((value), core->lmmio + ((reg)>>2))
  371. #define cx_writeb(reg,value) writeb((value), core->bmmio + (reg))
  372. #define cx_andor(reg,mask,value) \
  373. writel((readl(core->lmmio+((reg)>>2)) & ~(mask)) |\
  374. ((value) & (mask)), core->lmmio+((reg)>>2))
  375. #define cx_set(reg,bit) cx_andor((reg),(bit),(bit))
  376. #define cx_clear(reg,bit) cx_andor((reg),(bit),0)
  377. #define cx_wait(d) { if (need_resched()) schedule(); else udelay(d); }
  378. /* shadow registers */
  379. #define cx_sread(sreg) (core->shadow[sreg])
  380. #define cx_swrite(sreg,reg,value) \
  381. (core->shadow[sreg] = value, \
  382. writel(core->shadow[sreg], core->lmmio + ((reg)>>2)))
  383. #define cx_sandor(sreg,reg,mask,value) \
  384. (core->shadow[sreg] = (core->shadow[sreg] & ~(mask)) | ((value) & (mask)), \
  385. writel(core->shadow[sreg], core->lmmio + ((reg)>>2)))
  386. /* ----------------------------------------------------------- */
  387. /* cx88-core.c */
  388. extern void cx88_print_irqbits(char *name, char *tag, char **strings,
  389. u32 bits, u32 mask);
  390. extern int cx88_core_irq(struct cx88_core *core, u32 status);
  391. extern void cx88_wakeup(struct cx88_core *core,
  392. struct cx88_dmaqueue *q, u32 count);
  393. extern void cx88_shutdown(struct cx88_core *core);
  394. extern int cx88_reset(struct cx88_core *core);
  395. extern int
  396. cx88_risc_buffer(struct pci_dev *pci, struct btcx_riscmem *risc,
  397. struct scatterlist *sglist,
  398. unsigned int top_offset, unsigned int bottom_offset,
  399. unsigned int bpl, unsigned int padding, unsigned int lines);
  400. extern int
  401. cx88_risc_databuffer(struct pci_dev *pci, struct btcx_riscmem *risc,
  402. struct scatterlist *sglist, unsigned int bpl,
  403. unsigned int lines);
  404. extern int
  405. cx88_risc_stopper(struct pci_dev *pci, struct btcx_riscmem *risc,
  406. u32 reg, u32 mask, u32 value);
  407. extern void
  408. cx88_free_buffer(struct videobuf_queue *q, struct cx88_buffer *buf);
  409. extern void cx88_risc_disasm(struct cx88_core *core,
  410. struct btcx_riscmem *risc);
  411. extern int cx88_sram_channel_setup(struct cx88_core *core,
  412. struct sram_channel *ch,
  413. unsigned int bpl, u32 risc);
  414. extern void cx88_sram_channel_dump(struct cx88_core *core,
  415. struct sram_channel *ch);
  416. extern int cx88_set_scale(struct cx88_core *core, unsigned int width,
  417. unsigned int height, enum v4l2_field field);
  418. extern int cx88_set_tvnorm(struct cx88_core *core, struct cx88_tvnorm *norm);
  419. extern struct video_device *cx88_vdev_init(struct cx88_core *core,
  420. struct pci_dev *pci,
  421. struct video_device *template,
  422. char *type);
  423. extern struct cx88_core* cx88_core_get(struct pci_dev *pci);
  424. extern void cx88_core_put(struct cx88_core *core,
  425. struct pci_dev *pci);
  426. extern int cx88_start_audio_dma(struct cx88_core *core);
  427. extern int cx88_stop_audio_dma(struct cx88_core *core);
  428. /* ----------------------------------------------------------- */
  429. /* cx88-vbi.c */
  430. void cx8800_vbi_fmt(struct cx8800_dev *dev, struct v4l2_format *f);
  431. /*
  432. int cx8800_start_vbi_dma(struct cx8800_dev *dev,
  433. struct cx88_dmaqueue *q,
  434. struct cx88_buffer *buf);
  435. */
  436. int cx8800_stop_vbi_dma(struct cx8800_dev *dev);
  437. int cx8800_restart_vbi_queue(struct cx8800_dev *dev,
  438. struct cx88_dmaqueue *q);
  439. void cx8800_vbi_timeout(unsigned long data);
  440. extern struct videobuf_queue_ops cx8800_vbi_qops;
  441. /* ----------------------------------------------------------- */
  442. /* cx88-i2c.c */
  443. extern int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci);
  444. extern void cx88_call_i2c_clients(struct cx88_core *core,
  445. unsigned int cmd, void *arg);
  446. /* ----------------------------------------------------------- */
  447. /* cx88-cards.c */
  448. extern struct cx88_board cx88_boards[];
  449. extern const unsigned int cx88_bcount;
  450. extern struct cx88_subid cx88_subids[];
  451. extern const unsigned int cx88_idcount;
  452. extern void cx88_card_list(struct cx88_core *core, struct pci_dev *pci);
  453. extern void cx88_card_setup(struct cx88_core *core);
  454. extern void cx88_card_setup_pre_i2c(struct cx88_core *core);
  455. /* ----------------------------------------------------------- */
  456. /* cx88-tvaudio.c */
  457. #define WW_NONE 1
  458. #define WW_BTSC 2
  459. #define WW_BG 3
  460. #define WW_DK 4
  461. #define WW_I 5
  462. #define WW_L 6
  463. #define WW_EIAJ 7
  464. #define WW_I2SPT 8
  465. #define WW_FM 9
  466. void cx88_set_tvaudio(struct cx88_core *core);
  467. void cx88_newstation(struct cx88_core *core);
  468. void cx88_get_stereo(struct cx88_core *core, struct v4l2_tuner *t);
  469. void cx88_set_stereo(struct cx88_core *core, u32 mode, int manual);
  470. int cx88_audio_thread(void *data);
  471. /* ----------------------------------------------------------- */
  472. /* cx88-input.c */
  473. int cx88_ir_init(struct cx88_core *core, struct pci_dev *pci);
  474. int cx88_ir_fini(struct cx88_core *core);
  475. void cx88_ir_irq(struct cx88_core *core);
  476. /* ----------------------------------------------------------- */
  477. /* cx88-mpeg.c */
  478. int cx8802_buf_prepare(struct videobuf_queue *q,struct cx8802_dev *dev,
  479. struct cx88_buffer *buf, enum v4l2_field field);
  480. void cx8802_buf_queue(struct cx8802_dev *dev, struct cx88_buffer *buf);
  481. void cx8802_cancel_buffers(struct cx8802_dev *dev);
  482. int cx8802_init_common(struct cx8802_dev *dev);
  483. void cx8802_fini_common(struct cx8802_dev *dev);
  484. int cx8802_suspend_common(struct pci_dev *pci_dev, pm_message_t state);
  485. int cx8802_resume_common(struct pci_dev *pci_dev);
  486. /* ----------------------------------------------------------- */
  487. /* cx88-video.c */
  488. extern int cx88_do_ioctl(struct inode *inode, struct file *file, int radio,
  489. struct cx88_core *core, unsigned int cmd,
  490. void *arg, v4l2_kioctl driver_ioctl);
  491. extern const u32 cx88_user_ctrls[];
  492. extern int cx8800_ctrl_query(struct v4l2_queryctrl *qctrl);
  493. /*
  494. * Local variables:
  495. * c-basic-offset: 8
  496. * End:
  497. * kate: eol "unix"; indent-width 3; remove-trailing-space on; replace-trailing-space-save on; tab-width 8; replace-tabs off; space-indent off; mixed-indent off
  498. */