From: Antti Palosaari <crope@iki.fi>
To: Alessandro Radicati <alessandro@radicati.net>
Cc: Jose Alberto Reguero <jareguero@telefonica.net>,
linux-media@vger.kernel.org
Subject: Re: AVerMedia HD Volar (A867) AF9035 + MXL5007T driver issues
Date: Sat, 9 Apr 2016 05:17:38 +0300 [thread overview]
Message-ID: <57086642.4060003@iki.fi> (raw)
In-Reply-To: <CAO8Cc0p2vw6g_qEVAL8BowU9394gpOJXYVcEbgbQo-e3mN3q0Q@mail.gmail.com>
On 04/09/2016 04:52 AM, Alessandro Radicati wrote:
> On Sat, Apr 9, 2016 at 3:22 AM, Antti Palosaari <crope@iki.fi> wrote:
>> Here is patches to test:
>> http://git.linuxtv.org/anttip/media_tree.git/log/?h=af9035
>>
>
> I've done this already in my testing, and it works for getting a
> correct chip_id response, but only because it's avoiding the issue
> with the write/read case in the af9035 driver. Don't have an
> af9015... perhaps there's a similar issue with that code or we are
> dealing with two separate issues since af9035 never does a repeated
> start?
I am pretty sure mxl5007t requires stop between read and write. Usually
chips are not caring too much if it is repeated start or not, whilst
datasheets are often register read is S Wr S Rw P.
Even af9035 i2c adapter implementation implements repeated start wrong,
I would not like to add anymore hacks there. It is currently ugly and
complex as hell. I should be re-written totally in any case. Those tuner
I2C adapters should be moved to demod. Demod has 1 I2C adapter.
USB-bridge has 2 adapters, one for each demod.
I have to find out af9015 datasheets and check how it is there. But I
still remember one case where I implemented one FX2 firmware and that
same issues raises there as well.
>> After that both af9015+mxl5007t and af9035+mxl5007t started working. Earlier
>> both were returning bogus values for chip id read.
>>
>> Also I am interested to known which kind of communication there is actually
>> seen on I2C bus?
>
> With this or the patch I proposed, you see exactly what you expect on
> the I2C bus with repeated stops, as detailed in my previous mails.
So it is good?
>> If it starts working then have to find out way to fix it properly so that
>> any earlier device didn't broke.
>>
>
> I hope that by now I've made abundantly clear that my mxl5007t locks
> up after *any* read. It doesn't matter if we are reading the correct
> register after any of the proposed patches.
So it still locks up after any read after the chip id read? And does not
work then? On my devices I can add multiple mxl5007t_get_chip_id() calls
and all are returning correct values.
Could you test what happens if you use that CMD_GENERIC_I2C_WR +
CMD_GENERIC_I2C_RD ? I suspect it is lower level I2C xfer than those
CMD_I2C_RD + CMD_I2C_WR, which are likely somehow handled by demod core.
regards
Antti
--
http://palosaari.fi/
next prev parent reply other threads:[~2016-04-09 2:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <57083b12.ec3ec20a.eed91.1ea1SMTPIN_ADDED_BROKEN@mx.google.com>
2016-04-08 23:59 ` AVerMedia HD Volar (A867) AF9035 + MXL5007T driver issues Alessandro Radicati
2016-04-09 0:50 ` Antti Palosaari
2016-04-09 1:22 ` Antti Palosaari
2016-04-09 1:52 ` Alessandro Radicati
2016-04-09 2:17 ` Antti Palosaari [this message]
2016-04-09 8:13 ` Alessandro Radicati
2016-04-09 14:25 ` Antti Palosaari
2016-04-09 16:11 ` Alessandro Radicati
2016-04-09 17:07 ` Antti Palosaari
2016-04-09 17:38 ` Alessandro Radicati
2016-04-09 1:29 ` Alessandro Radicati
2016-04-10 21:30 Jose Alberto Reguero
-- strict thread matches above, loose matches on Subject: below --
2016-04-08 23:13 Jose Alberto Reguero
2016-04-02 10:44 Alessandro Radicati
2016-04-05 18:15 ` Antti Palosaari
2016-04-05 19:34 ` Alessandro Radicati
2016-04-05 22:33 ` Antti Palosaari
2016-04-05 23:00 ` Alessandro Radicati
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=57086642.4060003@iki.fi \
--to=crope@iki.fi \
--cc=alessandro@radicati.net \
--cc=jareguero@telefonica.net \
--cc=linux-media@vger.kernel.org \
/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.