mixer: renamed mix_* options to mixer_*
There is no reason to use the shortcut "mix" instead of "mixer".
This commit is contained in:
@@ -43,9 +43,9 @@ alsa_mixer_configure(struct alsa_mixer *am, ConfigParam *param)
|
||||
{
|
||||
BlockParam *bp;
|
||||
|
||||
if ((bp = getBlockParam(param, "mix_device")))
|
||||
if ((bp = getBlockParam(param, "mixer_device")))
|
||||
am->device = bp->value;
|
||||
if ((bp = getBlockParam(param, "mix_control")))
|
||||
if ((bp = getBlockParam(param, "mixer_control")))
|
||||
am->control = bp->value;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,11 +53,11 @@ void
|
||||
oss_mixer_configure(struct oss_mixer *om, ConfigParam *param)
|
||||
{
|
||||
BlockParam *bp;
|
||||
bp = getBlockParam(param, "mix_device");
|
||||
bp = getBlockParam(param, "mixer_device");
|
||||
if (bp) {
|
||||
om->device = bp->value;
|
||||
}
|
||||
bp = getBlockParam(param, "mix_control");
|
||||
bp = getBlockParam(param, "mixer_control");
|
||||
if (bp) {
|
||||
om->control = bp->value;
|
||||
}
|
||||
|
||||
@@ -57,12 +57,12 @@ mixer_reconfigure(char *driver)
|
||||
param = getConfigParam(CONF_MIXER_DEVICE);
|
||||
if (param) {
|
||||
g_warning("deprecated option mixer_device found, translating to %s config section\n", driver);
|
||||
addBlockParam(newparam, "mix_device", param->value, -1);
|
||||
addBlockParam(newparam, "mixer_device", param->value, -1);
|
||||
}
|
||||
param = getConfigParam(CONF_MIXER_CONTROL);
|
||||
if (param) {
|
||||
g_warning("deprecated option mixer_control found, translating to %s config section\n", driver);
|
||||
addBlockParam(newparam, "mix_control", param->value, -1);
|
||||
addBlockParam(newparam, "mixer_control", param->value, -1);
|
||||
}
|
||||
if (newparam->numberOfBlockParams > 0) {
|
||||
//call configure method of corrensponding mixer
|
||||
|
||||
Reference in New Issue
Block a user