media: ngene: move the tsin_exchange() stripcopy block into a function
authorDaniel Scheller <d.scheller@gmx.net>
Tue, 6 Mar 2018 17:46:36 +0000 (12:46 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 17:54:03 +0000 (12:54 -0500)
commite5fc6767ea4705b1b50de2eb73a99481f5cc1e96
treef1625c0d12d02b9e917cfb3bd64d36a74ddf44fb
parent88cfc33f557241fc0ab415fac37cff0a1d6bbb59
media: ngene: move the tsin_exchange() stripcopy block into a function

Move the copy logic that will skip previously inserted TS NULL frames when
moving data to the DVB ring buffers into an own function. This is done to
not duplicate code all over the place with the following TS offset shift
fixup patch.

While we're touching this part of the code, get rid of the DEBUG_CI_XFER
debug-ifdeffery. This could be toggleable either by a Kconfig or a module
param, but in the end this will accidentally be enabled and cause lots
of kernel log messages, and such devel debug shouldn't be there anyway.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ngene/ngene-dvb.c