Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331252
b: refs/heads/master
c: 351d187
h: refs/heads/master
v: v3
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Oct 2, 2012
1 parent 35c167b commit 2df51ca
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: 6b82e0cfc15ec7e635eea83b04e1544ab64f81ad
refs/heads/master: 351d18786e1fa45d1cd20bad03e445dbb50e0912
10 changes: 9 additions & 1 deletion trunk/drivers/media/tuners/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,11 +1159,19 @@ static int tda18271_get_id(struct dvb_frontend *fe)
struct tda18271_priv *priv = fe->tuner_priv;
unsigned char *regs = priv->tda18271_regs;
char *name;
int ret;

mutex_lock(&priv->lock);
tda18271_read_regs(fe);
ret = tda18271_read_regs(fe);
mutex_unlock(&priv->lock);

if (ret) {
tda_info("Error reading device ID @ %d-%04x, bailing out.\n",
i2c_adapter_id(priv->i2c_props.adap),
priv->i2c_props.addr);
return -EIO;
}

switch (regs[R_ID] & 0x7f) {
case 3:
name = "TDA18271HD/C1";
Expand Down

0 comments on commit 2df51ca

Please sign in to comment.