Commit graph

21 commits

Author SHA1 Message Date
Gareth Fenn
282fb370ab TunerHAL fixes
TunerHAL expects Hz
Fix stopRecordThread race
Push segment000000.ts to device
getFrontendIdByType() should return INVALID_ID when no FE found

Bug: 201556155
Test: VtsHalTvTunerV1_{0,1}TargetTest on BCM device
Change-Id: Idab6817e47f3e10f07a36a8b2fd805336b9f0e5d
Signed-off-by: Pierre Couillaud <pierre@broadcom.com>
2021-10-19 12:34:22 -07:00
Amy Zhang
e691505345 Refactor Tuner 1.0 vts to use dynamic configuration
This CL starts the refatoring of Tuner 1.0 vts configuration file
to replace the previous manual config with the current dynamic config
using xml/xsd.

Note that this CL only connects the frontend setting section with
the dynamic config. The CLs to connect other hardware configs will come as
child CLs.

This CL also has some default implementation/vts test impl changes to
sync the sc-dev vts 1.0 with the aosp.

Child CL will also replace the 1.1 manual config with the dynamic
config.

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 182519645
CTS-Coverage-Bug: 184077478
Change-Id: I13e6ea3d91e474c10e4f822a6ce59d99cc7c7d1d
2021-03-30 18:46:37 -07:00
Amy Zhang
45c1263a66 Fix Tuner 1.0 default implementation Demux and Frontend mapping
The previous impl keeps the demux and frontend mapping in the
Tuner implementation even the instance has been closed.

Clean up the mapping and the local vectors in the Tuner impl
when Demux or Frontend is closed.

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150952766
Change-Id: I2038e902ba7ab323c6dacc886ac6984ee7c475aa
2020-07-22 17:41:02 -07:00
Amy Zhang
e0422236e2 Enable frontend input loop when FrontendTune happens before Demux is
configured.

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 153366959
Change-Id: I6fa98e367a7530e308ea2a74e7efeb6ed4d3a56b
2020-06-12 13:05:24 -07:00
Amy Zhang
f4c09fbbd0 Add filter linkage test to the Tuner VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150953857
Change-Id: Ic98cf1655551623fdc4e4f7e6784faf814adfda5
2020-06-04 18:48:50 -07:00
shubang
f809faed3c Update FrontendInfo for CTS
Bug: 155342902
Test: atest android.media.tv.tuner.cts.TunerFrontendTest
Change-Id: Iacc0eb09499a14cbbb6cc605c91fa404361a073c
2020-04-29 18:16:39 -07:00
Amy Zhang
d8040b86f7 Merge "Make dvr tests a separate module" into rvc-dev 2020-04-25 00:48:21 +00:00
shubang
fd882510f3 Add Lnbs for CTS
Bug: 150952758
Test: atest android.media.tv.tuner.cts.TunerTest
Change-Id: I0e1954ceaa93c110dabc669759675834f30b9524
2020-04-22 14:59:03 -07:00
Amy Zhang
0fe25be005 Make dvr tests a separate module
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150989084
Change-Id: I35d717f357b176d5cbec5d154f4df30fd2c4a18e
2020-04-21 01:16:57 -07:00
shubang
b0c1bbb354 Add frontend caps for CTS
Bug: 150952758
Test: atest android.media.tv.tuner.cts.TunerTest
Change-Id: I5bf1fbf24ef6375b08554617bcd05792e7e9e521
2020-04-09 16:57:54 -07:00
Amy Zhang
050bf78644 Enhance and refactoring the Tuner VTS on searching frontend by type test
Test: atest VtsHalTvTunerV1_0TargetTest on cf and vendor device
Bug: 150953857
Change-Id: I9c90e34c6b336d20f5456e7f676ced699f166d54
2020-04-09 11:01:04 -07:00
Amy
d6afead9fc Copy filtered av data to ion buffer to test on cuttlefish
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150952766
Change-Id: If007f9c021102dc95be8e9dc70be70d3945192a9
2020-03-27 16:00:47 -07:00
shubang
ba232e44af Add getFrontendInfo/status default impl
Test: make; acloud create;
Change-Id: Ie1a81a8e571d430d7e464dc631bdfd2ba51077cc
2020-02-03 11:11:49 -08:00
Henry Fang
fe019ac3f7 Add DataId for Audio Handle in Audio Track
Test: Manual
bug: 135708935
Change-Id: I639d65999dbf1bf727837298804c350698a9f08a
2020-01-14 14:19:47 -08:00
Amy
5ed13574aa Adding a DVR Record default implementation in Tuner HAL 1.0
Test: cuttlefish
Bug: 135709325
Change-Id: I415426d6ec048bdd2ae61a3c5142ad02f1d7f1e4
2019-12-17 16:06:25 -08:00
Amy
5094ae172d Adding the mocking frontend tuning functionality to take specific ts
file as source of a Demux.

Test: atest
Bug: 135709325
Change-Id: I69849db58d68a7496f929940a74a63e7a9e6c6be
2019-10-08 11:21:02 -07:00
Amy
42a5b4b87f Adding a TS filter functionality into the Demux default impl
Test: atest
Bug: 135709325
Change-Id: I149104fd4c7d1ce413036b147365a49973455e72
2019-10-08 11:20:38 -07:00
Amy
016b73119c Add DVBC/DVBS/ISDBT/ISDBS/ISDBS3/ATSC3 support default implementation
Test: manual
Bug: 135709325
Change-Id: I846c8d1f50ad636e9718cf792a29c8b076246c54
2019-09-24 13:54:27 -07:00
Amy
fd4243a951 Tuner HAL default implementation for Demux and Descrambler Interface.
Bug: 135709325
Test: Manual
Change-Id: I38a92abb761d2d39e8e6a495f2d93dee5f1c9d90
2019-08-21 19:15:47 -07:00
Henry Fang
f3eec03f42 Add Demux and Descrambler interface to Tuner HAL
Test: Manual
bug: 135709729

Change-Id: I78283acdd7c22a2d4a785fa050bedd5e7ccc593e
2019-08-21 18:13:51 -07:00
Amy
126ee92023 Tuner HAL default implementation for ATV for Tuner and Frontend Interface.
Bug: 135709325
Test: Manual
Change-Id: I5603e2c6dd71c46c9c5f3b0e25425c965e77ed0c
2019-08-14 15:39:21 -07:00