blob: cd831168fdc1df41767cc6b2dd005b5b01fa49a1 [file] [log] [blame]
Mauro Carvalho Chehab56fc08c2005-06-23 22:05:07 -07001/*
Mauro Carvalho Chehabebe4c6f2005-07-12 13:58:53 -07002 * $Id: audiochip.h,v 1.5 2005/06/16 22:59:16 hhackmann Exp $
Mauro Carvalho Chehab56fc08c2005-06-23 22:05:07 -07003 */
4
Linus Torvalds1da177e2005-04-16 15:20:36 -07005#ifndef AUDIOCHIP_H
6#define AUDIOCHIP_H
7
8/* ---------------------------------------------------------------------- */
9
10/* v4l device was opened in Radio mode */
11#define AUDC_SET_RADIO _IO('m',2)
12/* select from TV,radio,extern,MUTE */
13#define AUDC_SET_INPUT _IOW('m',17,int)
14
15/* audio inputs */
16#define AUDIO_TUNER 0x00
17#define AUDIO_RADIO 0x01
18#define AUDIO_EXTERN 0x02
19#define AUDIO_INTERN 0x03
20#define AUDIO_OFF 0x04
21#define AUDIO_ON 0x05
22#define AUDIO_EXTERN_1 AUDIO_EXTERN
23#define AUDIO_EXTERN_2 0x06
24#define AUDIO_MUTE 0x80
25#define AUDIO_UNMUTE 0x81
26
27/* all the stuff below is obsolete and just here for reference. I'll
28 * remove it once the driver is tested and works fine.
29 *
30 * Instead creating alot of tiny API's for all kinds of different
31 * chips, we'll just pass throuth the v4l ioctl structs (v4l2 not
32 * yet...). It is a bit less flexible, but most/all used i2c chips
33 * make sense in v4l context only. So I think that's acceptable...
34 */
35
36/* misc stuff to pass around config info to i2c chips */
37#define AUDC_CONFIG_PINNACLE _IOW('m',32,int)
Linus Torvalds1da177e2005-04-16 15:20:36 -070038#endif /* AUDIOCHIP_H */