mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
audio: omitting audiodev= parameter is only deprecated
Unfortunately, changes introduced in af2041ed2d
"audio: audiodev=
parameters no longer optional when -audiodev present" breaks backward
compatibility. This patch changes the error into a deprecation warning.
Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com>
Message-id: 02d4328c33455742d01e0b62395013e95293c3ba.1566847960.git.DirtY.iCE.hu@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
725662d6db
commit
4b3b7793e1
2 changed files with 11 additions and 4 deletions
|
@ -1412,8 +1412,9 @@ static AudioState *audio_init(Audiodev *dev, const char *name)
|
|||
drvname = AudiodevDriver_str(dev->driver);
|
||||
} else if (!QTAILQ_EMPTY(&audio_states)) {
|
||||
if (!legacy_config) {
|
||||
dolog("You must specify an audiodev= for the device %s\n", name);
|
||||
exit(1);
|
||||
dolog("Device %s: audiodev default parameter is deprecated, please "
|
||||
"specify audiodev=%s\n", name,
|
||||
QTAILQ_FIRST(&audio_states)->dev->id);
|
||||
}
|
||||
return QTAILQ_FIRST(&audio_states);
|
||||
} else {
|
||||
|
@ -1548,8 +1549,7 @@ CaptureVoiceOut *AUD_add_capture(
|
|||
|
||||
if (!s) {
|
||||
if (!legacy_config) {
|
||||
dolog("You must specify audiodev when trying to capture\n");
|
||||
return NULL;
|
||||
dolog("Capturing without setting an audiodev is deprecated\n");
|
||||
}
|
||||
s = audio_init(NULL, NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue