mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-11 03:24:58 -06:00
hw/audio/es1370: Avoid forward-declaring ES1370State
To avoid forward-declaring ES1370State, declare ES1370 QOM definitions before its use in the chan_bits structure. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230220131837.26292-3-philmd@linaro.org>
This commit is contained in:
parent
acab7d6022
commit
d9c214d745
1 changed files with 3 additions and 4 deletions
|
@ -256,6 +256,9 @@ static void print_sctl (uint32_t val)
|
||||||
#define lwarn(...)
|
#define lwarn(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define TYPE_ES1370 "ES1370"
|
||||||
|
OBJECT_DECLARE_SIMPLE_TYPE(ES1370State, ES1370)
|
||||||
|
|
||||||
struct chan {
|
struct chan {
|
||||||
uint32_t shift;
|
uint32_t shift;
|
||||||
uint32_t leftover;
|
uint32_t leftover;
|
||||||
|
@ -278,7 +281,6 @@ struct ES1370State {
|
||||||
uint32_t codec;
|
uint32_t codec;
|
||||||
uint32_t sctl;
|
uint32_t sctl;
|
||||||
};
|
};
|
||||||
typedef struct ES1370State ES1370State;
|
|
||||||
|
|
||||||
struct chan_bits {
|
struct chan_bits {
|
||||||
uint32_t ctl_en;
|
uint32_t ctl_en;
|
||||||
|
@ -292,9 +294,6 @@ struct chan_bits {
|
||||||
uint32_t *old_freq, uint32_t *new_freq);
|
uint32_t *old_freq, uint32_t *new_freq);
|
||||||
};
|
};
|
||||||
|
|
||||||
#define TYPE_ES1370 "ES1370"
|
|
||||||
OBJECT_DECLARE_SIMPLE_TYPE(ES1370State, ES1370)
|
|
||||||
|
|
||||||
static void es1370_dac1_calc_freq (ES1370State *s, uint32_t ctl,
|
static void es1370_dac1_calc_freq (ES1370State *s, uint32_t ctl,
|
||||||
uint32_t *old_freq, uint32_t *new_freq);
|
uint32_t *old_freq, uint32_t *new_freq);
|
||||||
static void es1370_dac2_and_adc_calc_freq (ES1370State *s, uint32_t ctl,
|
static void es1370_dac2_and_adc_calc_freq (ES1370State *s, uint32_t ctl,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue