Patchwork patch: use correct output format in wm8750_set_format()

login
register
mail settings
Submitter Austin English
Date Aug. 21, 2010, 1:37 p.m.
Message ID <AANLkTimhfr6X8bM9+zcxdA16PtUgw0Chd_QYp0itx+nH@mail.gmail.com>
Download mbox | patch
Permalink /patch/62347/
State New
Headers show

Comments

Austin English - Aug. 21, 2010, 1:37 p.m.
Looks like a typo. Found when compiling with gcc 4.6, which sets
-Werror=unused-but-set-variable.

Please cc me on any replies.

Patch

diff --git a/hw/wm8750.c b/hw/wm8750.c
index ce43c23..4c864e4 100644
--- a/hw/wm8750.c
+++ b/hw/wm8750.c
@@ -223,7 +223,7 @@  static void wm8750_set_format(WM8750State *s)
                     CODEC ".headphone", s, wm8750_audio_out_cb, &out_fmt);
     /* MONOMIX is also in stereo for simplicity */
     s->dac_voice[2] = AUD_open_out(&s->card, s->dac_voice[2],
-                    CODEC ".monomix", s, wm8750_audio_out_cb, &out_fmt);
+                    CODEC ".monomix", s, wm8750_audio_out_cb, &monoout_fmt);
     /* no sense emulating OUT3 which is a mix of other outputs */
 
     wm8750_vol_update(s);