blob: a7ceee9fc5e9a0edd113a2c9c2ecdd52c8a50425 [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
7/* ---------------------------------------------------------------------- */
8
9/* v4l device was opened in Radio mode */
10#define AUDC_SET_RADIO _IO('m',2)
11/* select from TV,radio,extern,MUTE */
12#define AUDC_SET_INPUT _IOW('m',17,int)
13
14/* audio inputs */
15#define AUDIO_TUNER 0x00
16#define AUDIO_RADIO 0x01
17#define AUDIO_EXTERN 0x02
18#define AUDIO_INTERN 0x03
19#define AUDIO_OFF 0x04
20#define AUDIO_ON 0x05
21#define AUDIO_EXTERN_1 AUDIO_EXTERN
22#define AUDIO_EXTERN_2 0x06
23#define AUDIO_MUTE 0x80
24#define AUDIO_UNMUTE 0x81
25
26/* all the stuff below is obsolete and just here for reference. I'll
27 * remove it once the driver is tested and works fine.
28 *
29 * Instead creating alot of tiny API's for all kinds of different
30 * chips, we'll just pass throuth the v4l ioctl structs (v4l2 not
31 * yet...). It is a bit less flexible, but most/all used i2c chips
32 * make sense in v4l context only. So I think that's acceptable...
33 */
34
35/* misc stuff to pass around config info to i2c chips */
36#define AUDC_CONFIG_PINNACLE _IOW('m',32,int)
Linus Torvalds1da177e2005-04-16 15:20:36 -070037#endif /* AUDIOCHIP_H */