audio: remove CONFIG_MIXEMU configure option
Signed-off-by: Bandan Das <bsd@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
2690e61e8e
commit
19b0dfc19c
|
@ -348,7 +348,6 @@ void mixeng_clear (struct st_sample *buf, int len)
|
||||||
|
|
||||||
void mixeng_volume (struct st_sample *buf, int len, struct mixeng_volume *vol)
|
void mixeng_volume (struct st_sample *buf, int len, struct mixeng_volume *vol)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_MIXEMU
|
|
||||||
if (vol->mute) {
|
if (vol->mute) {
|
||||||
mixeng_clear (buf, len);
|
mixeng_clear (buf, len);
|
||||||
return;
|
return;
|
||||||
|
@ -364,9 +363,4 @@ void mixeng_volume (struct st_sample *buf, int len, struct mixeng_volume *vol)
|
||||||
#endif
|
#endif
|
||||||
buf += 1;
|
buf += 1;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
(void) buf;
|
|
||||||
(void) len;
|
|
||||||
(void) vol;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
8
configure
vendored
8
configure
vendored
|
@ -215,7 +215,6 @@ linux_user="no"
|
||||||
bsd_user="no"
|
bsd_user="no"
|
||||||
guest_base="yes"
|
guest_base="yes"
|
||||||
uname_release=""
|
uname_release=""
|
||||||
mixemu="no"
|
|
||||||
aix="no"
|
aix="no"
|
||||||
blobs="yes"
|
blobs="yes"
|
||||||
pkgversion=""
|
pkgversion=""
|
||||||
|
@ -873,8 +872,6 @@ for opt do
|
||||||
;;
|
;;
|
||||||
--enable-fdt) fdt="yes"
|
--enable-fdt) fdt="yes"
|
||||||
;;
|
;;
|
||||||
--enable-mixemu) mixemu="yes"
|
|
||||||
;;
|
|
||||||
--disable-linux-aio) linux_aio="no"
|
--disable-linux-aio) linux_aio="no"
|
||||||
;;
|
;;
|
||||||
--enable-linux-aio) linux_aio="yes"
|
--enable-linux-aio) linux_aio="yes"
|
||||||
|
@ -1107,7 +1104,6 @@ echo " (affects only QEMU, not qemu-img)"
|
||||||
echo " --block-drv-ro-whitelist=L"
|
echo " --block-drv-ro-whitelist=L"
|
||||||
echo " set block driver read-only whitelist"
|
echo " set block driver read-only whitelist"
|
||||||
echo " (affects only QEMU, not qemu-img)"
|
echo " (affects only QEMU, not qemu-img)"
|
||||||
echo " --enable-mixemu enable mixer emulation"
|
|
||||||
echo " --disable-xen disable xen backend driver support"
|
echo " --disable-xen disable xen backend driver support"
|
||||||
echo " --enable-xen enable xen backend driver support"
|
echo " --enable-xen enable xen backend driver support"
|
||||||
echo " --disable-xen-pci-passthrough"
|
echo " --disable-xen-pci-passthrough"
|
||||||
|
@ -3699,7 +3695,6 @@ echo "mingw32 support $mingw32"
|
||||||
echo "Audio drivers $audio_drv_list"
|
echo "Audio drivers $audio_drv_list"
|
||||||
echo "Block whitelist (rw) $block_drv_rw_whitelist"
|
echo "Block whitelist (rw) $block_drv_rw_whitelist"
|
||||||
echo "Block whitelist (ro) $block_drv_ro_whitelist"
|
echo "Block whitelist (ro) $block_drv_ro_whitelist"
|
||||||
echo "Mixer emulation $mixemu"
|
|
||||||
echo "VirtFS support $virtfs"
|
echo "VirtFS support $virtfs"
|
||||||
echo "VNC support $vnc"
|
echo "VNC support $vnc"
|
||||||
if test "$vnc" = "yes" ; then
|
if test "$vnc" = "yes" ; then
|
||||||
|
@ -3886,9 +3881,6 @@ if test "$audio_win_int" = "yes" ; then
|
||||||
fi
|
fi
|
||||||
echo "CONFIG_BDRV_RW_WHITELIST=$block_drv_rw_whitelist" >> $config_host_mak
|
echo "CONFIG_BDRV_RW_WHITELIST=$block_drv_rw_whitelist" >> $config_host_mak
|
||||||
echo "CONFIG_BDRV_RO_WHITELIST=$block_drv_ro_whitelist" >> $config_host_mak
|
echo "CONFIG_BDRV_RO_WHITELIST=$block_drv_ro_whitelist" >> $config_host_mak
|
||||||
if test "$mixemu" = "yes" ; then
|
|
||||||
echo "CONFIG_MIXEMU=y" >> $config_host_mak
|
|
||||||
fi
|
|
||||||
if test "$vnc" = "yes" ; then
|
if test "$vnc" = "yes" ; then
|
||||||
echo "CONFIG_VNC=y" >> $config_host_mak
|
echo "CONFIG_VNC=y" >> $config_host_mak
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -118,11 +118,9 @@ static void hda_codec_parse_fmt(uint32_t format, struct audsettings *as)
|
||||||
#define QEMU_HDA_AMP_NONE (0)
|
#define QEMU_HDA_AMP_NONE (0)
|
||||||
#define QEMU_HDA_AMP_STEPS 0x4a
|
#define QEMU_HDA_AMP_STEPS 0x4a
|
||||||
|
|
||||||
#ifdef CONFIG_MIXEMU
|
|
||||||
#define PARAM mixemu
|
#define PARAM mixemu
|
||||||
#define HDA_MIXER
|
#define HDA_MIXER
|
||||||
#include "hda-codec-common.h"
|
#include "hda-codec-common.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#define PARAM nomixemu
|
#define PARAM nomixemu
|
||||||
#include "hda-codec-common.h"
|
#include "hda-codec-common.h"
|
||||||
|
@ -594,11 +592,7 @@ static const VMStateDescription vmstate_hda_audio = {
|
||||||
|
|
||||||
static Property hda_audio_properties[] = {
|
static Property hda_audio_properties[] = {
|
||||||
DEFINE_PROP_UINT32("debug", HDAAudioState, debug, 0),
|
DEFINE_PROP_UINT32("debug", HDAAudioState, debug, 0),
|
||||||
#ifdef CONFIG_MIXEMU
|
|
||||||
DEFINE_PROP_BOOL("mixer", HDAAudioState, mixer, true),
|
DEFINE_PROP_BOOL("mixer", HDAAudioState, mixer, true),
|
||||||
#else
|
|
||||||
DEFINE_PROP_BOOL("mixer", HDAAudioState, mixer, false),
|
|
||||||
#endif
|
|
||||||
DEFINE_PROP_END_OF_LIST(),
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -609,15 +603,7 @@ static int hda_audio_init_output(HDACodecDevice *hda)
|
||||||
if (!a->mixer) {
|
if (!a->mixer) {
|
||||||
return hda_audio_init(hda, &output_nomixemu);
|
return hda_audio_init(hda, &output_nomixemu);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
#ifdef CONFIG_MIXEMU
|
|
||||||
return hda_audio_init(hda, &output_mixemu);
|
return hda_audio_init(hda, &output_mixemu);
|
||||||
#else
|
|
||||||
fprintf(stderr, "ERROR: "
|
|
||||||
"hda-codec : Mixer emulation has not been compiled in!\n");
|
|
||||||
return -1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -628,15 +614,7 @@ static int hda_audio_init_duplex(HDACodecDevice *hda)
|
||||||
if (!a->mixer) {
|
if (!a->mixer) {
|
||||||
return hda_audio_init(hda, &duplex_nomixemu);
|
return hda_audio_init(hda, &duplex_nomixemu);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
#ifdef CONFIG_MIXEMU
|
|
||||||
return hda_audio_init(hda, &duplex_mixemu);
|
return hda_audio_init(hda, &duplex_mixemu);
|
||||||
#else
|
|
||||||
fprintf(stderr, "ERROR: "
|
|
||||||
"hda-codec : Mixer emulation has not been compiled in!\n");
|
|
||||||
return -1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -647,15 +625,7 @@ static int hda_audio_init_micro(HDACodecDevice *hda)
|
||||||
if (!a->mixer) {
|
if (!a->mixer) {
|
||||||
return hda_audio_init(hda, µ_nomixemu);
|
return hda_audio_init(hda, µ_nomixemu);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
#ifdef CONFIG_MIXEMU
|
|
||||||
return hda_audio_init(hda, µ_mixemu);
|
return hda_audio_init(hda, µ_mixemu);
|
||||||
#else
|
|
||||||
fprintf(stderr, "ERROR: "
|
|
||||||
"hda-codec : Mixer emulation has not been compiled in!\n");
|
|
||||||
return -1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue