diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2019-01-30 15:11:12 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2019-03-05 10:33:28 +1100 |
commit | 0f3bc623dd2dee19be430db00e7f9cbbf922e117 (patch) | |
tree | 1b4d3bd5a15d7e4d4819d6a48172dc8398f483c2 /core.c | |
parent | 3aec39f4efd5d62d73867daa47a86d93062ab2ef (diff) |
Fix configure callback logging, tidy unused variables
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'core.c')
-rw-r--r-- | core.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -349,7 +349,7 @@ struct snd_avirt_audiopath *snd_avirt_audiopath_get(const char *uid) struct snd_avirt_audiopath_obj *ap_obj; list_for_each_entry(ap_obj, &audiopath_list, list) { - //D_INFOK("snd_avirt_audiopath_get, map:%s", uid); + //D_INFOK("snd_avirt_audiopath_get, map:%s", uid); if (!strcmp(ap_obj->path->uid, uid)) return ap_obj->path; @@ -471,10 +471,7 @@ int snd_avirt_streams_seal(void) { int err = 0, i = 0; struct snd_avirt_audiopath_obj *ap_obj; - struct snd_avirt_stream *stream; struct snd_avirt_stream_array stream_array; - struct config_item *item; - struct list_head *entry; if (core.streams_sealed) { D_ERRORK("streams are already sealed!"); @@ -482,12 +479,15 @@ int snd_avirt_streams_seal(void) } list_for_each_entry(ap_obj, &audiopath_list, list) { - D_INFOK("configure() AP uid: %s", ap_obj->path->uid); for (i = 0; i < MAX_STREAMS; i++) stream_array.streams[i] = NULL; stream_array.count = 0; - if (snd_avirt_streams_get(ap_obj->path->uid, &stream_array) > 0) + if (snd_avirt_streams_get(ap_obj->path->uid, &stream_array) > + 0) { + D_INFOK("Do configure for AP: %s streams:%d", + ap_obj->path->uid, stream_array.count); ap_obj->path->configure(core.card, &stream_array); + } } core.streams_sealed = true; |