diff options
Diffstat (limited to 'src/mixer/alsa_mixer.c')
-rw-r--r-- | src/mixer/alsa_mixer.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mixer/alsa_mixer.c b/src/mixer/alsa_mixer.c index 72924058b..7dafd22cc 100644 --- a/src/mixer/alsa_mixer.c +++ b/src/mixer/alsa_mixer.c @@ -46,18 +46,21 @@ static void alsa_mixer_configure(struct mixer_data *data, struct config_param *param) { struct alsa_mixer *am = (struct alsa_mixer *)data; - struct block_param *bp; + const char *value; if (param == NULL) return; - if ((bp = getBlockParam(param, "mixer_device"))) { + value = config_get_block_string(param, "mixer_device", NULL); + if (value != NULL) { g_free(am->device); - am->device = g_strdup(bp->value); + am->device = g_strdup(value); } - if ((bp = getBlockParam(param, "mixer_control"))) { + + value = config_get_block_string(param, "mixer_control", NULL); + if (value != NULL) { g_free(am->control); - am->control = g_strdup(bp->value); + am->control = g_strdup(value); } } |