Subversion Repositories shark

Rev

Rev 428 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1063 tullio 1
 
2
/*
3
 * This program is free software; you can redistribute it and/or modify
4
 * it under the terms of the GNU General Public License as published by
5
 * the Free Software Foundation; either version 2 of the License, or
6
 * (at your option) any later version.
7
 *
8
 * This program is distributed in the hope that it will be useful,
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 * GNU General Public License for more details.
12
 *
13
 * You should have received a copy of the GNU General Public License
14
 * along with this program; if not, write to the Free Software
15
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
 *
17
 */
18
 
170 giacomo 19
#ifndef AUDIOCHIP_H
20
#define AUDIOCHIP_H
21
 
22
/* ---------------------------------------------------------------------- */
23
 
24
/* v4l device was opened in Radio mode */
25
#define AUDC_SET_RADIO        _IO('m',2)
26
/* select from TV,radio,extern,MUTE */
27
#define AUDC_SET_INPUT        _IOW('m',17,int)
28
 
29
/* audio inputs */
30
#define AUDIO_TUNER        0x00
31
#define AUDIO_RADIO        0x01
32
#define AUDIO_EXTERN       0x02
33
#define AUDIO_INTERN       0x03
34
#define AUDIO_OFF          0x04 
35
#define AUDIO_ON           0x05
36
#define AUDIO_MUTE         0x80
37
#define AUDIO_UNMUTE       0x81
38
 
39
/* all the stuff below is obsolete and just here for reference.  I'll
40
 * remove it once the driver is tested and works fine.
41
 *
42
 * Instead creating alot of tiny API's for all kinds of different
43
 * chips, we'll just pass throuth the v4l ioctl structs (v4l2 not
44
 * yet...).  It is a bit less flexible, but most/all used i2c chips
45
 * make sense in v4l context only.  So I think that's acceptable...
46
 */
47
 
428 giacomo 48
/* misc stuff to pass around config info to i2c chips */
49
#define AUDC_CONFIG_PINNACLE  _IOW('m',32,int)
170 giacomo 50
 
51
#endif /* AUDIOCHIP_H */