diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-08 12:06:46 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-26 17:27:39 +1100 |
commit | 1b8e8c7a0b998e9e458094e5f1b7b60bc1c4b297 (patch) | |
tree | ed61c88ecb60a872103d9d9bf153ba6532d0631f /configfs.c | |
parent | 85510ff4540c13609b3ec749a80638ae502fd098 (diff) |
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 <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'configfs.c')
-rw-r--r-- | configfs.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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; } |