1#ifndef AUDIOCHIP_H 2#define AUDIOCHIP_H 3 4/* ---------------------------------------------------------------------- */ 5 6#define MIN(a,b) (((a)>(b))?(b):(a)) 7#define MAX(a,b) (((a)>(b))?(a):(b)) 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_MUTE 0x80 22#define AUDIO_UNMUTE 0x81 23 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. 26 * 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... 31 */ 32 33 34#endif /* AUDIOCHIP_H */ 35