Project

General

Profile

RE: August DVB-T210 » 0001-tunes-si2157-Si2148-support.patch

Crazy Cat, 2014-09-23 21:05

View differences:

drivers/media/tuners/si2157.c
1 1
/*
2
 * Silicon Labs Si2147/2157/2158 silicon tuner driver
2
 * Silicon Labs Si2147/2148/2157/2158 silicon tuner driver
3 3
 *
4 4
 * Copyright (C) 2014 Antti Palosaari <[email protected]>
5 5
 *
......
112 112
			cmd.args[4] << 0;
113 113

  
114 114
	#define SI2158_A20 ('A' << 24 | 58 << 16 | '2' << 8 | '0' << 0)
115
	#define SI2148_A20 ('A' << 24 | 48 << 16 | '2' << 8 | '0' << 0)
115 116
	#define SI2157_A30 ('A' << 24 | 57 << 16 | '3' << 8 | '0' << 0)
116 117
	#define SI2147_A30 ('A' << 24 | 47 << 16 | '3' << 8 | '0' << 0)
117 118

  
118 119
	switch (chip_id) {
119 120
	case SI2158_A20:
121
	case SI2148_A20:
120 122
		fw_file = SI2158_A20_FIRMWARE;
121 123
		break;
122 124
	case SI2157_A30:
......
305 307

  
306 308
static const struct dvb_tuner_ops si2157_ops = {
307 309
	.info = {
308
		.name           = "Silicon Labs Si2157/Si2158",
310
		.name           = "Silicon Labs Si2147/2148/2157/Si2158",
309 311
		.frequency_min  = 110000000,
310 312
		.frequency_max  = 862000000,
311 313
	},
......
352 354
	i2c_set_clientdata(client, s);
353 355

  
354 356
	dev_info(&s->client->dev,
355
			"Silicon Labs Si2157/Si2158 successfully attached\n");
357
			"Silicon Labs Si2147/2148/2157/Si2158 successfully attached\n");
356 358
	return 0;
357 359
err:
358 360
	dev_dbg(&client->dev, "failed=%d\n", ret);
......
393 395

  
394 396
module_i2c_driver(si2157_driver);
395 397

  
396
MODULE_DESCRIPTION("Silicon Labs Si2157/Si2158 silicon tuner driver");
398
MODULE_DESCRIPTION("Silicon Labs Si2147/2148/2157/Si2158 silicon tuner driver");
397 399
MODULE_AUTHOR("Antti Palosaari <[email protected]>");
398 400
MODULE_LICENSE("GPL");
399 401
MODULE_FIRMWARE(SI2158_A20_FIRMWARE);
drivers/media/tuners/si2157.h
1 1
/*
2
 * Silicon Labs Si2147/2157/2158 silicon tuner driver
2
 * Silicon Labs Si2147/2148/2157/2158 silicon tuner driver
3 3
 *
4 4
 * Copyright (C) 2014 Antti Palosaari <[email protected]>
5 5
 *
drivers/media/tuners/si2157_priv.h
1 1
/*
2
 * Silicon Labs Si2147/2157/2158 silicon tuner driver
2
 * Silicon Labs Si2147/2148/2157/2158 silicon tuner driver
3 3
 *
4 4
 * Copyright (C) 2014 Antti Palosaari <[email protected]>
5 5
 *
6
- 
(1-1/2)