Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271682
b: refs/heads/master
c: fd34cb0
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Aug 31, 2011
1 parent 991085c commit ca2187a
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 4d37ece757a83c2858de9e40b9fa3da511f9ce38
refs/heads/master: fd34cb08babcd898c6b0e30cd7d507ffa62685a1
11 changes: 8 additions & 3 deletions trunk/drivers/media/common/tuners/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,11 +940,16 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
* that xc2028 will be in a safe state.
* Maybe this might also be needed for DTV.
*/
if (new_type == V4L2_TUNER_ANALOG_TV) {
switch (new_type) {
case V4L2_TUNER_ANALOG_TV:
rc = send_seq(priv, {0x00, 0x00});

/* Analog modes require offset = 0 */
} else {
/* Analog mode requires offset = 0 */
break;
case V4L2_TUNER_RADIO:
/* Radio mode requires offset = 0 */
break;
case V4L2_TUNER_DIGITAL_TV:
/*
* Digital modes require an offset to adjust to the
* proper frequency. The offset depends on what
Expand Down

0 comments on commit ca2187a

Please sign in to comment.