blob: b7d4b0930408c3e366e28de0a196387bd03a743d [file] [log] [blame]
Mauro Carvalho Chehab56fc08c2005-06-23 22:05:07 -07001/*
Mauro Carvalho Chehab56fc08c2005-06-23 22:05:07 -07002 */
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004#ifndef AUDIOCHIP_H
5#define AUDIOCHIP_H
6
Mauro Carvalho Chehab90a7ed42005-11-08 21:36:56 -08007enum audiochip {
8 AUDIO_CHIP_NONE,
9 AUDIO_CHIP_UNKNOWN,
10 /* Provided by video chip */
11 AUDIO_CHIP_INTERNAL,
12 /* Provided by tvaudio.c */
Mauro Carvalho Chehab4ac97912005-11-08 21:37:43 -080013 AUDIO_CHIP_TDA8425,
14 AUDIO_CHIP_TEA6300,
15 AUDIO_CHIP_TEA6420,
16 AUDIO_CHIP_TDA9840,
17 AUDIO_CHIP_TDA985X,
18 AUDIO_CHIP_TDA9874,
19 AUDIO_CHIP_PIC16C54,
Mauro Carvalho Chehab90a7ed42005-11-08 21:36:56 -080020 /* Provided by msp3400.c */
21 AUDIO_CHIP_MSP34XX
22};
23
Linus Torvalds1da177e2005-04-16 15:20:36 -070024/* ---------------------------------------------------------------------- */
25
26/* v4l device was opened in Radio mode */
27#define AUDC_SET_RADIO _IO('m',2)
28/* select from TV,radio,extern,MUTE */
29#define AUDC_SET_INPUT _IOW('m',17,int)
30
31/* audio inputs */
32#define AUDIO_TUNER 0x00
33#define AUDIO_RADIO 0x01
34#define AUDIO_EXTERN 0x02
35#define AUDIO_INTERN 0x03
36#define AUDIO_OFF 0x04
37#define AUDIO_ON 0x05
38#define AUDIO_EXTERN_1 AUDIO_EXTERN
39#define AUDIO_EXTERN_2 0x06
40#define AUDIO_MUTE 0x80
41#define AUDIO_UNMUTE 0x81
42
43/* all the stuff below is obsolete and just here for reference. I'll
44 * remove it once the driver is tested and works fine.
45 *
46 * Instead creating alot of tiny API's for all kinds of different
47 * chips, we'll just pass throuth the v4l ioctl structs (v4l2 not
48 * yet...). It is a bit less flexible, but most/all used i2c chips
49 * make sense in v4l context only. So I think that's acceptable...
50 */
51
52/* misc stuff to pass around config info to i2c chips */
53#define AUDC_CONFIG_PINNACLE _IOW('m',32,int)
Linus Torvalds1da177e2005-04-16 15:20:36 -070054#endif /* AUDIOCHIP_H */