Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17336
b: refs/heads/master
c: a544521
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jan 9, 2006
1 parent 13c2610 commit 765ee87
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66e33dee9e3062b1045afe23c4b8714c1004668c
refs/heads/master: a544521ef06ee7b8a3d82fa29627401196fda77a
22 changes: 19 additions & 3 deletions trunk/include/media/tuner.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,26 @@ enum tuner_mode {
T_STANDBY = 1 << 31
};

/* Older boards only had a single tuner device. Nowadays multiple tuner
devices may be present on a single board. Using TUNER_SET_TYPE_ADDR
to pass the tuner_setup structure it is possible to setup each tuner
device in turn.
Since multiple devices may be present it is no longer sufficient to
send a command to a single i2c device. Instead you should broadcast
the command to all i2c devices.
By setting the mode_mask correctly you can select which commands are
accepted by a specific tuner device. For example, set mode_mask to
T_RADIO if the device is a radio-only tuner. That specific tuner will
only accept commands when the tuner is in radio mode and ignore them
when the tuner is set to TV mode.
*/

struct tuner_setup {
unsigned short addr;
unsigned int type;
unsigned int mode_mask;
unsigned short addr; /* I2C address */
unsigned int type; /* Tuner type */
unsigned int mode_mask; /* Allowed tuner modes */
};

struct tuner {
Expand Down

0 comments on commit 765ee87

Please sign in to comment.