From c6e6cf2c36b08504bae115ddab97b45abc3750c7 Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Wed, 3 Apr 2019 17:55:13 +1100 Subject: Refactor 'sealed' to 'configured', as per kernel module Signed-off-by: Mark Farrugia --- src/avirt-config.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/avirt-config.c b/src/avirt-config.c index 267c727..45a54b7 100644 --- a/src/avirt-config.c +++ b/src/avirt-config.c @@ -100,7 +100,7 @@ } while (0) static bool configfs_mounted = false; -static bool card_sealed = false; +static bool card_configured = false; static int card_index = -1; static int mount_configfs() @@ -216,10 +216,10 @@ static int snd_avirt_configfs_item_new(const char *name, IS_CONFIGFS_MOUNTED(); - // Check if card is already sealed - if (card_sealed) + // Check if card is already configured + if (card_configured) { - AVIRT_ERROR("Card is already sealed!"); + AVIRT_ERROR("Card is already configured!"); return -EPERM; } @@ -468,28 +468,28 @@ int snd_avirt_route_new(const char *name, int channels, int direction, return 0; } -int snd_avirt_card_seal() +int snd_avirt_card_configure() { char cmd[128]; char path_sealed[AVIRT_CONFIGFS_PATH_MAXLEN]; snd_pcm_info_t *route_pcm_info; int err = 0; - // Check if card is already sealed - if (card_sealed) + // Check if card is already configured + if (card_configured) { - AVIRT_ERROR("Card is already sealed!"); + AVIRT_ERROR("Card is already configured!"); return -EPERM; } IS_CONFIGFS_MOUNTED(); strcpy(path_sealed, AVIRT_CONFIGFS_PATH_STREAMS); - strcat(path_sealed, "/sealed"); + strcat(path_sealed, "/configured"); WRITE_TO_PATH(path_sealed, "%d", 1); - AVIRT_DEBUG("Card sealed!"); - card_sealed = true; + AVIRT_DEBUG("Card configured!"); + card_configured = true; if (card_index < 0) card_index = snd_avirt_card_index_get(0); -- cgit 1.2.3-korg