Skip to content

Commit b9aafbd

Browse files
committed
media: si2157: add ATV support for si2158
This device also supports ATV, as it has the same API for setting analog TV tuning parameters. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 98c65a3 commit b9aafbd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

drivers/media/tuners/si2157.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ static int si2157_set_analog_params(struct dvb_frontend *fe,
576576
u8 color = 0; /* 0=NTSC/PAL, 0x10=SECAM */
577577
u8 invert_analog = 1; /* analog tuner spectrum; 0=normal, 1=inverted */
578578

579-
if (dev->part_id != SI2157) {
579+
if (!SUPPORTS_ATV_IF(dev)) {
580580
dev_info(&client->dev, "Analog tuning not supported yet for Si21%d\n",
581581
dev->part_id);
582582
ret = -EINVAL;

drivers/media/tuners/si2157_priv.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ struct si2157_cmd {
7171
((dev)->part_id == SI2157) || \
7272
((dev)->part_id == SI2177))
7373

74+
#define SUPPORTS_ATV_IF(dev) (((dev)->part_id == SI2157) || \
75+
((dev)->part_id == SI2158))
76+
7477
/* Old firmware namespace */
7578
#define SI2158_A20_FIRMWARE "dvb-tuner-si2158-a20-01.fw"
7679
#define SI2141_A10_FIRMWARE "dvb-tuner-si2141-a10-01.fw"

0 commit comments

Comments
 (0)