linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] si2168: improve scanning performance by setting property 0301 with a value from Windows driver.
@ 2014-07-17 18:43 Olli Salonen
  2014-07-17 19:09 ` Luis Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Olli Salonen @ 2014-07-17 18:43 UTC (permalink / raw)
  To: linux-media; +Cc: Olli Salonen

Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
---
 drivers/media/dvb-frontends/si2168.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
index 0422925..56811e1 100644
--- a/drivers/media/dvb-frontends/si2168.c
+++ b/drivers/media/dvb-frontends/si2168.c
@@ -313,6 +313,13 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
 	if (ret)
 		goto err;
 
+	memcpy(cmd.args, "\x14\x00\x01\x03\x0c\x00", 6);
+	cmd.wlen = 6;
+	cmd.rlen = 4;
+	ret = si2168_cmd_execute(s, &cmd);
+	if (ret)
+		goto err;
+
 	memcpy(cmd.args, "\x85", 1);
 	cmd.wlen = 1;
 	cmd.rlen = 1;
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] si2168: improve scanning performance by setting property 0301 with a value from Windows driver.
  2014-07-17 18:43 [PATCH] si2168: improve scanning performance by setting property 0301 with a value from Windows driver Olli Salonen
@ 2014-07-17 19:09 ` Luis Alves
  2014-07-17 21:46   ` Antti Palosaari
  0 siblings, 1 reply; 3+ messages in thread
From: Luis Alves @ 2014-07-17 19:09 UTC (permalink / raw)
  To: Olli Salonen; +Cc: linux-media

This would be best done during init and not every time on set_frontend.

Regards,
Luis

On Thu, Jul 17, 2014 at 7:43 PM, Olli Salonen <olli.salonen@iki.fi> wrote:
> Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
> ---
>  drivers/media/dvb-frontends/si2168.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
> index 0422925..56811e1 100644
> --- a/drivers/media/dvb-frontends/si2168.c
> +++ b/drivers/media/dvb-frontends/si2168.c
> @@ -313,6 +313,13 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
>         if (ret)
>                 goto err;
>
> +       memcpy(cmd.args, "\x14\x00\x01\x03\x0c\x00", 6);
> +       cmd.wlen = 6;
> +       cmd.rlen = 4;
> +       ret = si2168_cmd_execute(s, &cmd);
> +       if (ret)
> +               goto err;
> +
>         memcpy(cmd.args, "\x85", 1);
>         cmd.wlen = 1;
>         cmd.rlen = 1;
> --
> 1.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] si2168: improve scanning performance by setting property 0301 with a value from Windows driver.
  2014-07-17 19:09 ` Luis Alves
@ 2014-07-17 21:46   ` Antti Palosaari
  0 siblings, 0 replies; 3+ messages in thread
From: Antti Palosaari @ 2014-07-17 21:46 UTC (permalink / raw)
  To: Luis Alves, Olli Salonen; +Cc: linux-media

On 07/17/2014 10:09 PM, Luis Alves wrote:
> This would be best done during init and not every time on set_frontend.

I am perfectly fine it is done during set_frontend(), even it is static 
value. There were earlier tons of these 0x14 commands, including that 
one. I removed all that were same as default (command reports back 
existing value when new is set). It happens that Olli's Si2168-A30 chip 
has different default value than Si2168-B40 I have.

init() is perfect place for enabling chip, power-up blocks, start 
clocks, downloading firmware and loading "inittab". That command seems 
to belong tuning process itself.

I will apply that.

regards
Antti


>
> Regards,
> Luis
>
> On Thu, Jul 17, 2014 at 7:43 PM, Olli Salonen <olli.salonen@iki.fi> wrote:
>> Signed-off-by: Olli Salonen <olli.salonen@iki.fi>
>> ---
>>   drivers/media/dvb-frontends/si2168.c | 7 +++++++
>>   1 file changed, 7 insertions(+)
>>
>> diff --git a/drivers/media/dvb-frontends/si2168.c b/drivers/media/dvb-frontends/si2168.c
>> index 0422925..56811e1 100644
>> --- a/drivers/media/dvb-frontends/si2168.c
>> +++ b/drivers/media/dvb-frontends/si2168.c
>> @@ -313,6 +313,13 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
>>          if (ret)
>>                  goto err;
>>
>> +       memcpy(cmd.args, "\x14\x00\x01\x03\x0c\x00", 6);
>> +       cmd.wlen = 6;
>> +       cmd.rlen = 4;
>> +       ret = si2168_cmd_execute(s, &cmd);
>> +       if (ret)
>> +               goto err;
>> +
>>          memcpy(cmd.args, "\x85", 1);
>>          cmd.wlen = 1;
>>          cmd.rlen = 1;
>> --
>> 1.9.1
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-media" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

-- 
http://palosaari.fi/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-17 21:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-17 18:43 [PATCH] si2168: improve scanning performance by setting property 0301 with a value from Windows driver Olli Salonen
2014-07-17 19:09 ` Luis Alves
2014-07-17 21:46   ` Antti Palosaari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).