From: Olli Salonen <olli.salonen@iki.fi>
To: linux-media@vger.kernel.org
Subject: Re: [PATCH 4/4] dvbsky: add option to disable IR receiver
Date: Sun, 12 Oct 2014 13:52:43 +0300 [thread overview]
Message-ID: <543A5D7B.8020401@iki.fi> (raw)
In-Reply-To: <543A540A.2010507@iki.fi>
On 12.10.2014 13:12, Antti Palosaari wrote:
>> static int dvbsky_get_rc_config(struct dvb_usb_device *d, struct
>> dvb_usb_rc *rc)
>> {
>> + if (dvb_usb_dvbsky_disable_rc)
>> + return 0;
>> +
>> + rc->map_name = RC_MAP_DVBSKY;
>> rc->allowed_protos = RC_BIT_RC5;
>> rc->query = dvbsky_rc_query;
>> rc->interval = 300;
>> @@ -450,7 +458,7 @@ static struct dvb_usb_device_properties
>> dvbsky_s960_props = {
>>
>> static const struct usb_device_id dvbsky_id_table[] = {
>> { DVB_USB_DEVICE(0x0572, 0x6831,
>> - &dvbsky_s960_props, "DVBSky S960/S860", RC_MAP_DVBSKY) },
>> + &dvbsky_s960_props, "DVBSky S960/S860", NULL) },
>
> Why you removed default keytable too?
>
I initially thought that it would make sense to set all RC related
parameters in the get_rc_config function. Of couse I could set
RC_MAP_DVBSKY as default map and then set it to NULL only if the remote
controller is disabled. Now that I think of it, it's probably better to
do it this way. The next DVBSky OEM device might come with another
remote controller, and we don't want to implement the map selection
logic into the get_rc_config.
In general I did not see many modules with IR disable function. Is this
the right way to implement it? I noticed that dvb-usb-v2 had an option
to disable IR polling, but that will disable it for all dvb-usb-v2
modules. I have 2 adapters in my HTPC setup and want to disable the IR
only for the device that uses the dvbsky module.
-olli
next prev parent reply other threads:[~2014-10-12 10:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-12 10:03 [PATCH 1/4] dvbsky: don't print MAC address from read_mac_address Olli Salonen
2014-10-12 10:03 ` [PATCH 2/4] dvbsky: added debug logging Olli Salonen
2014-11-03 13:04 ` Mauro Carvalho Chehab
2014-11-03 13:39 ` Antti Palosaari
2014-10-12 10:03 ` [PATCH 3/4] dvbsky: clean logging Olli Salonen
2014-10-12 10:03 ` [PATCH 4/4] dvbsky: add option to disable IR receiver Olli Salonen
2014-10-12 10:12 ` Antti Palosaari
2014-10-12 10:52 ` Olli Salonen [this message]
2014-10-12 11:31 ` [PATCHv2 " Olli Salonen
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=543A5D7B.8020401@iki.fi \
--to=olli.salonen@iki.fi \
--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.