summaryrefslogtreecommitdiffstats
path: root/plugins/alsa/alsa-api-pcm.c
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2018-06-10 20:21:09 +0200
committerfulup <fulup.arfoll@iot.bzh>2018-06-10 20:21:09 +0200
commit515ed1a044cb0f9c44a88bf1900f0356ab080e42 (patch)
treee2996fd2f7ce0d21a70f3d774088560b51b32ef3 /plugins/alsa/alsa-api-pcm.c
parent0988ca005745619cb581cbee3380a149b35029af (diff)
Added cardid+verb return for capture+playback sndcard
Diffstat (limited to 'plugins/alsa/alsa-api-pcm.c')
-rw-r--r--plugins/alsa/alsa-api-pcm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/alsa/alsa-api-pcm.c b/plugins/alsa/alsa-api-pcm.c
index 64b852e..6560271 100644
--- a/plugins/alsa/alsa-api-pcm.c
+++ b/plugins/alsa/alsa-api-pcm.c
@@ -525,12 +525,13 @@ PUBLIC AlsaSndPcmT * ApiPcmAttachOne(SoftMixerT *mixer, const char *uid, snd_pcm
} else {
(void) asprintf(&apiVerb, "%s:capture", pcm->uid);
(void) asprintf(&apiInfo, "HAL:%s SND_PCM_STREAM_PLAYBACK", uid);
- }
+ }
+
apiVerbHandleT *handle = calloc(1, sizeof (apiVerbHandleT));
handle->uid = uid;
handle->pcm = pcm;
handle->mixer = mixer;
-
+ pcm->verb=apiVerb;
error = afb_dynapi_add_verb(mixer->api, apiVerb, apiInfo, ApiPcmVerbCB, handle, NULL, 0);
if (error) {
AFB_ApiError(mixer->api, "ApiPcmAttachOne mixer=%s verb=%s fail to Register Master control ", mixer->uid, apiVerb);