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-01-30 15:11:25 +1100 |
commit | 0e2278875ea5ec6777018cc792adcc34b8463050 (patch) | |
tree | f2c1cf757500ba9a08271e9959197cc73c99839e | |
parent | 450838ec65119149cff3cdfa97f5cecfa5173ee5 (diff) |
Fix configure callback logging, tidy unused variables
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
-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; |