From: Andy Walls <awalls@md.metrocast.net>
To: Jason Gauthier <jgauthier@lastar.com>,
Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: RE: [SOLVED] Enable IR on hdpvr
Date: Sat, 21 May 2011 23:02:03 -0400 [thread overview]
Message-ID: <8a8e1761-e060-4e3f-84bb-b04fdf5e55c5@email.android.com> (raw)
In-Reply-To: <65DE7931C559BF4DBEE42C3F8246249A2AB1470A@V-EXMAILBOX.ctg.com>
Jason Gauthier <jgauthier@lastar.com> wrote:
>All,
>
>
>>Okay, so I emailed a little too quickly. The messages above got me
>thinking. One of them is successful the other is not.
>>I verified with irsend. So, this may be an issue with multiple
>hdpvrs.
>
>I believe I've tracked this down.
>
>In lirc_zilog.c:
>
> At 1307:
> ret = add_ir_device(ir);
> if (ret)
> goto out_free_ir;
>
>Looking at add_ir_device:
> It returns:
>
> return i == MAX_IRCTL_DEVICES ? -ENOMEM : i;
>
>Meaning, that with a single device, it will generally return 0.
>However, if there are multiple devices it will return a positive. This
>causes the return check to succeeed, and the goto out_free_ir, and
>basically doesn't continue.
>
>So, simply changing the check to if (ret<0) seems to resolve this.
>Then if -ENOMEM is returned it will fail, and otherwise succeed.
>
>Sorry, this is not an official patch. The maintainer (Jarod?) should
>be able to see what I am talking about and correct this.
>
>Thanks!
>
>Jasoin
>--
>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
I think you're using a borken version. Are you using this one with all the ref counting fixes?
http://git.linuxtv.org/media_tree.git?a=blob;f=drivers/staging/lirc/lirc_zilog.c;h=dd6a57c3c3a3149bac53eb36fd4ddeabed804050;hb=HEAD
Regards,
Andy
next prev parent reply other threads:[~2011-05-22 3:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-10 0:36 Enable IR on hdpvr Jason Gauthier
[not found] ` <8AFBEFD7-69E3-4E71-B155-EA773C2FED43@wilsonet.com>
2011-01-10 12:07 ` Andy Walls
2011-01-10 12:12 ` Maybe I'll hack on lirc_zilog.c this coming weekend (Re: Enable IR on hdpvr) Andy Walls
2011-01-10 19:51 ` Jarod Wilson
2011-01-10 12:24 ` Enable IR on hdpvr Janne Grunau
2011-01-10 14:25 ` Jason Gauthier
2011-01-10 19:50 ` Jarod Wilson
2011-01-12 4:40 ` Jarod Wilson
2011-01-12 13:49 ` Jason Gauthier
2011-01-12 23:45 ` Andy Walls
2011-01-13 2:16 ` Jason Gauthier
2011-01-13 5:31 ` Andy Walls
2011-05-21 18:19 ` Jason Gauthier
2011-05-21 18:46 ` Jason Gauthier
2011-05-22 2:02 ` [SOLVED] " Jason Gauthier
2011-05-22 2:13 ` [SOLVED (not really)] " Jason Gauthier
2011-05-22 3:02 ` Andy Walls [this message]
2011-05-22 3:17 ` [SOLVED] " Jason Gauthier
2011-01-13 5:23 ` Andy Walls
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=8a8e1761-e060-4e3f-84bb-b04fdf5e55c5@email.android.com \
--to=awalls@md.metrocast.net \
--cc=jgauthier@lastar.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox