summaryrefslogtreecommitdiffstats
path: root/Alsa-Plugin/Alsa-Policy-Hook/README.md
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-03 21:56:01 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-03 21:56:01 +0200
commit33c2cd0236823d108cbb21af34b8d7843d117ac1 (patch)
treed206f292a0ec54beb0af54dbedf66da85f0f0e39 /Alsa-Plugin/Alsa-Policy-Hook/README.md
parent070ccac33d65c651c972dfab9c6148e43d8d5d8e (diff)
Initial version of Policy Control
Diffstat (limited to 'Alsa-Plugin/Alsa-Policy-Hook/README.md')
-rw-r--r--Alsa-Plugin/Alsa-Policy-Hook/README.md34
1 files changed, 20 insertions, 14 deletions
diff --git a/Alsa-Plugin/Alsa-Policy-Hook/README.md b/Alsa-Plugin/Alsa-Policy-Hook/README.md
index 108c2b5..ce0553c 100644
--- a/Alsa-Plugin/Alsa-Policy-Hook/README.md
+++ b/Alsa-Plugin/Alsa-Policy-Hook/README.md
@@ -27,27 +27,33 @@ pcm_hook_type.MyHookPlugin {
# --------------------------------------------------------------------
pcm.MyNavigationHook {
type hooks
- slave.pcm "MyMixerPCM" # Target PCM to effectively play sound
+ slave.pcm "MyMixerPCM"
- # Call request that should succeed before accessing slave PCM
+ # Defined used hook sharelib and provide arguments/config to install func
hooks.0 {
- type "MyHookPlugin" # Name=xxxx should match with pcm_hook_type.xxxx
+ type "MyHookPlugin"
hook_args {
+ verbose true # print few log messages (default false);
- # URI to AGL-Advance-Audio-Agent binder
+ # Every Call should return OK in order PCM to open (default timeout 100ms)
uri "ws://localhost:1234/api?token='audio-agent-token'"
-
- # Call request to send to binder (initial label is free, query is optional)
request {
- MyFirstCheck {
- api "alsacore"
- verb "ping"
+ # Request autorisation to write on navigation
+ RequestNavigation {
+ api "polctl"
+ verb "navigation"
}
- MySecondCheck {
- api "alsacore"
- verb "ucmset"
- query "{'devid':'hw:v1340','verb':'Navigation','dev':'speakers'}"
- }
+ # subscribe to Audio Agent Event
+ SubscriveEvents {
+ api "polctl"
+ verb "monitor"
+ }
+ # force PCM stop after 10s
+ TestAutoStop {
+ api "polctl"
+ verb "event_test"
+ query "{'label':'stop', 'delay':10000}"
+ }
}
}
}