Skip to contentSkip to conversation

Patch: allow Solaris to use OSS (OpenSound)

Qemu-devel Ben Taylor 2 participants 2 messages Feb 26, 2007

lore
Share & tools
lore

Ben Taylor

author
#0 lore raw

Hi Malc,

Quoted 7 lines · ---- malc
Quoted 5 lines · Ben Taylor

As I seem to have hit a wall with the ES1370 driver in qemu not working on Solaris, I have modified configure to allow Solaris to use OpenSoundSystems audio.

Quoted 5 lines
Quoted 3 lines

Is there any interest in having a default audio setting for SDL so that you won't have to always put QEMU_SDL_AUDIO=oss before you start qemu?

I don't quite get what does not work OSS or ES1370?

Using a precompiled version of qemu from opensolaris.org, that binary didn't work with a Solaris Nevada guest with OSS audio running on a Solaris Nevada host running native audio.

I think its a problem with the precompiled version of qemu I was using.

After I got the OSS version runnning on a different system with OSS, I went back and recompiled the CVS code (enabling the debugging) and the audio worked (though the debugging makes the timing of the sound choppy). Once recompiled without debugging, it worked just fine. I apologize for the false alarm.

Quoted 6 lines

An aside. To the best of my knowledge OSS on Solaris, Net/OpenBSD (FreeBSDs OSS is fine though) is not your usual OSS but some reduced version which among other things only allows one open per device (meaning that to do both DAC/ADC one has to use single file descriptor)

I have no idea. I know it worked, but wouldn't know how to test for that case you are talking about.

Quoted 1 line

From where i stand SDL as the default is a bad idea.

Solaris without OSS audio doesn't have any other options. There is no ALSA, and AFAIK, there isn't an fmod either.

However, I still think it is probably a good idea to have the QEMU_SDL_AUDIO device default to the audio subsystem that is defined (or defaulted to). Thoughts?

Ben

#1 lore raw

On Mon, 26 Feb 2007, Ben Taylor wrote:

[..snip..]

Quoted 8 lines
Quoted 1 line

From where i stand SDL as the default is a bad idea.

Solaris without OSS audio doesn't have any other options. There is no ALSA, and AFAIK, there isn't an fmod either.

However, I still think it is probably a good idea to have the QEMU_SDL_AUDIO device default to the audio subsystem that is defined (or defaulted to). Thoughts?

I'm somewhat lost, there's no QEMU_SDL_AUDIO, furthermore there's no way to tell SDL what subsystem to use other than setting the environment variable.

And to reiterate the point: NetBSD, OpenBSD and Solaris do not have full fledged OSS, they provide a wrapper that implements some basic functionality. The native thing for them is SUN audio[1] (more or less). And there's no QEMU driver for that. Options for those system include: OSS wrapper provided with the system, 4Front drivers and SDL (if it can use /dev/audio at all).

Only 4Front's solution will allow DAC/ADC because it is basically full blown OSS implementation. Unless, ofcourse, native `/dev/audio' QEMU driver is written.

[1] http://docs.sun.com/app/docs/doc/816-0222/6m6nmlssf?q=audio&a=view

Signature · 1 line
vale