Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Apr 2006 11:06:40 +0800
From:      "Robert Nicholson" <nicholson.robert@gmail.com>
To:        "Rong-En Fan" <grafan@gmail.com>
Cc:        freebsd-multimedia@freebsd.org, Ariff Abdullah <ariff@freebsd.org>
Subject:   Re: skype sound problem
Message-ID:  <7e1fa8c0603311906n420554dh7354376ce844d072@mail.gmail.com>
In-Reply-To: <6eb82e0603291958vbea1ca3g82d40e32531b68e8@mail.gmail.com>
References:  <6eb82e0603282051j65496dcbr536a2d6f6478e774@mail.gmail.com> <20060329133529.66e18afa.ariff@FreeBSD.org> <6eb82e0603291714y3271eca5l927d15c177d7d61f@mail.gmail.com> <20060330114130.610aa707.ariff@FreeBSD.org> <6eb82e0603291958vbea1ca3g82d40e32531b68e8@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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:
---------------------------------------------------------------------------=
-----------------------------
=3D=3D=3D> sound (all)
=3D=3D=3D> 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=3D8000 -fno-common=20
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=3D2  -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=3Dc99 -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=3D8000 -fno-common=20
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=3D2  -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=3Dc99 -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=3D8000 -fno-common=20
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=3D2  -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=3Dc99 -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=3D8000 -fno-common=20
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=3D2  -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=3Dc99 -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=3D8000 -fno-common=20
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=3D2  -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=3Dc99 -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=3D8000 -fno-common=20
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=3D2  -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=3Dc99 -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=3D8000 -fno-common=20
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=3D2  -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=3Dc99 -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=3D8000 -fno-common=20
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=3D2  -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=3Dc99 -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=3D8000 -fno-common=20
-I/usr/obj/usr/src/sys/CUSTKERNEL -mno-align-long-strings
-mpreferred-stack-boundary=3D2  -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=3Dc99 -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@gmail.com> wrote:
> On 3/29/06, Ariff Abdullah <ariff@freebsd.org> wrote:
> > On Wed, 29 Mar 2006 20:14:08 -0500
> > "Rong-En Fan" <grafan@gmail.com> wrote:
> > > On 3/29/06, Ariff Abdullah <ariff@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
> To unsubscribe, send any mail to
> "freebsd-multimedia-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7e1fa8c0603311906n420554dh7354376ce844d072>