diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-12 12:33:04 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-12 12:33:04 +0100 |
commit | 22d83b140e7b2dda555b7e3035050454f8764b7f (patch) | |
tree | b80cd7f2cbae7951323871218db3772dd8b3b8c7 /hw/palm.c | |
parent | 0d9acba8fddbf970c7353083e6a60b47017ce3e4 (diff) | |
download | qemu-22d83b140e7b2dda555b7e3035050454f8764b7f.zip qemu-22d83b140e7b2dda555b7e3035050454f8764b7f.tar.gz qemu-22d83b140e7b2dda555b7e3035050454f8764b7f.tar.bz2 |
Push AUD_init down to devices
Now we can safely call AUD_init multiple times we can push it down to
individual audio devices, rather than having to pass it from the board
init.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/palm.c')
-rw-r--r-- | hw/palm.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -93,14 +93,8 @@ static MouseTransformInfo palmte_pointercal = { static void palmte_microwire_setup(struct omap_mpu_state_s *cpu) { uWireSlave *tsc; - AudioState *audio = 0; -#ifdef HAS_AUDIO - audio = AUD_init(); -#endif - - tsc = tsc2102_init(omap_gpio_in_get(cpu->gpio)[PALMTE_PINTDAV_GPIO], - audio); + tsc = tsc2102_init(omap_gpio_in_get(cpu->gpio)[PALMTE_PINTDAV_GPIO]); omap_uwire_attach(cpu->microwire, tsc, 0); omap_mcbsp_i2s_attach(cpu->mcbsp1, tsc210x_codec(tsc)); |