TV control API multiple module use case clarification

Hi,
    We at Broadcom have implemented TV stack following TV control API
Specification
(https://www.w3.org/2015/tvapi/Overview.html).

    We have usecases involving multiple modules that requires TVTuner. We
need some clarification on how to use the apis to handle the following
scenario.

Scenario: There are two modules A and B. There is one tuner, tuner1.
Module A uses tuner1 and performs its functionality.
Module A is finished with its function and release tuner1.
Module B now wants to be able to use same tuner1 to acheive a different
functionality.

Module A could find tuner1 using TVManager::getTuners()
But, once it is done using tuner1, how can moduleA inform TVManager that
tuner1 is free so that moduleB can find tuner1 using TVManager::getTuners().

We see there is ontunerchanged event. But how can TVManager be aware when
module A has finished using tuner1 in order to fire ontunerchanged event.
Is there any api ModuleA can call to inform TVManager that tuner1 is free?

Could you please clarify if these scenarios can be handled using TVManager
apis?
If yes how do we have to use the apis.

Thanks,
Aginesh

Received on Tuesday, 14 June 2016 20:17:58 UTC