Currently, hda-codec mixer emulation can only be enabled by using the "--enable-mixemu" option to configure at compile time with the default value being off. These patches enable making mixer emulation selectable at runtime which is more convenient. Consequently, the last patch in this series removes the mixemu configuration option.
Example Usage: 1. -device hda-duplex,mixer=off 2. -device hda-duplex,mixer=on [Default] v2: * Add copyright information - Patch 1/3 * Edit description for readability - Patch 1/3 * Catch error paths in instance init functions - Patch 2/3 * Define "mixer" as a bool - Patch 2/3 * Preserve CONFIG_MIXEMU state - Patch 2/3 * Remove the --enable-mixemu configuration option - Patch 3/3 Bandan Das (3): hda-codec: refactor common definitions into a header file hda-codec: make mixemu selectable at runtime audio: remove CONFIG_MIXEMU configure option and enable mixemu by default configure | 8 - hw/audio/hda-codec-common.h | 456 ++++++++++++++++++++++++++++++++++++++++++++ hw/audio/hda-codec.c | 454 +++---------------------------------------- 3 files changed, 485 insertions(+), 433 deletions(-) create mode 100644 hw/audio/hda-codec-common.h -- 1.8.1.4