dmx: section filter fail with BYPASS_PKT setting [3/3]
authorZhiqiang Han <zhiqiang.han@amlogic.com>
Fri, 12 Jun 2020 07:23:35 +0000 (15:23 +0800)
committerZhiqiang Han <zhiqiang.han@amlogic.com>
Mon, 29 Jun 2020 05:56:22 +0000 (22:56 -0700)
commit733b2e7c1e09c7744aeb0217f2b55d9c055e9a87
treee4a2765cd4e5e8c8e3be30c0ea97433c676983f2
parent8bf6fdf8c10e0b3a0b9504a656963a7423813a78
dmx: section filter fail with BYPASS_PKT setting [3/3]

PD#SWPL-27787

Problem:
section data is interrupted when BYPASS_PACKET exists

Solution:
Change the BYPASS_PACKET to VIDEO_PACKET & RECORDER_STREAM.

To support PLAY & REC on the same dmx, rules are introduces:
1. no A/V on dmx, rec-data should be set to VIDEO_PACKET,
   then block it from being parser processed with stream id filter.
2. A or V is running, use RECORDER_STREAM,
   do not use BYPASS_PACKET, which will break the normal play.
3. keep VIDEO_PACKET existed, to get the sec filter working.

Verify:
Patchbuild

Change-Id: I29e39093806159cbf77fa898bc610a983b3df371
Signed-off-by: Zhiqiang Han <zhiqiang.han@amlogic.com>
drivers/stream_input/parser/hw_demux/aml_dmx.c