tda9840.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) tda9840.c (2f73c7c582a685b3198b974cd6d964d0338f8ab5)
1 /*
2 tda9840 - i2c-driver for the tda9840 by SGS Thomson
3
4 Copyright (C) 1998-2003 Michael Hunold <michael@mihu.de>
5 Copyright (C) 2008 Hans Verkuil <hverkuil@xs4all.nl>
6
7 The tda9840 is a stereo/dual sound processor with digital
8 identification. It can be found at address 0x84 on the i2c-bus.

--- 73 unchanged lines hidden (view full) ---

82 "TDA9840_DETECT: register contents invalid\n");
83 return -EINVAL;
84 }
85
86 v4l2_dbg(1, debug, sd, "TDA9840_DETECT: byte: 0x%02x\n", byte);
87 return byte & 0x60;
88}
89
1 /*
2 tda9840 - i2c-driver for the tda9840 by SGS Thomson
3
4 Copyright (C) 1998-2003 Michael Hunold <michael@mihu.de>
5 Copyright (C) 2008 Hans Verkuil <hverkuil@xs4all.nl>
6
7 The tda9840 is a stereo/dual sound processor with digital
8 identification. It can be found at address 0x84 on the i2c-bus.

--- 73 unchanged lines hidden (view full) ---

82 "TDA9840_DETECT: register contents invalid\n");
83 return -EINVAL;
84 }
85
86 v4l2_dbg(1, debug, sd, "TDA9840_DETECT: byte: 0x%02x\n", byte);
87 return byte & 0x60;
88}
89
90static int tda9840_s_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *t)
90static int tda9840_s_tuner(struct v4l2_subdev *sd, const struct v4l2_tuner *t)
91{
92 int stat = tda9840_status(sd);
93 int byte;
94
95 if (t->index)
96 return -EINVAL;
97
98 stat = stat < 0 ? 0 : stat;

--- 126 unchanged lines hidden ---
91{
92 int stat = tda9840_status(sd);
93 int byte;
94
95 if (t->index)
96 return -EINVAL;
97
98 stat = stat < 0 ? 0 : stat;

--- 126 unchanged lines hidden ---