OSDN Git Service

media: em28xx: explicitly disable TS packet filter
authorRobert Schlabbach <Robert.Schlabbach@gmx.net>
Sat, 16 Jun 2018 19:04:22 +0000 (15:04 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 30 Jul 2018 14:00:40 +0000 (10:00 -0400)
commit157eb9a0b75e97ad390c6e50c7381b0a0e02fe97
treec5d7e429a295008a95e4adb971f9d45b2dd5b91c
parent8d9404ad6a6dbcca36a788049f716675a1110da8
media: em28xx: explicitly disable TS packet filter

The em28xx driver never touched the EM2874 register bits that control
the transport stream packet filters, leaving them at whatever default
the firmware has set. E.g. the Pinnacle 290e disables them by default,
while the Hauppauge WinTV dualHD enables discarding NULL packets by
default.

However, some applications require NULL packets, e.g. to determine the
load in DOCSIS segments, so discarding NULL packets is undesired for
such applications.

This patch simply extends the bit mask when starting or stopping the
transport stream packet capture, so that the filter bits are cleared.
It has been verified that this makes the Hauppauge WinTV dualHD pass
an unfiltered DVB-C stream including NULL packets, which it didn't
before.

Signed-off-by: Robert Schlabbach <Robert.Schlabbach@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/em28xx/em28xx-core.c