From 1b8e8c7a0b998e9e458094e5f1b7b60bc1c4b297 Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Mon, 8 Oct 2018 12:06:46 +1100 Subject: Refactor avirt_card_register, move PCM creation to it. When creating the PCMs we need information regarding the stream's mapping. For the loopback, we need to add both playback and capture substreams. Signed-off-by: Mark Farrugia --- configfs.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'configfs.c') diff --git a/configfs.c b/configfs.c index 6a82b0b..924866c 100644 --- a/configfs.c +++ b/configfs.c @@ -153,11 +153,6 @@ static ssize_t cfg_avirt_stream_group_sealed_store(struct config_item *item, unsigned long tmp; char *p = (char *)page; - if (__avirt_streams_sealed()) { - pr_err("AVIRT streams are already sealed!\n"); - return -EPERM; - } - CHK_ERR(kstrtoul(p, 10, &tmp)); if (tmp != 1) { @@ -165,7 +160,7 @@ static ssize_t cfg_avirt_stream_group_sealed_store(struct config_item *item, return -ERANGE; } - CHK_ERR(__avirt_card_register()); + __avirt_streams_seal(); return count; } -- cgit 1.2.3-korg