Currently, hda-codec mixer emulation can only be enabled by using the "--enable-mixemu" option to configure at compile time. These patches add the option to make it configurable at runtime as well.
An example usage could be a qemu cmdline : "-device hda-duplex,mixer=(on/off)" although this is not part of this change. Bandan Das (2): hda-codec: refactor common definitions into a header file hda-codec: make mixemu selectable at runtime hw/audio/hda-codec-common.h | 433 ++++++++++++++++++++++++++++++++++++++++ hw/audio/hda-codec.c | 472 +++++--------------------------------------- 2 files changed, 479 insertions(+), 426 deletions(-) create mode 100644 hw/audio/hda-codec-common.h -- 1.8.1.4