skype sound problem

Robert Nicholson nicholson.robert at gmail.com
Sat Apr 1 03:06:42 UTC 2006


Hi Ariff,

I tried the same too. I replaced dsp.c and sound.c with versions from
your site. However when I compile the kernel, I get the following:
--------------------------------------------------------------------------------------------------------
===> sound (all)
===> sound/sound (all)
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
-nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/CUSTKERNEL/opt_global.h -I. -I@ -I@/contrib/altq
-I@/../include -finline-limit=8000 -fno-common 
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99 -c ac97_if.c
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
-nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/CUSTKERNEL/opt_global.h -I. -I@ -I@/contrib/altq
-I@/../include -finline-limit=8000 -fno-common 
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99 -c channel_if.c
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
-nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/CUSTKERNEL/opt_global.h -I. -I@ -I@/contrib/altq
-I@/../include -finline-limit=8000 -fno-common 
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99 -c feeder_if.c
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
-nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/CUSTKERNEL/opt_global.h -I. -I@ -I@/contrib/altq
-I@/../include -finline-limit=8000 -fno-common 
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99 -c mixer_if.c
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
-nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/CUSTKERNEL/opt_global.h -I. -I@ -I@/contrib/altq
-I@/../include -finline-limit=8000 -fno-common 
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99 -c
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97.c
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
-nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/CUSTKERNEL/opt_global.h -I. -I@ -I@/contrib/altq
-I@/../include -finline-limit=8000 -fno-common 
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99 -c
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/ac97_patch.c
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
-nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/CUSTKERNEL/opt_global.h -I. -I@ -I@/contrib/altq
-I@/../include -finline-limit=8000 -fno-common 
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99 -c
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/buffer.c
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
-nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/CUSTKERNEL/opt_global.h -I. -I@ -I@/contrib/altq
-I@/../include -finline-limit=8000 -fno-common 
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99 -c
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/channel.c
cc -O2 -fno-strict-aliasing -pipe -Werror -D_KERNEL -DKLD_MODULE
-nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/CUSTKERNEL/opt_global.h -I. -I@ -I@/contrib/altq
-I@/../include -finline-limit=8000 -fno-common 
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-ffreestanding -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99 -c
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c: In
function `dsp_open':
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:237:
warning: passing arg 2 of `pcm_chnalloc' makes integer from pointer
without a cast
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:237:
error: too many arguments to function `pcm_chnalloc'
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:237:
warning: assignment makes integer from pointer without a cast
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:239:
warning: passing arg 2 of `pcm_chnalloc' makes integer from pointer
without a cast
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:239:
error: too many arguments to function `pcm_chnalloc'
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:239:
warning: assignment makes integer from pointer without a cast
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:261:
warning: passing arg 2 of `pcm_chnalloc' makes integer from pointer
without a cast
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:261:
error: too many arguments to function `pcm_chnalloc'
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:261:
warning: assignment makes integer from pointer without a cast
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:263:
warning: passing arg 2 of `pcm_chnalloc' makes integer from pointer
without a cast
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:263:
error: too many arguments to function `pcm_chnalloc'
/usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/dsp.c:263:
warning: assignment makes integer from pointer without a cast
*** Error code 1

Stop in /usr/src/sys/modules/sound/sound.
*** Error code 1

Stop in /usr/src/sys/modules/sound.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/CUSTKERNEL.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
-------------------------------------------------------------------------
My kernel config is the same as the one I sent you earlier with the
addition of the statement that you told me to add: options PREEMPTION.

Please tell me how to solve this. I have already updated my sources to
their latest versions before I tried this.

Regards,
Michael.

On 3/30/06, Rong-En Fan <grafan at gmail.com> wrote:
> On 3/29/06, Ariff Abdullah <ariff at freebsd.org> wrote:
> > On Wed, 29 Mar 2006 20:14:08 -0500
> > "Rong-En Fan" <grafan at gmail.com> wrote:
> > > On 3/29/06, Ariff Abdullah <ariff at freebsd.org> wrote:
> > > > On Tue, 28 Mar 2006 23:51:45 -0500
> > > > This is a known issue (at least, for me).
> > > >
> > > > Update your src (at least for sys/dev/sound/pcm), and apply this
> > > > patch:
> > > >
> > > >   http://people.freebsd.org/~ariff/test/sound.c.diff
> > >
> > > Hi,
> > >
> > > I have updated my -current to March 29, apply the patch above.
> > > However, it does not solve my problem.
> > >
> > Gahh.. baka baka.. accidentally committed unnecessary debugging part.
> >
> > Replace your sys/dev/sound/pcm/dsp.c with this one:
> >
> >   http://people.freebsd.org/~ariff/test/dsp.c
> >
> > You still need that sound.c fix.
> >
> > Sorry.
>
> Thanks! Now my skype works well. I dont need to reboot after
> skype is used :-)
>
> Thanks,
> Rong-En fan
> _______________________________________________
> freebsd-multimedia at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> To unsubscribe, send any mail to
> "freebsd-multimedia-unsubscribe at freebsd.org"
>


More information about the freebsd-multimedia mailing list