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] v3: * Remove malc from cc, delivery failure to Vassili Karpov (malc)" <av1...@comtv.ru> Anyone know the correct email address ? * Remove unneeded dummies - Patch 2/3 * Minor fprintf reformatting - Patch 2/3 * Reduce commit message verbosity - Patch 3/3 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 audio/mixeng.c | 6 - configure | 8 - hw/audio/hda-codec-common.h | 456 ++++++++++++++++++++++++++++++++++++++++++++ hw/audio/hda-codec.c | 454 +++---------------------------------------- 4 files changed, 485 insertions(+), 439 deletions(-) create mode 100644 hw/audio/hda-codec-common.h -- 1.8.1.4