1. 12 5月, 2009 2 次提交
    • P
      Push AUD_init down to devices · 22d83b14
      Paul Brook 提交于
      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: NPaul Brook <paul@codesourcery.com>
      22d83b14
    • P
      Make AUD_init failure fatal · 0d9acba8
      Paul Brook 提交于
      Failure to initialize the audio subsystem is not handled consistently.
      Where it is handled it has guest visible effects, which is wrong.
      We already have a "nosound" audio driver as a last resort, so trying to
      proceed without an audio backend seems pointless.
      
      Also protect against multiple calls to AUD_init so that this can be
      pushed down into individual devices.
      Signed-off-by: NPaul Brook <paul@codesourcery.com>
      0d9acba8
  2. 08 5月, 2009 1 次提交
  3. 18 4月, 2009 1 次提交
  4. 12 4月, 2009 1 次提交
  5. 10 4月, 2009 1 次提交
  6. 29 3月, 2009 1 次提交
  7. 13 3月, 2009 1 次提交
    • A
      DisplayAllocator interface (Stefano Stabellini) · 7b5d76da
      aliguori 提交于
      Hi all,
      this patch adds a DisplayAllocator interface that allows display
      frontends (sdl in particular) to provide a preallocated display buffer
      for the graphical backend to use.
      
      Whenever a graphical backend cannot use
      qemu_create_displaysurface_from because its own internal pixel format
      cannot be exported directly (text mode or graphical mode with color
      depth 8 or 24), it creates another display buffer in memory using
      qemu_create_displaysurface and does the conversion.
      This new buffer needs to be blitted into the sdl surface buffer every time
      we need to update portions of the screen.
      We can avoid this using the DisplayAllocator interace: sdl provides its
      own implementation of qemu_create_displaysurface, giving back the sdl
      surface buffer directly (as we used to do before the DisplayState
      changes).
      Since the buffer returned by sdl could be in bgr format we need to put
      back in the handlers of that case.
      
      This approach is good if the two following conditions are true:
      
      1) the sdl surface is a software surface that resides in main memory;
      
      2) the host display color depth is either 16 or 32 bpp.
      
      If first condition is false we can have bad performances using sdl
      and vnc together.
      If the second condition is false performances are certainly not going to
      improve but they shouldn't get worse either.
      
      The first condition is always true, at least on linux/X11 systems; but I
      believe is true also on other platforms.
      The second condition is true in the vast majority of the cases.
      
      This patch should also have the good side effect of solving the sdl
      2D slowness malc was reporting on MacOS, because SDL_BlitSurface is not
      going to be called anymore when the guest is in text mode or 24bpp.
      However the root problem is still present so I suspect we may
      still see some slowness on MacOS when the guest is in 32 or 16 bpp.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6839 c046a42c-6fe2-441c-8c8c-71466251a162
      7b5d76da
  8. 11 3月, 2009 1 次提交
  9. 06 2月, 2009 1 次提交
  10. 17 1月, 2009 1 次提交
    • A
      graphical_console_init change (Stefano Stabellini) · 3023f332
      aliguori 提交于
      Patch 5/7
      
      This patch changes the graphical_console_init function to return an
      allocated DisplayState instead of a QEMUConsole.
      
      This patch contains just the graphical_console_init change and few other
      modifications mainly in console.c and vl.c.
      It was necessary to move the display frontends (e.g. sdl and vnc)
      initialization after machine->init in vl.c.
      
      This patch does *not* include any required changes to any device, these
      changes come with the following patches.
      
      Patch 6/7
      
      This patch changes the QEMUMachine init functions not to take a
      DisplayState as an argument because is not needed any more;
      
      In few places the graphic hardware initialization function was called
      only if DisplayState was not NULL, now they are always called.
      Apart from these cases, the rest are all mechanical substitutions.
      
      Patch 7/7
      
      This patch updates the graphic device code to use the new
      graphical_console_init function.
      
      As for the previous patch, in few places graphical_console_init was called
      only if DisplayState was not NULL, now it is always called.
      Apart from these cases, the rest are all mechanical substitutions.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6344 c046a42c-6fe2-441c-8c8c-71466251a162
      3023f332
  11. 16 1月, 2009 1 次提交
    • A
      remove bgr (Stefano Stabellini) · 8927bcfd
      aliguori 提交于
      Do not handle bgr host displays in the backends.
      
      Right now a bgr flag exists so that sdl can set it, if the SDL_Surface
      is bgr.
      Afterwards the graphic device (e.g. vga.c) does the needed conversion.
      
      With this patch series is sdl that is responsible for rendering the format
      provided by the graphic device that must provide a DisplaySurface
      (ds->surface) in 16 or 32 bpp, rgb.
      Afterwards sdl creates a SDL_Surface from the given DisplaySurface and
      blits it into the main SDL_Surface using SDL_BlitSurface.
      
      Everything is handled by sdl transparently, because SDL_BlitSurface is
      perfectly capable of handling bgr displays by itself.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6335 c046a42c-6fe2-441c-8c8c-71466251a162
      8927bcfd
  12. 14 1月, 2009 1 次提交
  13. 08 1月, 2009 2 次提交
  14. 02 12月, 2008 1 次提交
  15. 25 11月, 2008 1 次提交
  16. 28 10月, 2008 1 次提交
  17. 26 10月, 2008 1 次提交
  18. 08 10月, 2008 2 次提交
  19. 02 7月, 2008 1 次提交
  20. 09 6月, 2008 1 次提交
    • B
      Enhance sendkey with key hold time (Jan Kiszka). · c8256f9d
      balrog 提交于
      Current key injection via the monitor basically generates no key hold
      time. This is fine for keyboard emulations that have their own queues,
      but it causes troubles for those how don't (like the MusicPal - it
      simply does not work with injected keys). Moreover, I would like to use
      this mechanism to simulate pressed buttons during power-up.
      
      Therefore, this patch enhances the key injection with a configurable
      release delay (by default 100 virtual milliseconds).
      
      This feature allows to get rid of the initial sleep() in musicpal_init
      because one can now simply start qemu with -S and issue "sendkey m 1000"
      and "continue" in the monitor to achieve the desired effect of a pressed
      menu button during power-up. So there is no need for a per-musicpal or
      even qemu-wide "-hold-button" switch.
      Signed-off-by: NJan Kiszka <jan.kiszka@web.de>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4701 c046a42c-6fe2-441c-8c8c-71466251a162
      c8256f9d
  21. 02 6月, 2008 1 次提交
  22. 18 5月, 2008 1 次提交
  23. 07 5月, 2008 1 次提交
  24. 06 5月, 2008 1 次提交
  25. 05 5月, 2008 1 次提交
  26. 04 5月, 2008 3 次提交
  27. 02 5月, 2008 1 次提交
  28. 28 4月, 2008 1 次提交
  29. 26 4月, 2008 1 次提交
  30. 25 4月, 2008 2 次提交