[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/3] hda-codec: make mixemu selectable at run
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/3] hda-codec: make mixemu selectable at runtime |
Date: |
Fri, 06 Sep 2013 09:25:26 +0200 |
> --- a/hw/audio/hda-codec.c
> +++ b/hw/audio/hda-codec.c
> @@ -118,7 +118,20 @@ static void hda_codec_parse_fmt(uint32_t format, struct
> audsettings *as)
> #define QEMU_HDA_AMP_NONE (0)
> #define QEMU_HDA_AMP_STEPS 0x4a
>
> +#ifdef CONFIG_MIXEMU
> +#define PARAM mixemu
> +#define HDA_MIXER
> #include "hda-codec-common.h"
> +#else
> +/* keep the compiler quiet */
> +static const desc_codec output_mixemu;
> +static const desc_codec duplex_mixemu;
> +static const desc_codec micro_mixemu;
Needed? The *_mixemu variants are not referenced without CONFIG_MIXEMU
> +#endif
> +
> +#define PARAM nomixemu
#undefine HDA_MIXER
> +#include "hda-codec-common.h"
> +
cheers,
Gerd