summaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-ApiHat.c
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-09-18 18:04:14 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-01 10:57:28 +0200
commit002dccbe68aae864f816f53b6ac92528bd42ab6d (patch)
treea15aa9131a0394c8a7e639320503b5017cdaf0d7 /alsa-binding/Alsa-ApiHat.c
parentce13200ec80d667418b796afbb7d55a5f66d1c76 (diff)
Add verb to get PCM availability
Add verb to get PCM availability, this verb will return a boolean json. PCM can be specified using two ways : - card & device & subdevice & stream - pcmName & stream BUG-AGL: SPEC-2834 Change-Id: I176fdc261fa117906a2af069d3ddd07d5941904c Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'alsa-binding/Alsa-ApiHat.c')
-rw-r--r--alsa-binding/Alsa-ApiHat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/alsa-binding/Alsa-ApiHat.c b/alsa-binding/Alsa-ApiHat.c
index 5575a9a..13c450c 100644
--- a/alsa-binding/Alsa-ApiHat.c
+++ b/alsa-binding/Alsa-ApiHat.c
@@ -42,6 +42,7 @@ static const afb_verb_t api_verbs[] = {
/* VERB'S NAME FUNCTION TO CALL */
{ .verb = "ping", .callback = pingtest, .info="Ping Presence Check on API"},
{ .verb = "infoget", .callback = alsaGetInfo, .info="Return sound cards list"},
+ { .verb = "pcmready", .callback = alsaGetPcmAvailability, .info="Get Pcm availability"},
{ .verb = "ctlget", .callback = alsaGetCtls, .info="Get one or many control values"},
{ .verb = "ctlset", .callback = alsaSetCtls, .info="Set one control or more"},
{ .verb = "subscribe", .callback = alsaEvtSubscribe, .info="subscribe to alsa events"},