summaryrefslogtreecommitdiffstats
path: root/Alsa-Plugin/Alsa-Policy-Hook/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'Alsa-Plugin/Alsa-Policy-Hook/README.md')
-rw-r--r--Alsa-Plugin/Alsa-Policy-Hook/README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alsa-Plugin/Alsa-Policy-Hook/README.md b/Alsa-Plugin/Alsa-Policy-Hook/README.md
index 6a8e67e..20186db 100644
--- a/Alsa-Plugin/Alsa-Policy-Hook/README.md
+++ b/Alsa-Plugin/Alsa-Policy-Hook/README.md
@@ -7,7 +7,7 @@ Date : August-2017
Functionalities:
- Execute a set of websocket RPC request again AGL binders to allow/deny access
- - Keep websocket open in an idepandant thread on order to monitor event receive from AGL audio agent
+ - Keep websocket open in an idepandant thread on order to monitor event receive from AGL audio agent
Installation
- Alsaplugins are typically search in /usr/share/alsa-lib. Nevertheless a full path might be given
@@ -23,7 +23,7 @@ Config
# Define sharelib location and entry point
# -----------------------------------------
pcm_hook_type.MyHookPlugin {
- install "AlsaInstallHook"
+ install "AlsaInstallHook"
lib "/home/fulup/Workspace/AGL-AppFW/audio-bindings-dev/build/Alsa-Plugin/Alsa-Hook-Callback/alsa_hook_cb.so"
}
@@ -42,12 +42,12 @@ pcm.MyNavigationHook {
# Every Call should return OK in order PCM to open (default timeout 100ms)
uri "ws://localhost:1234/api?token='audio-agent-token'"
request {
- # Request autorisation to write on navigation
+ # Request autorisation to write on navigation
navigation-ctl {
api "control"
verb "dispatch"
args "{'target':'navigation', 'args':{'device':'Jabra SOLEMATE v1.34.0'}}"
- }
+ }
# subscribe to Audio Agent Event map them to signal
subscribe-evt {
api "control"
@@ -66,11 +66,11 @@ pcm.MyNavigationHook {
```
-NOTE:
+NOTE:
* Hook plugin is loaded by Alsa libasound within player context. It inherits client process attributes, as UID/GID or
the SMACK label on AGL. This smack label is tested by AGL security framework when requested a call on the audio-agent binder.
-As a result the call will only succeed it the permission attached the application in Cynara matches.
+As a result the call will only succeed it the permission attached the application in Cynara matches.
* Hook plugin keep a connection with the Audio-Agent until PCM is closed by the application. This connection allow the
Audio-Agent to send events. eg: pause, quit, mute, ... \ No newline at end of file