Statistics
| Branch: | Revision:

root / audio / ossaudio.c @ 39deb1e4

History | View | Annotate | Download (23.7 kB)

# Date Author Comment
72ff25e4 01/13/2010 12:59 am Juergen Lock

Workaround for broken OSS_GETVERSION on FreeBSD, part two

Turns out on those versions of FreeBSD (>= 7.x) that know OSS_GETVERSION
the ioctl doesn't actually work yet (except in the Linuxolator), so if
building on FreeBSD assume the sound drivers are new enough if the ioctl...

3d709fe7 01/09/2010 05:07 pm malc

oss: fix fragment setting

Previous patch introduced subtle regression, in cases when
OSS_GETVERSION fails the code wasn't falling back to
SNDCTL_DSP_SETFRAGMENT.

Signed-off-by: malc <>

6d246526 01/09/2010 04:55 pm malc

oss: issue OSS_GETVERSION ioctl only when needed

Signed-off-by: malc <>

78d9356d 01/08/2010 11:28 pm malc

oss: refactor code around policy setting

This fixes a problem with a previous patch spotted by Juergen Lock,
thanks to him again.

Signed-off-by: malc <>

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

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

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.

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

oss: use audio_pcm_hw_clip_out

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

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

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

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

Signed-off-by: malc <>

dd8a5649 09/12/2009 01:50 am malc

oss: 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 <>

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

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

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

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

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

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

ca9cc28c 01/14/2008 06:24 am balrog

pthreads-based audio and miscellaneous audio clean-up (malc).
ESD support (malc, Frederick Reeve).

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

87ecb68b 11/17/2007 07:14 pm pbrook

Break up vl.h.

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

f0c757e4 04/02/2007 01:07 pm ths

audio/ossaudio.c for OpenBSD, by Todd T. Fries.

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

d929eba5 07/05/2006 12:47 am bellard

audio endianness API changes (malc)

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

8ead62cf 07/04/2006 07:51 pm bellard

audio fixes + initial audio capture support (malc)

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

571ec3d6 11/20/2005 06:24 pm bellard

audio merge (malc)

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

b41cffbe 11/11/2005 02:02 am bellard

debug msg (malc)

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

c0fe3827 11/05/2005 08:55 pm bellard

audio merge (malc)

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

1d14ffa9 10/30/2005 08:58 pm bellard

merged 15a_aqemu.patch audio patch (malc)

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

95293972 07/24/2005 12:05 pm bellard

open OSS audio device as write only (malc)

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

44a095a7 11/14/2004 06:02 pm bellard

mmap audio fix (malc)

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

7372f88d 11/11/2004 06:55 pm bellard

audio fixes (malc)

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

fb065187 11/10/2004 01:09 am bellard

audio clean up (initial patch by malc)

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

85571bc7 11/07/2004 08:04 pm bellard

audio merge (malc)

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