Revision eb69b50a hw/wm8750.c
b/hw/wm8750.c | ||
---|---|---|
76 | 76 |
static void wm8750_audio_out_cb(void *opaque, int free_b) |
77 | 77 |
{ |
78 | 78 |
struct wm8750_s *s = (struct wm8750_s *) opaque; |
79 |
wm8750_out_flush(s); |
|
80 | 79 |
|
81 | 80 |
s->req_out = free_b; |
82 | 81 |
s->data_req(s->opaque, free_b >> 2, s->req_in >> 2); |
82 |
wm8750_out_flush(s); |
|
83 | 83 |
} |
84 | 84 |
|
85 | 85 |
struct wm_rate_s { |
... | ... | |
213 | 213 |
void wm8750_reset(i2c_slave *i2c) |
214 | 214 |
{ |
215 | 215 |
struct wm8750_s *s = (struct wm8750_s *) i2c; |
216 |
s->rate = &wm_rate_table[0]; |
|
216 | 217 |
s->enable = 0; |
217 | 218 |
wm8750_set_format(s); |
218 | 219 |
s->diff[0] = 0; |
Also available in: Unified diff