<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-dev/drivers/media/IR, branch master</title>
<subtitle>Linux kernel development work - see feature branches</subtitle>
<id>https://git.zx2c4.com/linux-dev/atom/drivers/media/IR?h=master</id>
<link rel='self' href='https://git.zx2c4.com/linux-dev/atom/drivers/media/IR?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/'/>
<updated>2010-12-29T10:16:36Z</updated>
<entry>
<title>[media] rename drivers/media/IR to drives/media/rc</title>
<updated>2010-12-29T10:16:36Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
<email>mchehab@redhat.com</email>
</author>
<published>2010-11-10T02:00:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=32cf86f6d16367db5a10039c1dd938a2427d697c'/>
<id>urn:sha1:32cf86f6d16367db5a10039c1dd938a2427d697c</id>
<content type='text'>
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] ir-core: more cleanups of ir-functions.c</title>
<updated>2010-12-29T10:16:36Z</updated>
<author>
<name>David HÃ¤rdeman</name>
<email>david@hardeman.nu</email>
</author>
<published>2010-10-29T19:08:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=3ffea4988be3f3fa65f2104ba31eff2b5e0e82a0'/>
<id>urn:sha1:3ffea4988be3f3fa65f2104ba31eff2b5e0e82a0</id>
<content type='text'>
cx88 only depends on VIDEO_IR because it needs ir_extract_bits().
Move that function to ir-core.h and make it inline.

Lots of drivers had dependencies on VIDEO_IR when they really
wanted IR_CORE.

The only remaining drivers to depend on VIDEO_IR are bt8xx and
saa7134 (ir_rc5_timer_end is the only function exported by
ir-functions).

Rename VIDEO_IR -&gt; IR_LEGACY to give a hint to anyone writing or
converting drivers to IR_CORE that they do not want a dependency
on IR_LEGACY.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Acked-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] ir-core: remove remaining users of the ir-functions keyhandlers</title>
<updated>2010-12-29T10:16:35Z</updated>
<author>
<name>David HÃ¤rdeman</name>
<email>david@hardeman.nu</email>
</author>
<published>2010-10-29T19:08:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=62c6503125389763a74911408d984c5dd09eeb97'/>
<id>urn:sha1:62c6503125389763a74911408d984c5dd09eeb97</id>
<content type='text'>
This patch removes the remaining usages of the ir_input_nokey() and
ir_input_keydown() functions provided by drivers/media/IR/ir-functions.c
by using the corresponding functionality in ir-core instead.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Acked-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] ir-core: convert drivers/media/video/cx88 to ir-core</title>
<updated>2010-12-29T10:16:35Z</updated>
<author>
<name>David Härdeman</name>
<email>david@hardeman.nu</email>
</author>
<published>2010-10-29T19:08:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=2997137be8eba5bf9c07a24d5fda1f4225f9ca7d'/>
<id>urn:sha1:2997137be8eba5bf9c07a24d5fda1f4225f9ca7d</id>
<content type='text'>
This patch converts the cx88 driver (for sampling hw) to use the
decoders provided by ir-core instead of the separate ones provided
by ir-functions (and gets rid of those).

The value for MO_DDS_IO had a comment saying it corresponded to
a 4kHz samplerate. That comment was unfortunately misleading. The
actual samplerate was something like 3250Hz.

The current value has been derived by analyzing the elapsed time
between interrupts for different values (knowing that each interrupt
corresponds to 32 samples).

Thanks to Mariusz Bialonczyk &lt;manio@skyboo.net&gt; for testing my patches
(about one a day for two weeks!) on actual hardware.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Acked-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] mceusb: set a default rx timeout</title>
<updated>2010-12-20T16:11:18Z</updated>
<author>
<name>Jarod Wilson</name>
<email>jarod@redhat.com</email>
</author>
<published>2010-12-16T15:40:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=501aaa110a4269c99eff9736a81b5f93bb8b59be'/>
<id>urn:sha1:501aaa110a4269c99eff9736a81b5f93bb8b59be</id>
<content type='text'>
Its possible for the call to read rx timeout from the hardware to fail,
in which case we end up with a bogus rx timeout value. Set a default one
when filling in the rc struct, and we'll just overwrite it later w/the
value from hardware, but if that read fails, we've at least got a sane
rx timeout value to work with (1000ms is the default value I've seen
returned on most if not all mceusb hardware).

Signed-off-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] mceusb: fix inverted mask inversion logic</title>
<updated>2010-12-20T16:11:17Z</updated>
<author>
<name>Jarod Wilson</name>
<email>jarod@redhat.com</email>
</author>
<published>2010-12-15T22:20:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=d8cc7fd7e6371026c15254a35e618d2e5c5bf562'/>
<id>urn:sha1:d8cc7fd7e6371026c15254a35e618d2e5c5bf562</id>
<content type='text'>
As it turns out, somewhere along the way, we managed to invert the
meaning of the tx_mask_inverted flag. Looking back over the old lirc
driver, tx_mask_inverted was set to 0 if the device was in tx_mask_list.
Now we have a tx_mask_inverted flag set to 1 for all the devices that
were in the list, and set tx_mask_inverted to that flag value, which is
actually the opposite of what we used to set, causing set_tx_mask to use
the wrong mask setting option. Since there seem to be more devices with
inverted masks than not (using the original device as the baseline for
inverted vs. normal), lets just call the ones currently marked as
inverted normal instead, and flip the if/else actions that key off of
the inverted flag.

Note: the problem only cropped up if a call to set_tx_mask was made, if
no mask was set, the device would work just fine, which is why this
managed to slip though w/o getting noticed until now.

Tested successfully by myself and Dennis Gilmore.

Reported-by: Dennis Gilmore &lt;dgilmore@redhat.com&gt;
Signed-off-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] mceusb: add another Fintek device ID</title>
<updated>2010-12-20T16:11:16Z</updated>
<author>
<name>Jarod Wilson</name>
<email>jarod@redhat.com</email>
</author>
<published>2010-12-16T16:27:11Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=fbb1f1b0db9b196928157f97515a7ea537310ebc'/>
<id>urn:sha1:fbb1f1b0db9b196928157f97515a7ea537310ebc</id>
<content type='text'>
Signed-off-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] lirc_dev: fixes in lirc_dev_fop_read()</title>
<updated>2010-12-20T16:11:15Z</updated>
<author>
<name>Dan Carpenter</name>
<email>error27@gmail.com</email>
</author>
<published>2010-11-17T05:20:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=250f7a5f62a08985af5cf7728ae7ba9edbfdc0a9'/>
<id>urn:sha1:250f7a5f62a08985af5cf7728ae7ba9edbfdc0a9</id>
<content type='text'>
This makes several changes but they're in one function and sort of
related:

"buf" was leaked on error.  The leak if we try to read an invalid
length is the main concern because it could be triggered over and
over.

If the copy_to_user() failed, then the original code returned the
number of bytes remaining.  read() is supposed to be the opposite way,
where we return the number of bytes copied.  I changed it to just return
-EFAULT on errors.

Also I changed the debug output from "-EFAULT" to just "&lt;fail&gt;" because
it isn't -EFAULT necessarily.  And since we go though that path if the
length is invalid now, there was another debug print that I removed.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Reviewed-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Acked-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] lirc_dev: stray unlock in lirc_dev_fop_poll()</title>
<updated>2010-12-20T16:11:14Z</updated>
<author>
<name>Dan Carpenter</name>
<email>error27@gmail.com</email>
</author>
<published>2010-11-17T05:12:23Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=5c769a68beaee924e1dc90bf06e1b087b1d46237'/>
<id>urn:sha1:5c769a68beaee924e1dc90bf06e1b087b1d46237</id>
<content type='text'>
We shouldn't unlock here.  I think this was a cut and paste error.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Acked-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] rc: fix sysfs entry for mceusb and streamzap</title>
<updated>2010-12-20T16:11:13Z</updated>
<author>
<name>Paul Bender</name>
<email>pebender@gmail.com</email>
</author>
<published>2010-12-16T16:23:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/linux-dev/commit/?id=635f76b2aa8ef3e8436dedddc8baa6f7f438dc40'/>
<id>urn:sha1:635f76b2aa8ef3e8436dedddc8baa6f7f438dc40</id>
<content type='text'>
When trying to create persistent device names for mceusb and streamzap
devices, I noticed that their respective drivers are not creating the rc
device as a child of the USB device. Rather it creates it as virtual
device. As a result, udev cannot use the USB device information to
create persistent device names for event and lirc devices associated
with the rc device. Not having persistent device names makes it more
difficult to make use of the devices in userspace as their names can
change.

Signed-off-by: Paul Bender &lt;pebender@gmail.com&gt;
Signed-off-by: Jarod Wilson &lt;jarod@redhat.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
</feed>
