All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Frank Schäfer" <fschaefer.oss@googlemail.com>
To: Linux Media Mailing List <linux-media@vger.kernel.org>
Cc: Mauro Carvalho Chehab <m.chehab@samsung.com>
Subject: xc2028 i2c errors
Date: Mon, 30 Dec 2013 14:36:10 +0100	[thread overview]
Message-ID: <52C176CA.2080401@googlemail.com> (raw)

Hi,

With the Hauppauge HVR900 (em2882/3 / xc2028 / tvp5150 / zl10353), I'm
getting lot's of i2c error messages for ages:

...
[   99.590735] xc2028 10-0061: Error on line 1299: -19
[   99.645650] usbcore: registered new interface driver snd-usb-audio
[   99.755362] xc2028 10-0061: Error on line 1299: -19
[   99.824744] xc2028 10-0061: attaching existing instance
[   99.824750] xc2028 10-0061: type set to XCeive xc2028/xc3028 tuner
...
[  141.885510] xc2028 10-0061: i2c input error: rc = -19 (should be 2)
[  141.886496] xc2028 10-0061: i2c input error: rc = -19 (should be 2)
...


The "line 1299" errors occurs because the xc2028 driver tries to power
down the tuner although it is already powered down (surprise !).
The input errors occur at the beginning of xc2028_signal() and
xc2028_get_afc() when the driver tries to read the sync lock state and
it causes both functions to fail.
This also happens only when the device sleeps.
When not powering down the tuner, everthing works fine and no i2c errors
occur.

With other words: xc2028 power state handling is broken.
I don't have the datasheets and I'm not familiar with this device, so I
don't know what's the best way to fix it.
So unless anyone comes up with a better solution, I suggest to disable
the power-down.
Patch follows.

Regards,
Frank

                 reply	other threads:[~2013-12-30 13:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52C176CA.2080401@googlemail.com \
    --to=fschaefer.oss@googlemail.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.chehab@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.