Advertisement
Guest User

interface acquired from component

a guest
Oct 24th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. title Interface acquired from Component
  2. participant "C2Client" as Client
  3. participant "C2ComponentStore" as Store
  4. participant "C2ComponentInterface" as Intf
  5. participant "C2Component" as Comp
  6. participant "KernelDriver" as Driver
  7.  
  8. Client -> +Store : createComponent("qcom.avc.decoder")
  9. Store -> Comp : create
  10. Comp -> Driver : open
  11. Comp -> Intf : create
  12. Store --> -Client :
  13.  
  14. Client -> Comp : intf()
  15. Comp --> Client : return interface-handle
  16.  
  17. note left of Client : enumerate supported params
  18. Client -> Intf : getSuppotedParams
  19. Intf --> Client : list of supported params
  20. Client -> Intf : getSuppotedValues
  21. Intf --> Client : list of supported values
  22.  
  23. note left of Client : query parameters
  24. Client -> +Intf : query_nb()
  25. note right of Intf : query is not\nrouted to component
  26. Intf --> -Client : populate heap and stack params
  27.  
  28. note left of Client : configure component
  29. Client -> +Intf : config_nb()
  30. Intf -> Comp : config()
  31. Comp -> Driver : set-controls
  32. Driver --> Comp : return failures (unlikely)
  33. Comp --> Intf :
  34. Intf --> Intf : update C2SettingResult
  35. Intf --> -Client :
  36.  
  37. note left of Client : commit_sm()
  38. Client -> +Intf : commit_sm()
  39. Intf -> Comp : commit
  40. Comp -> Driver : reserve
  41. Intf --> -Client :
  42.  
  43. Client -> Comp : start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement