media: ddbridge: fix output buffer check
authorDaniel Scheller <d.scheller@gmx.net>
Mon, 9 Apr 2018 16:47:44 +0000 (12:47 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 14:39:59 +0000 (10:39 -0400)
commit28473a197aeae3e12fc85ba3ddec1181a8fee882
treebefa30d8ef47140871be3a9dd4d4e07e220f79b4
parente415eec4583349ba843495fd746fc7bbc19906f8
media: ddbridge: fix output buffer check

A 188 byte gap has to be left between the writer and the consumer. This
requires 2*188 bytes available to be able to write to the output buffers.
So, change ddb_output_free() to report free bytes according to this rule.

Picked up from the upstream dddvb-0.9.33 release.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/ddbridge/ddbridge-core.c