Portability cleanup as required by Linus.
[linux-2.6/linux-mips.git] / drivers / char / audiochip.h
blob23d1b125959cfa08a60386f720d75613b60c1e44
1 #ifndef AUDIOCHIP_H
2 #define AUDIOCHIP_H
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)
14 /* all the stuff below is obsolete and just here for reference. I'll
15 * remove it once the driver is tested and works fine.
17 * Instead creating alot of tiny API's for all kinds of different
18 * chips, we'll just pass throuth the v4l ioctl structs (v4l2 not
19 * yet...). It is a bit less flexible, but most/all used i2c chips
20 * make sense in v4l context only. So I think that's acceptable...
23 #if 0
25 /* TODO (if it is ever [to be] accessible in the V4L[2] spec):
26 * maybe fade? (back/front)
27 * notes:
28 * NEWCHANNEL and SWITCH_MUTE are here because the MSP3400 has a special
29 * routine to go through when it tunes in to a new channel before turning
30 * back on the sound.
31 * Either SET_RADIO, NEWCHANNEL, and SWITCH_MUTE or SET_INPUT need to be
32 * implemented (MSP3400 uses SET_RADIO to select inputs, and SWITCH_MUTE for
33 * channel-change mute -- TEA6300 et al use SET_AUDIO to select input [TV,
34 * radio, external, or MUTE]). If both methods are implemented, you get a
35 * cookie for doing such a good job! :)
38 #define AUDC_SET_TVNORM _IOW('m',1,int) /* TV mode + PAL/SECAM/NTSC */
39 #define AUDC_NEWCHANNEL _IO('m',3) /* indicate new chan - off mute */
41 #define AUDC_GET_VOLUME_LEFT _IOR('m',4,__u16)
42 #define AUDC_GET_VOLUME_RIGHT _IOR('m',5,__u16)
43 #define AUDC_SET_VOLUME_LEFT _IOW('m',6,__u16)
44 #define AUDC_SET_VOLUME_RIGHT _IOW('m',7,__u16)
46 #define AUDC_GET_STEREO _IOR('m',8,__u16)
47 #define AUDC_SET_STEREO _IOW('m',9,__u16)
49 #define AUDC_GET_DC _IOR('m',10,__u16)/* ??? */
51 #define AUDC_GET_BASS _IOR('m',11,__u16)
52 #define AUDC_SET_BASS _IOW('m',12,__u16)
53 #define AUDC_GET_TREBLE _IOR('m',13,__u16)
54 #define AUDC_SET_TREBLE _IOW('m',14,__u16)
56 #define AUDC_GET_UNIT _IOR('m',15,int) /* ??? - unimplemented in MSP3400 */
57 #define AUDC_SWITCH_MUTE _IO('m',16) /* turn on mute */
58 #endif
60 #endif /* AUDIOCHIP_H */