4 /* ---------------------------------------------------------------------- */
6 #define MIN(a,b) (((a)>(b))?(b):(a))
7 #define MAX(a,b) (((a)>(b))?(a):(b))
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)
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
21 #define AUDIO_MUTE 0x80
22 #define AUDIO_UNMUTE 0x81
24 /* all the stuff below is obsolete and just here for reference. I'll
25 * remove it once the driver is tested and works fine.
27 * Instead creating alot of tiny API's for all kinds of different
28 * chips, we'll just pass throuth the v4l ioctl structs (v4l2 not
29 * yet...). It is a bit less flexible, but most/all used i2c chips
30 * make sense in v4l context only. So I think that's acceptable...
33 /* misc stuff to pass around config info to i2c chips */
34 #define AUDC_CONFIG_PINNACLE _IOW('m',32,int)
36 #endif /* AUDIOCHIP_H */