Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-07 Thread Gerd Hoffmann
Hi, > And that is actually simple enough that we can consider it for 1.7: > > > > static void *oss_audio_init (void) > > { > > +if (access(conf.devpath_in, R_OK | W_OK) < 0 || > > +access(conf.devpath_out, R_OK | W_OK) < 0) { > > +return NULL; > > That would be reasonable

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-06 Thread Anthony Liguori
On Wed, Nov 6, 2013 at 7:20 AM, Gerd Hoffmann wrote: > Hi, > >> > static void *oss_audio_init (void) >> > { >> > return &conf; >> > } >> > >> > It never fails. >> >> OK, that's a bug. (I'd misread the calling function >> audio_driver_init() as also checking that the init_in >> and init_out f

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-06 Thread Gerd Hoffmann
Hi, > > static void *oss_audio_init (void) > > { > > return &conf; > > } > > > > It never fails. > > OK, that's a bug. (I'd misread the calling function > audio_driver_init() as also checking that the init_in > and init_out functions succeeded, which it does not.) > > > So audio is broken o

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-06 Thread Peter Maydell
On 6 November 2013 14:54, Anthony Liguori wrote: > I don't think you guys understand what is happening. > > As ossaudio is able to be default, it *will be selected* as the audio > output backend unconditionally. You aren't seeing errors during > probing, you're seeing errors post-initialization.

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-06 Thread Anthony Liguori
On Wed, Nov 6, 2013 at 3:15 AM, Gerd Hoffmann wrote: > On Mi, 2013-11-06 at 10:48 +, Peter Maydell wrote: > >> > That is clearly 1.8 material though. I think for 1.7 we should simply >> > leave things as-is. >> >> Do you mean "as-is with Anthony's patch applied", or "as it was >> before that

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-06 Thread Gerd Hoffmann
On Mi, 2013-11-06 at 10:48 +, Peter Maydell wrote: > > That is clearly 1.8 material though. I think for 1.7 we should simply > > leave things as-is. > > Do you mean "as-is with Anthony's patch applied", or "as it was > before that patch was applied" ? Oh, it is in? > I would suggest the l

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-06 Thread Peter Maydell
On 6 November 2013 09:18, Gerd Hoffmann wrote: > I think the audio backend handling needs a serious makeover. Detect > sound libraries (pulse, esd, alsa, ...) via configure like any other > library. Zap the whole can_be_default logic. Replace it by walking the > list of backends, sorted by prio

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-06 Thread Gerd Hoffmann
On Di, 2013-11-05 at 20:34 +, Peter Maydell wrote: > On 5 November 2013 19:57, Anthony Liguori wrote: > > This patch just requires that you explicitly select oss so it's not > > breaking audio on BSD. > > That sounds to me like it's breaking audio for all the > users for whom it previously wo

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-05 Thread Peter Maydell
On 5 November 2013 19:57, Anthony Liguori wrote: > This patch just requires that you explicitly select oss so it's not > breaking audio on BSD. That sounds to me like it's breaking audio for all the users for whom it previously worked out of the box without any particular configure or command lin

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-05 Thread Peter Maydell
On 5 November 2013 19:57, Anthony Liguori wrote: > Since the oss code can fail to initialize without handling it > gracefully, it really cannot be default on any platform. Can you describe what the actual problem is we're trying to fix here, please? I can't see a description of it in any of the m

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-05 Thread Anthony Liguori
Gerd Hoffmann writes: > On So, 2013-11-03 at 08:45 -0800, Anthony Liguori wrote: >> Modern Linux's no longer support /dev/dsp so enabling it by >> default causes audio failures on newer Linux distros. > > That will break sound on BSD. > > I think we should do something like this instead: > > ---

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-04 Thread Peter Maydell
On 3 November 2013 16:45, Anthony Liguori wrote: > Modern Linux's no longer support /dev/dsp so enabling it by > default causes audio failures on newer Linux distros. > > Signed-off-by: Anthony Liguori > --- > audio/ossaudio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --gi

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-04 Thread Gerd Hoffmann
On So, 2013-11-03 at 08:45 -0800, Anthony Liguori wrote: > Modern Linux's no longer support /dev/dsp so enabling it by > default causes audio failures on newer Linux distros. That will break sound on BSD. I think we should do something like this instead: --- a/configure +++ b/configure @@ -554,7

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-03 Thread Anthony Liguori
On Sun, Nov 3, 2013 at 9:12 AM, Andreas Färber wrote: > Am 03.11.2013 17:45, schrieb Anthony Liguori: >> Modern Linux's no longer support /dev/dsp so enabling it by >> default causes audio failures on newer Linux distros. >> >> Signed-off-by: Anthony Liguori >> --- >> audio/ossaudio.c | 2 +- >>

Re: [Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-03 Thread Andreas Färber
Am 03.11.2013 17:45, schrieb Anthony Liguori: > Modern Linux's no longer support /dev/dsp so enabling it by > default causes audio failures on newer Linux distros. > > Signed-off-by: Anthony Liguori > --- > audio/ossaudio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) With my current

[Qemu-devel] [PATCH] ossaudio: do not enable by default

2013-11-03 Thread Anthony Liguori
Modern Linux's no longer support /dev/dsp so enabling it by default causes audio failures on newer Linux distros. Signed-off-by: Anthony Liguori --- audio/ossaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/ossaudio.c b/audio/ossaudio.c index 007c641..3e04a58 100