diff options
author | Matthieu Rogez <matthieu.rogez@gmail.com> | 2016-03-04 18:33:08 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-03-05 09:04:10 -0300 |
commit | 0899f62ff93f73860a23a4d4ac6921e3786b41d1 (patch) | |
tree | 4d8c9bde09ecf1b80b544fcafe1f16bf6d3144c1 /drivers/media/dvb-frontends/stv0367_regs.h | |
parent | 66c1db1bc5e1a21a358d084835a3eff1cf7d5b78 (diff) |
[media] em28xx: fix Terratec Grabby AC97 codec detection
EMP202 chip inside Terratec Grabby (hw rev 2) seems to require some time
before accessing reliably its registers. Otherwise it returns some values
previously put on the I2C bus.
To account for that period, we delay card setup until we have a proof that
accessing AC97 registers is reliable. We get this proof by polling
AC97_RESET until the expected value is read. We also check that unrelated
registers don't return the same value. This second check handles the case
where the expected value is constantly returned no matter which register
is accessed.
Signed-off-by: Matthieu Rogez <matthieu.rogez@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/stv0367_regs.h')
0 files changed, 0 insertions, 0 deletions