summaryrefslogtreecommitdiffstats
path: root/configfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'configfs.c')
-rw-r--r--configfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/configfs.c b/configfs.c
index 12e95a5..c19c2b5 100644
--- a/configfs.c
+++ b/configfs.c
@@ -49,6 +49,11 @@ static ssize_t cfg_snd_avirt_stream_map_store(struct config_item *item,
split = strsep((char **)&page, "\n");
memcpy(stream->map, (char *)split, count);
+ /* Create the PCM device now */
+ stream->pcm = snd_avirt_pcm_create(stream);
+ if (IS_ERROR_NULL(stream->pcm))
+ return 0;
+
return count;
}
CONFIGFS_ATTR(cfg_snd_avirt_stream_, map);