Statistics
| Branch: | Revision:

root / audio @ e726fe7d

# Date Author Comment
e726fe7d 01/08/2010 10:26 am malc

oss: workaround for cases when OSS_GETVERSION is not defined

Thanks to Juergen Lock.

Signed-off-by: malc <>

a244eb74 12/03/2009 05:41 pm Juan Quintela

audio: fix compilation of DEBUG_PLIVE

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

d959fce9 12/03/2009 05:41 pm Juan Quintela

audio: port to vmstate

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

7cbb28ed 11/18/2009 06:22 pm malc

audio: Remove conditional around sw which can not be NULL

Noticed by Steve Grubb.

Signed-off-by: malc <>

a58c16dc 10/15/2009 09:43 am malc

winwave: ADC support

Signed-off-by: malc <>

cb4f03e8 10/15/2009 01:40 am malc

audio: remove last remnants of _t

Signed-off-by: malc <>

bc578fe0 10/15/2009 01:15 am malc

winwave: make error logging more consistent

Signed-off-by: malc <>

2a117d40 10/15/2009 01:11 am malc

winwave: follow the rules when closing the output device

a. call waveOutReset to drain the queue
b. unprepare headers before freeing underlying memory

Signed-off-by: malc <>

1a4ea1e3 10/13/2009 05:14 pm Michael S. Tsirkin

qemu: allow pulseaudio to be the default

We're seeing various issues with the SDL audio backend and want to
switch to the pulseaudio backend. See e.g.

https://bugzilla.redhat.com/495964
https://bugzilla.redhat.com/519540
https://bugzilla.redhat.com/496627...
6165a426 10/11/2009 05:52 am malc

winwave: pause/restore playing upon seeing VOICE_DISABLE/ENABLE

Signed-off-by: malc <>

875ef647 10/11/2009 05:38 am malc

winwave: close event handle and delete wait object after closing HWAVEOUT

To avoid possibly being called back and thus racing.

Signed-off-by: malc <>

f4e8d0b7 10/11/2009 04:39 am malc

winwave: remove wait object when finalizing DAC voice

Signed-off-by: malc <>

e0bda367 10/10/2009 04:16 pm malc

winwave: poll mode

Signed-off-by: malc <>

d5631638 10/10/2009 12:18 am malc

Windows Waveform Audio driver (no ADC support yet)

Signed-off-by: malc <>

a628b869 10/03/2009 02:30 am malc

oss/alsa: Do not invoke UB described in 7.15.1.1 (this time for ADC)

Signed-off-by: malc <>

de2ca4fb 10/02/2009 02:19 am malc

alsa: Change default buffer/period size

Increase buffer size but do not rely on ALSA picking up default period
size.

Signed-off-by: malc <>

301901b5 10/02/2009 01:37 am malc

oss/alsa: Do not invoke UB described in 7.15.1.1

Additional argument (whether to try poll mode) is only passed with
VOICE_ENABLE command.

Thanks to Markus Armbruster for noticing the potential breakage.

4839abe7 09/30/2009 03:34 pm malc

sdlaudio: make it suck less

Signed-off-by: malc <>

68f6dc7e 09/18/2009 01:04 pm malc

coreaudio: fix sloppy "posixification" by 1ea879e5580f63414693655fcf0328559cdce138

Signed-off-by: malc <>

4f4cc0ef 09/18/2009 01:04 pm malc

audio: use muldiv64 where it makes sense

Signed-off-by: malc <>

ddabec73 09/18/2009 01:04 pm malc

audio: introduce audio_pcm_hw_clip_out helper function

Signed-off-by: malc <>

541ba4e7 09/18/2009 01:04 pm malc

alsa: use audio_pcm_hw_clip_out

Signed-off-by: malc <>

9d168976 09/18/2009 01:04 pm malc

oss: use audio_pcm_hw_clip_out

Signed-off-by: malc <>

3fd7f635 09/18/2009 01:04 pm malc

sdlaudio: use correct function names in sdl_XXX calls

Signed-off-by: malc <>

bdff253c 09/18/2009 01:04 pm malc

audio: internal API change

pcm_ops.run_out now takes number of live samples (which will be always
greater than zero) as a second argument, every driver was calling
audio_pcm_hw_get_live_out anyway with exception of fmod which used
audio_pcm_hw_get_live_out2 for no good reason....

155a8ad3 09/18/2009 01:04 pm malc

audio: use correct email address

Signed-off-by: malc <>

6ebfda13 09/14/2009 02:55 am malc

alsa/oss: Remove fd transfer handlers before closing oss/alsa fd/handle

Signed-off-by: malc <>

b4f763b8 09/14/2009 02:55 am malc

alsa: Use proper value when testing returned events in alsa_poll_handler

Signed-off-by: malc <>

0a90e344 09/13/2009 09:50 pm Jan Kiszka

audio: Fix typo that broke QEMU_AUDIO_ADC_TRY_POLL

Signed-off-by: Jan Kiszka <>
Signed-off-by: malc <>

0b3652bc 09/13/2009 10:15 am malc

oss: OSS v4 support

a. Use SNDCTL_DSP_POLICY instead of SNDCTL_DSP_SETFRAGMENT
b. Add ability to open device in exclusive mode, thus bypassing vmix

Signed-off-by: malc <>

54762b73 09/13/2009 10:15 am malc

oss: Simplify mmap code

Signed-off-by: malc <>

72cf2d4f 09/12/2009 10:36 am Blue Swirl

Fix sys-queue.h conflict for good

Problem: Our file sys-queue.h is a copy of the BSD file, but there are
some additions and it's not entirely compatible. Because of that, there have
been conflicts with system headers on BSD systems. Some hacks have been
introduced in the commits 15cc9235840a22c289edbe064a9b3c19c5f49896,...

2182349d 09/12/2009 01:50 am malc

oss: Unbreak mmaping the ability to mmap oss fd on Linux

Signed-off-by: malc <>

713a98f8 09/12/2009 01:50 am malc

audio: poll mode infrastructure

Signed-off-by: malc <>

dd8a5649 09/12/2009 01:50 am malc

oss: poll mode handling

Signed-off-by: malc <>

8b438ba3 09/12/2009 01:50 am malc

alsa: poll mode handling

Signed-off-by: malc <>

057fa65c 09/12/2009 01:50 am malc

audio: remove lsbindex/popcount in favour of host-utils's ctz32

Signed-off-by: malc <>

6ee093c9 09/11/2009 06:19 pm Juan Quintela

Unexport ticks_per_sec variable. Create get_ticks_per_sec() function

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

3c854e47 09/10/2009 08:09 pm malc

Remove bit-rotten threshold handling

Thanks to Toshiya Takeda for bringing up an unrelated issue which led
to this.

Signed-off-by: malc <>

f9c7b77c 09/02/2009 03:46 pm Kirill A. Shutemov

Fix warning on x86_64

audio/esdaudio.c: In function 'qesd_thread_out':
audio/esdaudio.c:136: error: format '%d' expects type 'int', but
argument 3 has type 'ssize_t'
audio/esdaudio.c: In function 'qesd_thread_in':
audio/esdaudio.c:366: error: format '%d' expects type 'int', but...

15c875a3 08/26/2009 12:55 pm Consul

Fix dsound typos

Dsound currently does not compile due to the typos in the code. This
patch makes it compile again.{PATCH}

Signed-off-by: Alex Ivanov <>
Signed-off-by: malc <>

197bc219 08/12/2009 10:11 pm malc

Fix typo

1dd3e4d1 08/11/2009 07:51 pm Juan Quintela

use C99 initializers for audio_pcm_ops

Signed-off-by: Juan Quintela <>

1a40d5e2 08/11/2009 07:51 pm Juan Quintela

use C99 initializers for all audio/*

Signed-off-by: Juan Quintela <>

98f9f48c 08/11/2009 07:51 pm malc

Aesthetics

Reformat to make item borders more visible
Fix cases of stray tabs and vertical misalignments

Signed-off-by: malc <>

bee37f32 08/11/2009 07:51 pm Juan Quintela

Use proper struct initializers and remove INIT_FIELD() macro

Signed-off-by: Juan Quintela <>

2700efa3 08/11/2009 07:51 pm Juan Quintela

Use C99 initializers for audio_option

Signed-off-by: Juan Quintela <>

660f11be 08/01/2009 12:16 am Blue Swirl

Fix Sparse warnings: "Using plain integer as NULL pointer"

Signed-off-by: Blue Swirl <>

86635821 07/30/2009 01:45 pm Bjørn Mork

alsa: add host suspend/resume support

Both input and output streams may be in SND_PCM_STATE_SUSPENDED
after the host is suspended and resumed, meaning "Hardware is
suspended". snd_pcm_readi() and snd_pcm_writei() will return
-ESTRPIPE if called while the stream is in this state....

2358a494 07/27/2009 10:10 pm Juan Quintela

Generate config-host.h from config-host.mak

Generate CONFIG_AUDIO_DRIVERS. Order is important here, because the
first driver in the list is the one used by default.

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

e2542fe2 07/27/2009 10:09 pm Juan Quintela

rename WORDS_BIGENDIAN to HOST_WORDS_BIGENDIAN

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

aea86747 07/24/2009 04:16 am malc

Fix period initialization

Signed-off-by: malc <>

14658cd1 07/22/2009 06:58 pm Juan Quintela

use struct initializer for audio.c

Signed-off-by: Juan Quintela <>
Signed-off-by: Anthony Liguori <>

2637872b 07/17/2009 04:57 am malc

Ignore -Waddress for alsaaudio.c

/usr/include/alsa/pcm.h contains:

#define snd_pcm_sw_params_alloca(ptr) do { assert(ptr); *ptr = (snd_pcm_sw_params_t *) alloca(snd_pcm_sw_params_sizeof()); memset(*ptr, 0, snd_pcm_sw_params_sizeof()); } while (0)

The assert generates: "error: the address of 'sw_params' will always...

5d928867 06/19/2009 01:46 am Jean-Christophe Dubois

fix qemu_alloc/qemu_free for audio subsystem

Signed-off-by: Jean-Christophe DUBOIS <>

97f155dd 06/18/2009 09:57 pm Gerd Hoffmann

alsa: fix warning

Signed-off-by: Gerd Hoffmann <>

1a7dafce 05/14/2009 02:20 am malc

Remove any pretense that there can be more than one AudioState

0d9acba8 05/12/2009 02:02 pm Paul Brook

Make AUD_init failure fatal

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....

140f8f25 05/01/2009 10:31 am Consul

Remove redundant #define

Suppress a warning
audio/dsoundaudio.c:35:1: warning: "WIN32_LEAN_AND_MEAN" redefined
<command line>:4:1: warning: this is the location of the previous definition

Signed-off-by: Alex Ivanov <>

c5e97233 03/07/2009 10:06 pm blueswir1

Support for DragonFly BSD (Hasso Tepper)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6746 c046a42c-6fe2-441c-8c8c-71466251a162

376253ec 03/06/2009 01:01 am aliguori

monitor: Rework API (Jan Kiszka)

Refactor the monitor API and prepare it for decoupled terminals:
term_print functions are renamed to monitor_* and all monitor services
gain a new parameter (mon) that will once refer to the monitor instance
the output is supposed to appear on. However, the argument remains...

978dd635 02/18/2009 10:44 pm malc

Avoid running audio ctl's when vm is not running

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6627 c046a42c-6fe2-441c-8c8c-71466251a162

090f1fa3 02/06/2009 12:05 am aliguori

audio: remove error handling from qemu_malloc() callers (Avi Kivity)

Signed-off-by: Avi Kivity <>
Signed-off-by: Anthony Liguori <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6528 c046a42c-6fe2-441c-8c8c-71466251a162

832e9079 01/23/2009 12:09 am malc

Fix NAME2/FIELD2 warnings

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6411 c046a42c-6fe2-441c-8c8c-71466251a162

9781e040 01/22/2009 07:15 pm aliguori

Rework vm_state_change notifiers (Jan Kiszka)

Signed-off-by: Anthony Liguori <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6402 c046a42c-6fe2-441c-8c8c-71466251a162

b1503cda 12/22/2008 10:33 pm malc

Use the ARRAY_SIZE() macro where appropriate.

Change from v1:
Avoid changing the existing coding style in certain files.

Signed-off-by: Stuart Brady <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6120 c046a42c-6fe2-441c-8c8c-71466251a162

1ea879e5 12/04/2008 12:48 am malc

Make audio violate POSIX less

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5864 c046a42c-6fe2-441c-8c8c-71466251a162

cd390083 11/16/2008 03:53 pm blueswir1

Attached patch fixes a series of this warning
when compiling on NetBSD:

warning: array subscript has type 'char'

Signed-off-by: Christoph Egger <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5727 c046a42c-6fe2-441c-8c8c-71466251a162

c310de86 11/12/2008 10:36 pm malc

Rename hz to hertz to keep AIX happy

The issue was first noticed/addressed by Laurent Vivier in his QEMU on
AIX patches.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5712 c046a42c-6fe2-441c-8c8c-71466251a162

d64394f7 11/04/2008 09:15 pm malc

Set default audio timer period to a sane value (otherwise qemu becomes unusable if -icount N is specified)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5623 c046a42c-6fe2-441c-8c8c-71466251a162

b1d8e52e 10/26/2008 03:43 pm blueswir1

Fix undeclared symbol warnings from sparse

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5539 c046a42c-6fe2-441c-8c8c-71466251a162

1b52da58 10/26/2008 11:54 am blueswir1

Fix undefined pthread_sigmask warning on FreeBSD (Juergen Lock)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5537 c046a42c-6fe2-441c-8c8c-71466251a162

9b4c14c3 10/25/2008 02:19 pm blueswir1

Fix undefined pthread_sigmask warning on OpenBSD

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5530 c046a42c-6fe2-441c-8c8c-71466251a162

35f4b58c 10/06/2008 09:08 pm blueswir1

Prepare for changing audio_pcm_ops dynamically (partially revert r5422)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5435 c046a42c-6fe2-441c-8c8c-71466251a162

295e390f 10/05/2008 01:30 pm blueswir1

Move wav_start_capture prototype to avoid a warning with -Wmissing-prototypes

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5423 c046a42c-6fe2-441c-8c8c-71466251a162

8869defe 10/05/2008 01:01 pm blueswir1

Make audio_pcm_opsstatic const

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5422 c046a42c-6fe2-441c-8c8c-71466251a162

2d6f8971 09/28/2008 03:42 am malc

Fix more r5087 breakage

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5337 c046a42c-6fe2-441c-8c8c-71466251a162

a3772d4d 08/27/2008 09:43 pm blueswir1

Revert a part of r5087 that didn't need fixing (thanks to malc for spotting)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5090 c046a42c-6fe2-441c-8c8c-71466251a162

ac700bce 08/25/2008 11:43 pm blueswir1

Fix more bugs in r5044

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5087 c046a42c-6fe2-441c-8c8c-71466251a162

363a37d5 08/21/2008 08:58 pm blueswir1

Fix OpenBSD linker warnings

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5044 c046a42c-6fe2-441c-8c8c-71466251a162

ccf21c31 07/29/2008 11:08 pm aliguori

Move audio/sys-queue.h => sys-queue.h

This makes it easier to reuse in other parts of QEMU.

Signed-off-by: Anthony Liguori <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4975 c046a42c-6fe2-441c-8c8c-71466251a162

23cde8bb 07/29/2008 11:00 pm aliguori

Update sys-queue.h (Gerd Hoffmann)

- got recent copy from netbsd.
- deleted debug code.
- deleted some list implementations, left in only the ones which
qemu already has.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>...

adf7d8fb 07/09/2008 10:25 pm malc

Restore old value of buffer_size

This brings latency down to acceptable levels when using dmix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4865 c046a42c-6fe2-441c-8c8c-71466251a162

64333899 07/09/2008 10:25 pm malc

Warn about rejected buffer/period size/time when it was specified by the user

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4864 c046a42c-6fe2-441c-8c8c-71466251a162

a7bb29ba 07/09/2008 10:25 pm malc

Call proper function when trying to set period size

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4863 c046a42c-6fe2-441c-8c8c-71466251a162

23fb600b 07/03/2008 02:29 pm malc

Fix typo

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4835 c046a42c-6fe2-441c-8c8c-71466251a162

b8e59f18 07/03/2008 12:03 am malc

Pulseaudio driver

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4827 c046a42c-6fe2-441c-8c8c-71466251a162

902e2b51 07/02/2008 09:03 pm malc

Add NULL argument to SNDCTL_DSP_NONBLOCK ioctl call

Comes from here:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/emulators/qemu/patches/patch-am?rev=1.2&content-type=text/x-cvsweb-markup

http://manuals.opensound.com/developer/SNDCTL_DSP_NONBLOCK.html
No explanation for NULL given....

0c58ac1c 06/26/2008 12:04 am malc

Change the way audio is configured

Instead of having separate option for each card and driver use
--audio-drv-list and --audio-card-list options.

Under Linux it allows to set the default(first probed) driver
to something other than OSS.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4792 c046a42c-6fe2-441c-8c8c-71466251a162

8ff9cbf7 06/23/2008 09:33 pm malc

Make mixer emulation a configure option (Jan Kiszka)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4783 c046a42c-6fe2-441c-8c8c-71466251a162

d50997f9 06/22/2008 05:10 pm malc

Add missing [SU]32

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4777 c046a42c-6fe2-441c-8c8c-71466251a162

f3b52983 06/21/2008 11:09 pm malc

Emit warning message if user supplied buffer/period size/time was rejected

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4773 c046a42c-6fe2-441c-8c8c-71466251a162

7a24c800 06/21/2008 08:14 pm malc

Rework period/buffer size setting

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4768 c046a42c-6fe2-441c-8c8c-71466251a162

29ddf27b 06/08/2008 07:27 am malc

Check the returned audio_buf_info fields

At least on one system zero is returned in either fragsize or
fragstotal (reported by Dave Scott), this results in an audio_calloc
failing the audio_bug check and another ominous error message. Fail
early and blame the system....

683efdcb 05/04/2008 01:21 pm balrog

First cut at WM8750 volume control (Jan Kiszka).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4321 c046a42c-6fe2-441c-8c8c-71466251a162

deb9d2ee 05/02/2008 05:24 am balrog

Audio endianness and mutex usage fixes (malc.git).

From http://repo.or.cz/w/qemu/malc.git?a=shortlog;h=refs/heads/audio :

Implicitly lock the mutex at startup of playback/capture threads, otherwise
pthread_mutex_destroy (in audio_pt_fini) fails with EBUSY....

b60aee00 04/07/2008 10:46 pm aurel32

Typo fix

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4163 c046a42c-6fe2-441c-8c8c-71466251a162

41a00ab1 04/03/2008 06:13 am aurel32

Remove remaining .cvsignore files

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4159 c046a42c-6fe2-441c-8c8c-71466251a162

26463dbc 01/17/2008 11:47 pm balrog

Miscellaneous fixes after recent audio additions (malc).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3925 c046a42c-6fe2-441c-8c8c-71466251a162

a8981dda 01/14/2008 11:50 pm balrog

Make dsound compile again (patch by malc, spotted by C.W. Betts).

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3920 c046a42c-6fe2-441c-8c8c-71466251a162