summaryrefslogtreecommitdiffstats
path: root/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'core.c')
-rw-r--r--core.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/core.c b/core.c
index 32b7e22..7541ade 100644
--- a/core.c
+++ b/core.c
@@ -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;