<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/dvb/dvb-core, branch linux-3.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2011-07-27T20:56:02Z</updated>
<entry>
<title>Revert "[media] DVB: dvb_frontend: off by one in dtv_property_dump()"</title>
<updated>2011-07-27T20:56:02Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2011-07-15T11:49:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=106ff9e013f60e2f40687d4f8b43c164873b5544'/>
<id>urn:sha1:106ff9e013f60e2f40687d4f8b43c164873b5544</id>
<content type='text'>
This reverts commit a3e4adf274f86b2363fedaa964297cb38526cef0.

As pointed by Andread Oberritter &lt;obi@linuxtv.org&gt;:

	That's wrong, because the array size is DTV_MAX_COMMAND + 1.
	Using the ARRAY_SIZE macro instead might reduce the confusion.

Also, changeset 3995223038 already fixed this issue.

Reported-by: Andread Oberritter &lt;obi@linuxtv.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] DVB: dvb_frontend: off by one in dtv_property_dump()</title>
<updated>2011-07-27T20:55:55Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2011-05-26T08:44:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bca3ba7904426bb94ee1a91e6e88831483fb5d53'/>
<id>urn:sha1:bca3ba7904426bb94ee1a91e6e88831483fb5d53</id>
<content type='text'>
If the tvp-&gt;cmd == DTV_MAX_COMMAND then we read past the end of the
array.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] DVB: dvb_frontend: fix dtv_property_dump for DTV_DVBT2_PLP_ID</title>
<updated>2011-07-27T20:52:24Z</updated>
<author>
<name>Andreas Oberritter</name>
</author>
<published>2011-05-26T10:54:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ec05a642140c7c34f7ba1cb8a94be9b1154286ae'/>
<id>urn:sha1:ec05a642140c7c34f7ba1cb8a94be9b1154286ae</id>
<content type='text'>
- Add missing entry to array "dtv_cmds".
- Set array size to DTV_MAX_COMMAND + 1 to avoid future off-by-ones.

Reported-by: Dan Carpenter &lt;error27@gmail.com&gt;
Signed-off-by: Andreas Oberritter &lt;obi@linuxtv.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>dvb_net: Simplify the code if DVB NET is not defined</title>
<updated>2011-07-27T20:52:20Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2011-06-01T16:03:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fcc8e7d8c0e228cf032de0df049a91d5d2bfd0e9'/>
<id>urn:sha1:fcc8e7d8c0e228cf032de0df049a91d5d2bfd0e9</id>
<content type='text'>
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] Make DVB NET configurable in the kernel</title>
<updated>2011-07-27T20:52:20Z</updated>
<author>
<name>Hans Petter Selasky</name>
</author>
<published>2011-05-23T12:43:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a34ff6cdbb464b3e37f0cbb6b0cff9dab4ee057b'/>
<id>urn:sha1:a34ff6cdbb464b3e37f0cbb6b0cff9dab4ee057b</id>
<content type='text'>
Signed-off-by: Hans Petter Selasky &lt;hselasky@c2i.net&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] dvb_frontend: fix race condition in stopping/starting frontend</title>
<updated>2011-07-13T22:50:12Z</updated>
<author>
<name>Devin Heitmueller</name>
</author>
<published>2011-07-05T00:55:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2d1969312d6319d28ae9609a84f969b6933bd51c'/>
<id>urn:sha1:2d1969312d6319d28ae9609a84f969b6933bd51c</id>
<content type='text'>
Attached is a patch which addresses a race condition in the DVB core
related to closing/reopening the DVB frontend device in quick
succession.  This is the reason that devices such as the HVR-1300,
HVR-3000, and HVR-4000 have been failing to scan properly under MythTV
and w_scan.

The gory details of the race are described in the patch.

Devin

There is a race condition exhibited when channel scanners such as w_scan and
MythTV quickly close and then reopen the frontend device node.

Under normal conditions, the behavior is as follows:

1.  Application closes the device node
2.  DVB frontend ioctl calls dvb_frontend_release which sets
    fepriv-&gt;release_jiffies
3.  DVB frontend thread *eventually* calls dvb_frontend_is_exiting() which
    compares fepriv-&gt;release_jiffies, and shuts down the thread if timeout has
    expired
4.  Thread goes away
5.  Application opens frontend device
6.  DVB frontend ioctl() calls ts_bus_ctrl(1)
7.  DVB frontend ioctl() creates new frontend thread, which calls
    dvb_frontend_init(), which has demod driver init() routine setup initial
    register state for demod chip.
8.  Tuning request is issued.

The race occurs when the application in step 5 performs the new open() call
before the frontend thread is shutdown.  In this case the ts_bus_ctrl() call
is made, which strobes the RESET pin on the demodulator, but the
dvb_frontend_init() function never gets called because the frontend thread
hasn't gone away yet.  As a result, the initial register config for the demod
is *never* setup, causing subsequent tuning requests to fail.

If there is time between the close and open (enough for the dvb frontend
thread to be torn down), then in that case the new frontend thread is created
and thus the dvb_frontend_init() function does get called.

The fix is to set the flag which forces reinitialization if we did in fact
call ts_bus_ctrl().

This problem has been seen on the HVR-1300, HVR-3000, and HVR-4000, and is
likely occuring on other designs as well where ts_bus_ctrl() actually strobes
the reset pin on the demodulator.

Note that this patch should supercede any patches submitted for the
1300/3000/4000 which remove the code that removes GPIO code in
cx8802_dvb_advise_acquire(), which have been circulating by users for some
time now...

Canonical tracking this issue in Launchpad 439163:

Thanks to Jon Sayers from Hauppauge and Florent Audebert from Anevia S.A. for
providing hardware to test/debug with.

Signed-off-by: Devin Heitmueller &lt;dheitmueller@kernellabs.com&gt;
Cc: Jon Sayers &lt;j.sayers@hauppauge.co.uk&gt;
Cc: Florent Audebert &lt;florent.audebert@anevia.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] DVB: allow to read back of detected parameters through S2API</title>
<updated>2011-05-20T22:53:31Z</updated>
<author>
<name>Andreas Oberritter</name>
</author>
<published>2011-05-08T23:03:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bbe880b4a7c66ba14b67ee7acfbaaaa1c7be2d03'/>
<id>urn:sha1:bbe880b4a7c66ba14b67ee7acfbaaaa1c7be2d03</id>
<content type='text'>
Signed-off-by: Andreas Oberritter &lt;obi@linuxtv.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] DVB: dvb_frontend: add parameters_out</title>
<updated>2011-05-20T22:53:00Z</updated>
<author>
<name>Andreas Oberritter</name>
</author>
<published>2011-05-08T23:03:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a5959dbea37973a2440eeba39fba32c79d862ec2'/>
<id>urn:sha1:a5959dbea37973a2440eeba39fba32c79d862ec2</id>
<content type='text'>
- Holds the parameters detected by the demod.
- Updated on every call to get_frontend, either through ioctl or when
  a frontend event occurs.
- Reset to input parameters after every call to set_frontend, tune or
  search/track.

Signed-off-by: Andreas Oberritter &lt;obi@linuxtv.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] DVB: dvb_frontend: use shortcut to access fe-&gt;dtv_property_cache</title>
<updated>2011-05-20T22:52:32Z</updated>
<author>
<name>Andreas Oberritter</name>
</author>
<published>2011-05-08T23:03:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=507277193253cd4ea44d0a55ade37bdef20f3a44'/>
<id>urn:sha1:507277193253cd4ea44d0a55ade37bdef20f3a44</id>
<content type='text'>
Signed-off-by: Andreas Oberritter &lt;obi@linuxtv.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
<entry>
<title>[media] DVB: dvb_frontend: remove unused assignments</title>
<updated>2011-05-20T22:52:15Z</updated>
<author>
<name>Andreas Oberritter</name>
</author>
<published>2011-05-08T23:03:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=68bdee041317116bccaf830a9ff8f46f9aa857bd'/>
<id>urn:sha1:68bdee041317116bccaf830a9ff8f46f9aa857bd</id>
<content type='text'>
Signed-off-by: Andreas Oberritter &lt;obi@linuxtv.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
</content>
</entry>
</feed>
