* [Qemu-devel] Audio
@ 2004-08-12 15:43 malc
2004-08-12 21:33 ` Joe Menola
0 siblings, 1 reply; 22+ messages in thread
From: malc @ 2004-08-12 15:43 UTC (permalink / raw)
To: qemu-devel
Hello,
At http://www.boblycat.org/~malc/code/patches/qemu/ you will find
latest(7th) audio patch.
If you are using Win98 guest make sure that 16bit DMA for SoundBlaster is
set to 5.
There might be regressions since code was changed heavily to accomodate
different/multiple sound cards (none are included in this patch, hopefully
that would change soon)
Three backends are included, they can be selected via environment
variable, i.e.:
QEMU_AUDIO_DRV=oss|sdl|wav
WAV driver will produce `qemu.wav' in current working directory.
--
mailto:malc@pulsesoft.com
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Qemu-devel] Audio
2004-08-12 15:43 [Qemu-devel] Audio malc
@ 2004-08-12 21:33 ` Joe Menola
2004-08-13 4:53 ` Darryl Dixon
0 siblings, 1 reply; 22+ messages in thread
From: Joe Menola @ 2004-08-12 21:33 UTC (permalink / raw)
To: qemu-devel
Applying this patch and manually setting Win98 DMA to 5 has my sound worrking
in both 98 and XP.
Thanks a heap for your efforts, Malc.
-jm
On Thu August 12 2004 10:43 am, malc wrote:
> Hello,
>
> At http://www.boblycat.org/~malc/code/patches/qemu/ you will find
> latest(7th) audio patch.
>
> If you are using Win98 guest make sure that 16bit DMA for SoundBlaster is
> set to 5.
>
> There might be regressions since code was changed heavily to accomodate
> different/multiple sound cards (none are included in this patch, hopefully
> that would change soon)
>
> Three backends are included, they can be selected via environment
> variable, i.e.:
>
> QEMU_AUDIO_DRV=oss|sdl|wav
>
> WAV driver will produce `qemu.wav' in current working directory.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Qemu-devel] Audio
2004-08-12 21:33 ` Joe Menola
@ 2004-08-13 4:53 ` Darryl Dixon
2004-08-13 5:05 ` Darryl Dixon
0 siblings, 1 reply; 22+ messages in thread
From: Darryl Dixon @ 2004-08-13 4:53 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1.1: Type: text/plain, Size: 4038 bytes --]
Hi Malc,
No luck for me; Win98 guest 'sees' the card OK now (patch applied to
latest snapshot) but no sound arrives on the host from the act of
playing a sound in the guest :( Perhaps something odd on my setup? As
a side note, applying the patch appears to break the compile for the ppc
target in ppc-softmmu/:
g++ -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I.
-I/opt/src/qemu-snapshot-2004-08-12_23/target-ppc
-I/opt/src/qemu-snapshot-2004-08-12_23 -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-I/opt/src/qemu-snapshot-2004-08-12_23/slirp -c -o mixeng.o
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc
In file included from /opt/src/qemu-snapshot-2004-08-12_23/vl.h:71,
from /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:29:
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h: In function
`int32_t
s_ext8(unsigned char)':
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:33: error: invalid
conversion from `uint8_t*' to `int8_t*'
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h: In function
`int32_t
s_ext16(short unsigned int)':
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:41: error: invalid
conversion from `uint16_t*' to `int16_t*'
In file included from
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:213,
from /opt/src/qemu-snapshot-2004-08-12_23/vl.h:71,
from /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:29:
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `uint64_t
ldq_raw(void*)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:355: error: pointer of
type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `void
stq_raw(void*, long long unsigned int)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:392: error: pointer of
type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `double
ldfq_raw(void*)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:421: error: pointer of
type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `void
stfq_raw(void*, double)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:430: error: pointer of
type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc: In function `void*
st_rate_start(int, int)':
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:224: warning: unused
variable `
uint32_t incr'
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc: In function `void
st_rate_flow(void*, st_sample_t*, st_sample_t*, int*, int*)':
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:261: warning: unused
variable `
uint32_t tmp'
make[1]: *** [mixeng.o] Error 1
make[1]: Leaving directory
`/opt/src/qemu-snapshot-2004-08-12_23/ppc-softmmu'
make: *** [all] Error 1
Thanks heaps for all your hard work,
D
On Fri, 2004-08-13 at 09:33, Joe Menola wrote:
> Applying this patch and manually setting Win98 DMA to 5 has my sound worrking
> in both 98 and XP.
>
> Thanks a heap for your efforts, Malc.
>
> -jm
> On Thu August 12 2004 10:43 am, malc wrote:
> > Hello,
> >
> > At http://www.boblycat.org/~malc/code/patches/qemu/ you will find
> > latest(7th) audio patch.
> >
> > If you are using Win98 guest make sure that 16bit DMA for SoundBlaster is
> > set to 5.
> >
> > There might be regressions since code was changed heavily to accomodate
> > different/multiple sound cards (none are included in this patch, hopefully
> > that would change soon)
> >
> > Three backends are included, they can be selected via environment
> > variable, i.e.:
> >
> > QEMU_AUDIO_DRV=oss|sdl|wav
> >
> > WAV driver will produce `qemu.wav' in current working directory.
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
Darryl Dixon (RHCE, MCSE, MCSA)
Unix Systems Administrator
Oxygen Business Solutions
Phone + 64 9 633 0589
Mobile + 64 272 839 038
www.oxygenforbusiness.com
[-- Attachment #1.2: Type: text/html, Size: 5813 bytes --]
[-- Attachment #2: MCSA-RGB_sig.jpg --]
[-- Type: image/jpeg, Size: 3167 bytes --]
[-- Attachment #3: MCSE-RGB_sig.jpg --]
[-- Type: image/jpeg, Size: 3510 bytes --]
[-- Attachment #4: red_hat_cert_eng_logo-clr_sig.jpg --]
[-- Type: image/jpeg, Size: 2836 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Qemu-devel] Audio
2004-08-13 4:53 ` Darryl Dixon
@ 2004-08-13 5:05 ` Darryl Dixon
2004-08-13 9:07 ` Darryl Dixon
0 siblings, 1 reply; 22+ messages in thread
From: Darryl Dixon @ 2004-08-13 5:05 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1.1: Type: text/plain, Size: 4899 bytes --]
Malc,
Definitely seems to be something wrong with my setup; with
QEMU_AUDIO_DRV set to either oss or sdl I get no output, but if it's set
to wav the qemu.wav file is generated correctly and upon playback
contains the correct sounds...
Cheers,
D
On Fri, 2004-08-13 at 16:53, Darryl Dixon wrote:
> Hi Malc,
>
> No luck for me; Win98 guest 'sees' the card OK now (patch applied
> to latest snapshot) but no sound arrives on the host from the act of
> playing a sound in the guest :( Perhaps something odd on my setup?
> As a side note, applying the patch appears to break the compile for
> the ppc target in ppc-softmmu/:
> g++ -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I.
> -I/opt/src/qemu-snapshot-2004-08-12_23/target-ppc
> -I/opt/src/qemu-snapshot-2004-08-12_23 -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -I/opt/src/qemu-snapshot-2004-08-12_23/slirp -c -o mixeng.o
> /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc
> In file included from /opt/src/qemu-snapshot-2004-08-12_23/vl.h:71,
> from
> /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:29:
> /opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h: In function
> `int32_t
> s_ext8(unsigned char)':
> /opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:33: error:
> invalid
> conversion from `uint8_t*' to `int8_t*'
> /opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h: In function
> `int32_t
> s_ext16(short unsigned int)':
> /opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:41: error:
> invalid
> conversion from `uint16_t*' to `int16_t*'
> In file included from
> /opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:213,
> from /opt/src/qemu-snapshot-2004-08-12_23/vl.h:71,
> from
> /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:29:
> /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `uint64_t
> ldq_raw(void*)':
> /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:355: error: pointer of
> type
> `void *' used in arithmetic
> /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `void
> stq_raw(void*, long long unsigned int)':
> /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:392: error: pointer of
> type
> `void *' used in arithmetic
> /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `double
> ldfq_raw(void*)':
> /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:421: error: pointer of
> type
> `void *' used in arithmetic
> /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `void
> stfq_raw(void*, double)':
> /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:430: error: pointer of
> type
> `void *' used in arithmetic
> /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc: In function `void*
> st_rate_start(int, int)':
> /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:224: warning: unused
> variable `
> uint32_t incr'
> /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc: In function `void
> st_rate_flow(void*, st_sample_t*, st_sample_t*, int*, int*)':
> /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:261: warning: unused
> variable `
> uint32_t tmp'
> make[1]: *** [mixeng.o] Error 1
> make[1]: Leaving directory
> `/opt/src/qemu-snapshot-2004-08-12_23/ppc-softmmu'
> make: *** [all] Error 1
>
>
> Thanks heaps for all your hard work,
>
> D
>
>
> On Fri, 2004-08-13 at 09:33, Joe Menola wrote:
>
> > Applying this patch and manually setting Win98 DMA to 5 has my sound worrking
> > in both 98 and XP.
> >
> > Thanks a heap for your efforts, Malc.
> >
> > -jm
> > On Thu August 12 2004 10:43 am, malc wrote:
> > > Hello,
> > >
> > > At http://www.boblycat.org/~malc/code/patches/qemu/ you will find
> > > latest(7th) audio patch.
> > >
> > > If you are using Win98 guest make sure that 16bit DMA for SoundBlaster is
> > > set to 5.
> > >
> > > There might be regressions since code was changed heavily to accomodate
> > > different/multiple sound cards (none are included in this patch, hopefully
> > > that would change soon)
> > >
> > > Three backends are included, they can be selected via environment
> > > variable, i.e.:
> > >
> > > QEMU_AUDIO_DRV=oss|sdl|wav
> > >
> > > WAV driver will produce `qemu.wav' in current working directory.
> >
> >
> > _______________________________________________
> > Qemu-devel mailing list
> > Qemu-devel@nongnu.org
> > http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
>
>
> Darryl Dixon (RHCE, MCSE, MCSA)
>
> Unix Systems Administrator
>
> Oxygen Business Solutions
>
> Phone + 64 9 633 0589
>
> Mobile + 64 272 839 038
>
> www.oxygenforbusiness.com
>
>
>
>
>
>
> ______________________________________________________________________
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
--
Darryl Dixon <esrever_otua@pythonhacker.is-a-geek.net>
[-- Attachment #1.2: Type: text/html, Size: 7088 bytes --]
[-- Attachment #2: MCSA-RGB_sig.jpg --]
[-- Type: image/jpeg, Size: 3167 bytes --]
[-- Attachment #3: MCSE-RGB_sig.jpg --]
[-- Type: image/jpeg, Size: 3510 bytes --]
[-- Attachment #4: red_hat_cert_eng_logo-clr_sig.jpg --]
[-- Type: image/jpeg, Size: 2836 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Qemu-devel] Audio
2004-08-13 5:05 ` Darryl Dixon
@ 2004-08-13 9:07 ` Darryl Dixon
2004-08-13 12:44 ` Natalia Portillo
0 siblings, 1 reply; 22+ messages in thread
From: Darryl Dixon @ 2004-08-13 9:07 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1.1: Type: text/plain, Size: 6309 bytes --]
Hi All,
Found the problem (or at least, found the area that it's in); it's
tied to the oss driver used for this laptop in the 2.6 kernel. I went
back to a 2.4 series kernel and the sound is perfect, but, of course,
the emulation for qemu is now ~much~ slower *sighs* (I didn't realise
just how much of a performance boost 2.6 was giving me!). Ah well,
can't have everything, can we? :) Alsa sound works perfectly in 2.6,
but myself not really understanding the audio code in qemu at all and
not being particularly familiar with alsa I'm afraid that I'm not the
person to try coding up an output driver for it... :-/ *looks around
hopefully* ;)
D
On Fri, 2004-08-13 at 17:05, Darryl Dixon wrote:
> Malc,
>
> Definitely seems to be something wrong with my setup; with
> QEMU_AUDIO_DRV set to either oss or sdl I get no output, but if it's
> set to wav the qemu.wav file is generated correctly and upon playback
> contains the correct sounds...
>
> Cheers,
> D
>
>
>
>
> On Fri, 2004-08-13 at 16:53, Darryl Dixon wrote:
>
> > Hi Malc,
> >
> > No luck for me; Win98 guest 'sees' the card OK now (patch
> > applied to latest snapshot) but no sound arrives on the host from
> > the act of playing a sound in the guest :( Perhaps something odd
> > on my setup? As a side note, applying the patch appears to break
> > the compile for the ppc target in ppc-softmmu/:
> > g++ -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I.
> > -I/opt/src/qemu-snapshot-2004-08-12_23/target-ppc
> > -I/opt/src/qemu-snapshot-2004-08-12_23 -D_GNU_SOURCE
> > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> > -I/opt/src/qemu-snapshot-2004-08-12_23/slirp -c -o mixeng.o
> > /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc
> > In file included from /opt/src/qemu-snapshot-2004-08-12_23/vl.h:71,
> > from
> > /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:29:
> > /opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h: In function
> > `int32_t
> > s_ext8(unsigned char)':
> > /opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:33: error:
> > invalid
> > conversion from `uint8_t*' to `int8_t*'
> > /opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h: In function
> > `int32_t
> > s_ext16(short unsigned int)':
> > /opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:41: error:
> > invalid
> > conversion from `uint16_t*' to `int16_t*'
> > In file included from
> > /opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:213,
> > from /opt/src/qemu-snapshot-2004-08-12_23/vl.h:71,
> > from
> > /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:29:
> > /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function
> > `uint64_t
> > ldq_raw(void*)':
> > /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:355: error: pointer
> > of type
> > `void *' used in arithmetic
> > /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `void
> > stq_raw(void*, long long unsigned int)':
> > /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:392: error: pointer
> > of type
> > `void *' used in arithmetic
> > /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `double
> > ldfq_raw(void*)':
> > /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:421: error: pointer
> > of type
> > `void *' used in arithmetic
> > /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `void
> > stfq_raw(void*, double)':
> > /opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:430: error: pointer
> > of type
> > `void *' used in arithmetic
> > /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc: In function `void*
> > st_rate_start(int, int)':
> > /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:224: warning: unused
> > variable `
> > uint32_t incr'
> > /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc: In function `void
> > st_rate_flow(void*, st_sample_t*, st_sample_t*, int*, int*)':
> > /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:261: warning: unused
> > variable `
> > uint32_t tmp'
> > make[1]: *** [mixeng.o] Error 1
> > make[1]: Leaving directory
> > `/opt/src/qemu-snapshot-2004-08-12_23/ppc-softmmu'
> > make: *** [all] Error 1
> >
> >
> > Thanks heaps for all your hard work,
> >
> > D
> >
> >
> > On Fri, 2004-08-13 at 09:33, Joe Menola wrote:
> >
> > > Applying this patch and manually setting Win98 DMA to 5 has my sound worrking
> > > in both 98 and XP.
> > >
> > > Thanks a heap for your efforts, Malc.
> > >
> > > -jm
> > > On Thu August 12 2004 10:43 am, malc wrote:
> > > > Hello,
> > > >
> > > > At http://www.boblycat.org/~malc/code/patches/qemu/ you will find
> > > > latest(7th) audio patch.
> > > >
> > > > If you are using Win98 guest make sure that 16bit DMA for SoundBlaster is
> > > > set to 5.
> > > >
> > > > There might be regressions since code was changed heavily to accomodate
> > > > different/multiple sound cards (none are included in this patch, hopefully
> > > > that would change soon)
> > > >
> > > > Three backends are included, they can be selected via environment
> > > > variable, i.e.:
> > > >
> > > > QEMU_AUDIO_DRV=oss|sdl|wav
> > > >
> > > > WAV driver will produce `qemu.wav' in current working directory.
> > >
> > >
> > > _______________________________________________
> > > Qemu-devel mailing list
> > > Qemu-devel@nongnu.org
> > > http://lists.nongnu.org/mailman/listinfo/qemu-devel
> >
> >
> >
> >
> >
> >
> >
> > Darryl Dixon (RHCE, MCSE, MCSA)
> >
> >
> >
> > Unix Systems Administrator
> >
> >
> >
> > Oxygen Business Solutions
> >
> >
> >
> > Phone + 64 9 633 0589
> >
> >
> >
> > Mobile + 64 272 839 038
> >
> >
> >
> > www.oxygenforbusiness.com
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ____________________________________________________________________
> >
> > _______________________________________________
> > Qemu-devel mailing list
> > Qemu-devel@nongnu.org
> > http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
>
> --
>
> Darryl Dixon <esrever_otua@pythonhacker.is-a-geek.net>
>
>
> ______________________________________________________________________
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
--
Darryl Dixon <esrever_otua@pythonhacker.is-a-geek.net>
[-- Attachment #1.2: Type: text/html, Size: 8801 bytes --]
[-- Attachment #2: MCSA-RGB_sig.jpg --]
[-- Type: image/jpeg, Size: 3167 bytes --]
[-- Attachment #3: MCSE-RGB_sig.jpg --]
[-- Type: image/jpeg, Size: 3510 bytes --]
[-- Attachment #4: red_hat_cert_eng_logo-clr_sig.jpg --]
[-- Type: image/jpeg, Size: 2836 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* RE: [Qemu-devel] Audio
2004-08-13 9:07 ` Darryl Dixon
@ 2004-08-13 12:44 ` Natalia Portillo
0 siblings, 0 replies; 22+ messages in thread
From: Natalia Portillo @ 2004-08-13 12:44 UTC (permalink / raw)
To: esrever_otua, qemu-devel
[-- Attachment #1.1: Type: text/plain, Size: 6186 bytes --]
Compile your 2.6 kernel with OSS API emulation enabled.
_____
De: qemu-devel-bounces+iosglpgc=teleline.es@nongnu.org
[mailto:qemu-devel-bounces+iosglpgc=teleline.es@nongnu.org] En nombre de
Darryl Dixon
Enviado el: viernes, 13 de agosto de 2004 10:08
Para: qemu-devel@nongnu.org
Asunto: Re: [Qemu-devel] Audio
Hi All,
Found the problem (or at least, found the area that it's in); it's tied
to the oss driver used for this laptop in the 2.6 kernel. I went back to a
2.4 series kernel and the sound is perfect, but, of course, the emulation
for qemu is now ~much~ slower *sighs* (I didn't realise just how much of a
performance boost 2.6 was giving me!). Ah well, can't have everything, can
we? :) Alsa sound works perfectly in 2.6, but myself not really
understanding the audio code in qemu at all and not being particularly
familiar with alsa I'm afraid that I'm not the person to try coding up an
output driver for it... :-/ *looks around hopefully* ;)
D
On Fri, 2004-08-13 at 17:05, Darryl Dixon wrote:
Malc,
Definitely seems to be something wrong with my setup; with
QEMU_AUDIO_DRV set to either oss or sdl I get no output, but if it's set to
wav the qemu.wav file is generated correctly and upon playback contains the
correct sounds...
Cheers,
D
On Fri, 2004-08-13 at 16:53, Darryl Dixon wrote:
Hi Malc,
No luck for me; Win98 guest 'sees' the card OK now (patch applied to
latest snapshot) but no sound arrives on the host from the act of playing a
sound in the guest :( Perhaps something odd on my setup? As a side note,
applying the patch appears to break the compile for the ppc target in
ppc-softmmu/:
g++ -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -I.
-I/opt/src/qemu-snapshot-2004-08-12_23/target-ppc
-I/opt/src/qemu-snapshot-2004-08-12_23 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -I/opt/src/qemu-snapshot-2004-08-12_23/slirp -c -o
mixeng.o /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc
In file included from /opt/src/qemu-snapshot-2004-08-12_23/vl.h:71,
from /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:29:
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h: In function `int32_t
s_ext8(unsigned char)':
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:33: error: invalid
conversion from `uint8_t*' to `int8_t*'
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h: In function `int32_t
s_ext16(short unsigned int)':
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:41: error: invalid
conversion from `uint16_t*' to `int16_t*'
In file included from
/opt/src/qemu-snapshot-2004-08-12_23/target-ppc/cpu.h:213,
from /opt/src/qemu-snapshot-2004-08-12_23/vl.h:71,
from /opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:29:
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `uint64_t
ldq_raw(void*)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:355: error: pointer of type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `void
stq_raw(void*, long long unsigned int)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:392: error: pointer of type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `double
ldfq_raw(void*)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:421: error: pointer of type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h: In function `void
stfq_raw(void*, double)':
/opt/src/qemu-snapshot-2004-08-12_23/cpu-all.h:430: error: pointer of type
`void *' used in arithmetic
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc: In function `void*
st_rate_start(int, int)':
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:224: warning: unused variable
`
uint32_t incr'
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc: In function `void
st_rate_flow(void*, st_sample_t*, st_sample_t*, int*, int*)':
/opt/src/qemu-snapshot-2004-08-12_23/mixeng.cc:261: warning: unused variable
`
uint32_t tmp'
make[1]: *** [mixeng.o] Error 1
make[1]: Leaving directory
`/opt/src/qemu-snapshot-2004-08-12_23/ppc-softmmu'
make: *** [all] Error 1
Thanks heaps for all your hard work,
D
On Fri, 2004-08-13 at 09:33, Joe Menola wrote:
Applying this patch and manually setting Win98 DMA to 5 has my sound
worrking
in both 98 and XP.
Thanks a heap for your efforts, Malc.
-jm
On Thu August 12 2004 10:43 am, malc wrote:
> Hello,
>
> At <http://www.boblycat.org/~malc/code/patches/qemu/>
http://www.boblycat.org/~malc/code/patches/qemu/ you will find
> latest(7th) audio patch.
>
> If you are using Win98 guest make sure that 16bit DMA for SoundBlaster is
> set to 5.
>
> There might be regressions since code was changed heavily to accomodate
> different/multiple sound cards (none are included in this patch, hopefully
> that would change soon)
>
> Three backends are included, they can be selected via environment
> variable, i.e.:
>
> QEMU_AUDIO_DRV=oss|sdl|wav
>
> WAV driver will produce `qemu.wav' in current working directory.
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
<http://lists.nongnu.org/mailman/listinfo/qemu-devel>
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Darryl Dixon (RHCE, MCSE, MCSA)
Unix Systems Administrator
Oxygen Business Solutions
Phone + 64 9 633 0589
Mobile + 64 272 839 038
<http://www.oxygenforbusiness.com> www.oxygenforbusiness.com
_____
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
<http://lists.nongnu.org/mailman/listinfo/qemu-devel>
http://lists.nongnu.org/mailman/listinfo/qemu-devel
--
Darryl Dixon < <mailto:esrever_otua@pythonhacker.is-a-geek.net>
esrever_otua@pythonhacker.is-a-geek.net>
_____
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
<http://lists.nongnu.org/mailman/listinfo/qemu-devel>
http://lists.nongnu.org/mailman/listinfo/qemu-devel
--
Darryl Dixon < <mailto:esrever_otua@pythonhacker.is-a-geek.net>
esrever_otua@pythonhacker.is-a-geek.net>
[-- Attachment #1.2: Type: text/html, Size: 9435 bytes --]
[-- Attachment #2: red_hat_cert_eng_logo-clr_sig.jpg --]
[-- Type: image/jpeg, Size: 2836 bytes --]
[-- Attachment #3: MCSE-RGB_sig.jpg --]
[-- Type: image/jpeg, Size: 3510 bytes --]
[-- Attachment #4: MCSA-RGB_sig.jpg --]
[-- Type: image/jpeg, Size: 3167 bytes --]
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Audio
@ 2009-09-11 23:34 malc
0 siblings, 0 replies; 22+ messages in thread
From: malc @ 2009-09-11 23:34 UTC (permalink / raw)
To: qemu-devel
The code was just commited that enables "polling" audio mode (oss and
alsa), it's also unconditionally enabled now to obtain some testing
coverage, so please give it a whirl, feedback is welcome.
--
mailto:av1474@comtv.ru
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Audio
@ 2007-02-11 4:19 malc
2007-02-17 23:00 ` Thiemo Seufer
0 siblings, 1 reply; 22+ messages in thread
From: malc @ 2007-02-11 4:19 UTC (permalink / raw)
To: qemu-devel
Hello,
At http://www.boblycat.org/~malc/code/patches/qemu/ you will find latest
(21_aqemu) audio patch.
New things relative to previous one:
1. ALSA failure to set the format is no longer considered to be a
hard error, in this situation ALSA is queried for the format it
deems acceptable and work with that (On this PPC Linux box ALSA
always returns EINVAL when asked for S16_LE but merrily works with
the default - S16_BE)
2. Added support for 32bit per sample formats
3. Intel Controller Hub N Function 7 AKA AC'97
New things relative to the CVS:
1. All of the above
2. EsounD driver by Frederick Reeve
(If someone wants aRts driver (s)he is welcome to do it, the task
is mostly renaming the identifiers and linking with libartsc)
Now to some mildly amusing performance observations. [1]
QEMU running Slackware 11.0 (Kernel 2.4.33) on PPC 7447A 1.3Ghz
demonstrated that:
i810_audio [2] is faster than es1370
snd-intel810 is on par with snd-ens1370
i810_audio and es1370 blow snd-intel810 and snd-ens1370 right out of
th water.
The difference is toned down on Athlon 1G - where QEMU has a luxory of
using KQEMU, but nevertheless.
Perhaps the situation is improved in latest ALSA incrarnations, i don't
know.
[1] Observations courtesy http://www.boblycat.org/~malc/apc/
[2] i810_audio might, and usually does, require setting the `clocking'
parameter upon module installation
--
vale
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Audio
@ 2006-04-07 23:00 malc
0 siblings, 0 replies; 22+ messages in thread
From: malc @ 2006-04-07 23:00 UTC (permalink / raw)
To: qemu-devel
Hello,
At http://www.boblycat.org/~malc/code/patches/qemu/ you will find
latest (17h_aqemu at the time of this writing) audio patch. Changes
are as follows:
1. Cosmetics (Thanks to Mike Nordell)
2. Fix of several SB16 commands (mainly related to Sierras audblst.drv)
(Thanks to rozojc for rising this topic on users forum)
3. Workaround for FreeBSDs incorrect handling of SNDCTL_DSP_OSPACE ioctl
(Big thanks to Juergen Lock for lending me a shell on his box to debug
the issue)
--
mailto:malc@pulsesoft.com
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Audio
@ 2005-10-14 21:41 malc
0 siblings, 0 replies; 22+ messages in thread
From: malc @ 2005-10-14 21:41 UTC (permalink / raw)
To: qemu-devel
At http://www.boblycat.org/~malc/code/patches/qemu/ you will find latest
audio patch (14a_aqemu). Highlights of the release:
a. Mike Kronenberg contributed CoreAudio driver (MacOS X native sound)
(no support for ADC yet)
b. Work on better endianness support
c. Less(hopefully) racy SDL driver
d. Bugfixes
--
mailto:malc@pulsesoft.com
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Audio
@ 2005-08-20 19:50 malc
2005-08-21 7:23 ` Sylvain Petreolle
0 siblings, 1 reply; 22+ messages in thread
From: malc @ 2005-08-20 19:50 UTC (permalink / raw)
To: qemu-devel
At http://www.boblycat.org/~malc/code/patches/qemu/index.html you will
find latest audio patch (13_aqemu). Highlights of the release:
a. ES1370 emulation
b. ADC support (only for ES1370)
c. ALSA driver
d. Evil adlib hack replaced with less evil one (good for Windows hosts)
e. Internal cleanups
There are following issues:
Playing audio through ES1370 under Windows guests is much more
expensive than under Linux.
No UART support for ES1370, no ADC support for SB16, no gameport
support for either.
ADC on non-linux guests is only available through FMOD audio driver
(be aware that current version of FMOD - 3.74 has a bug that prevents
ADC from working on Linux, this should fixed in 3.75 which is expected
sometime in the near future).
ALSA driver could have been better, i guess, but given state of ALSA
documentation this is not terribly surprising, if you are an ALSA
expert by all means fix it.
--
mailto:malc@pulsesoft.com
^ permalink raw reply [flat|nested] 22+ messages in thread
* RE: [Qemu-devel] Audio
2005-08-20 19:50 malc
@ 2005-08-21 7:23 ` Sylvain Petreolle
2005-08-21 10:21 ` malc
0 siblings, 1 reply; 22+ messages in thread
From: Sylvain Petreolle @ 2005-08-21 7:23 UTC (permalink / raw)
To: qemu-devel
--- malc a écrit :
> At http://www.boblycat.org/~malc/code/patches/qemu/index.html you will
> c. ALSA driver
> ALSA driver could have been better, i guess, but given state of ALSA
> documentation this is not terribly surprising, if you are an ALSA
> expert by all means fix it.
look at alsa homepage, there are tons of links to developer FAQs/HOWTOs.
One of them, with extremly detailed code :
http://www.suse.de/~mana/alsa090_howto.html
Kind regards,
Usurp (aka Sylvain Petreolle)
humans are like computers,
yesterday the BIOS was all
- today its just a word
^ permalink raw reply [flat|nested] 22+ messages in thread
* RE: [Qemu-devel] Audio
2005-08-21 7:23 ` Sylvain Petreolle
@ 2005-08-21 10:21 ` malc
0 siblings, 0 replies; 22+ messages in thread
From: malc @ 2005-08-21 10:21 UTC (permalink / raw)
To: spetreolle, qemu-devel
On Sun, 21 Aug 2005, Sylvain Petreolle wrote:
>
> --- malc a ?crit :
>
>> At http://www.boblycat.org/~malc/code/patches/qemu/index.html you will
>> c. ALSA driver
>
>> ALSA driver could have been better, i guess, but given state of ALSA
>> documentation this is not terribly surprising, if you are an ALSA
>> expert by all means fix it.
> look at alsa homepage, there are tons of links to developer FAQs/HOWTOs.
> One of them, with extremly detailed code :
> http://www.suse.de/~mana/alsa090_howto.html
>
Been there. Those FAQs and HOWTOs are enough to maybe write a wav player,
the general documentation quality of ALSA leaves alot to be desired.
To set the record straight i did the driver out of curiosity and learned
enough to have no desire continuing it.
--
mailto:malc@pulsesoft.com
^ permalink raw reply [flat|nested] 22+ messages in thread
* [Qemu-devel] Audio
@ 2004-11-05 18:47 malc
0 siblings, 0 replies; 22+ messages in thread
From: malc @ 2004-11-05 18:47 UTC (permalink / raw)
To: qemu-devel
Hello,
At http://www.boblycat.org/~malc/code/patches/qemu/ you will find latest
(11_aqemu) audio patch, which boosts following improvements:
a. Optional OPL2 support (emulator uses floats and is disabled by default) [1]
b. Optional FMOD support (also disabled by default) [2]
c. SDL shutdown fix
d. DMA transfers should no longer start after ADC command
e. Internal cleanups
Footnotes:
[1] Based on LGPLed version of fmopl.c (from AdPlug project)
Thanks to Johannes Martin for reminding me to revisit it
[2] Might provide better experience for MacOS and Windows users
--
mailto:malc@pulsesoft.com
^ permalink raw reply [flat|nested] 22+ messages in thread
[parent not found: <Pine.LNX.4.55.0410311815320.2162@home.oyster.ru>]
* [Qemu-devel] Audio
@ 2004-06-20 17:51 malc
2004-06-20 22:06 ` Chad Page
2004-06-22 5:29 ` kazu
0 siblings, 2 replies; 22+ messages in thread
From: malc @ 2004-06-20 17:51 UTC (permalink / raw)
To: qemu-devel
Hello,
Patch that fixes audio for Win98 guest and also workarounds SDL deadlock
is now available at:
http://www.boblycat.org/~malc/code/patches/qemu/index.html
Quite a few things have changed so it can introduce regressions. Would
be nice if someone with big-endian host can verify(or fix) audio output.
--
mailto:malc@pulsesoft.com
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Qemu-devel] Audio
2004-06-20 17:51 malc
@ 2004-06-20 22:06 ` Chad Page
2004-06-22 5:29 ` kazu
1 sibling, 0 replies; 22+ messages in thread
From: Chad Page @ 2004-06-20 22:06 UTC (permalink / raw)
To: qemu-devel
It detects now, but is mute and acts like the interrupt isn't
working correctly. Getting closer, though :) Thanks!
- Chad
On Sun, 20 Jun 2004, malc wrote:
> Hello,
>
> Patch that fixes audio for Win98 guest and also workarounds SDL deadlock
> is now available at:
>
> http://www.boblycat.org/~malc/code/patches/qemu/index.html
>
> Quite a few things have changed so it can introduce regressions. Would
> be nice if someone with big-endian host can verify(or fix) audio output.
>
> --
> mailto:malc@pulsesoft.com
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [Qemu-devel] Audio
2004-06-20 17:51 malc
2004-06-20 22:06 ` Chad Page
@ 2004-06-22 5:29 ` kazu
1 sibling, 0 replies; 22+ messages in thread
From: kazu @ 2004-06-22 5:29 UTC (permalink / raw)
To: qemu-devel
Hi,
Monday, June 21, 2004 2:51 AM malc wrote:
>
> Patch that fixes audio for Win98 guest and also workarounds SDL deadlock
> is now available at:
>
> http://www.boblycat.org/~malc/code/patches/qemu/index.html
>
I added a little change to work on Windows and back ported to 0.5.5.
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20040621-6_aqemu.patch.gz
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-0.5.5-6_aqemu.patch.gz
I tested to play .wav sound in Red Hat 7.2 guest.
modprobe sb io=0x220 irq=5
play test.wav
They work well on Windows2000 and WindowsMe. A little thing is that I hear a
little noise two times when a sound starts. It seems that it occurs when a
device is opened.
But the problem is that it doesn't work on Fedora Core 1 host with these
patches. I tried to find out what was the problem but I couldn't. It seems
that oss and sb16 work....
I can hear a sound and almost the same noise when I used original 0.5.5
source.
Regards,
kazu
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2009-09-11 23:34 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-12 15:43 [Qemu-devel] Audio malc
2004-08-12 21:33 ` Joe Menola
2004-08-13 4:53 ` Darryl Dixon
2004-08-13 5:05 ` Darryl Dixon
2004-08-13 9:07 ` Darryl Dixon
2004-08-13 12:44 ` Natalia Portillo
-- strict thread matches above, loose matches on Subject: below --
2009-09-11 23:34 malc
2007-02-11 4:19 malc
2007-02-17 23:00 ` Thiemo Seufer
2006-04-07 23:00 malc
2005-10-14 21:41 malc
2005-08-20 19:50 malc
2005-08-21 7:23 ` Sylvain Petreolle
2005-08-21 10:21 ` malc
2004-11-05 18:47 malc
[not found] <Pine.LNX.4.55.0410311815320.2162@home.oyster.ru>
[not found] ` <4185ADFA.7010102@brittainweb.org>
2004-11-01 12:06 ` malc
2004-11-04 17:14 ` Jason Brittain
2004-11-04 19:50 ` malc
2004-11-01 12:27 ` malc
2004-06-20 17:51 malc
2004-06-20 22:06 ` Chad Page
2004-06-22 5:29 ` kazu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.