[PATCH 1/3] wineoss.drv: Attempt to verify that the system is actually running OSS

Vitaliy Margolen wine-devel at kievinfo.com
Sun Jul 24 18:56:22 CDT 2011


On 07/22/2011 08:35 AM, Andrew Eikum wrote:
>
> This is really crude, but does seem to work. I tested it correct with just
> ALSA 1.0.24; ALSA 1.0.24's snd-pcm-oss and snd-pcm-mixer modules; and on
> OSS4.2. It was also tested by Gerald Pfeifer on FreeBSD 8.2 and 9.0.
>
> This lets us attempt to load the OSS driver, and if that fails, then try the
> ALSA driver. Automatic driver selection!

You forgetting, that users can select multiple drivers in winecfg now. And 
that's what some people have in their registry.

The actual approach is seems fishy to me as well. The reason ALSA driver is 
1st is because most systems has it as the main sound subsystem.

Putting something [oss] first in the list, and failing if it wasn't 
explicitly asked for defeats the whole idea about something being default, 
and having alternate fallback(s). With same logic one would add all other 
sound drivers and make them fail, unless explicitly asked for.

Vitaliy.



More information about the wine-devel mailing list