From owner-freebsd-usb@FreeBSD.ORG Tue Jun 11 07:51:39 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 702F62A9 for ; Tue, 11 Jun 2013 07:51:39 +0000 (UTC) (envelope-from jozze.zepl@gmail.com) Received: from mail-ve0-x232.google.com (mail-ve0-x232.google.com [IPv6:2607:f8b0:400c:c01::232]) by mx1.freebsd.org (Postfix) with ESMTP id 3195A11D2 for ; Tue, 11 Jun 2013 07:51:39 +0000 (UTC) Received: by mail-ve0-f178.google.com with SMTP id pb11so5483135veb.37 for ; Tue, 11 Jun 2013 00:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=36DoxtSrTkaqMhjATIvRlNZmPW7yqvEqRTP/eETnc0o=; b=thCS8FzRKGiT80cydxHlcXXM7+KFQmTVJutFZKFbMW/W0gQ2SYomQz3lzJzdXkr7TF t2TMO/g/kTjV5PzipPvE6ki6okA+KV8Ok02PXPRHX0DQlGWjwr8LL0UbFjOPbAH+hoMD QmkEkTT7g87aarx1MAGH1QUG4S7PHnD3mL+oEELXs5wPdVcriBvcTEDGHLFSIKliUd8f qegERUB3g40M3BPUL3z9HSKMEhKUnpeP7fazEYpSnNbU62XWWBPndiN3gXWpUkMf3zHP o6dliQYDr1fSODbWFyPVmGqg9re3eA/CZjLr3tsGRietTaqissa6J/cPmiJ3u5VSxHf5 33Zg== MIME-Version: 1.0 X-Received: by 10.52.69.40 with SMTP id b8mr6358407vdu.130.1370937098618; Tue, 11 Jun 2013 00:51:38 -0700 (PDT) Received: by 10.58.228.196 with HTTP; Tue, 11 Jun 2013 00:51:38 -0700 (PDT) In-Reply-To: References: <51B6BCF7.3030705@bitfrost.no> Date: Tue, 11 Jun 2013 09:51:38 +0200 Message-ID: Subject: Re: webcamd rejects audio/oss modules From: =?ISO-8859-2?Q?Jo=BEe_Zobec?= To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jun 2013 07:51:39 -0000 The kernel doesn't build with snd_uaudio.ko if there is sound.ko missing. GENERIC kernel cannot load modules osscore.ko and oss_hdaudio.ko with sound.ko either built in the kernel or loaded as a module. When I tried to load snd_uaudio.ko manually, with both osscore.ko and oss_hdaudio.ko loaded, exactly the same happened, as if I plugged in my camera. I plugged in the camera after 50s of running (practically immediately after boot). This is the kernel message on my monitor. I enabled dumpdev=3D"AUTO" in my /etc/rc.conf, to get the full output, but there was no file in /var/log showing anything, so I just wrote here what I managed to see on the screen: (ada0:ata5:0:0:0): Error 5, Retries exahusted (ada0:ata5:0:0:0): Synchronize cache failed (ada1:ata5:0:1:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 00 (ada1:ata5:0:1:0): CAM status: CCB request is in progress (ada1:ata5:0:1:0): Error 5, Retries exhausted (ada1:ata5:0:1:0): Synchronize cache failed Dumping 320 out of 3052 MB:kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid =3D 7; apic id =3D 07 fault virtual address =3D 0x0 fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff8028020c stack pointer =3D 0x28:0xffffff80db5de890 frame pointer =3D 0x28:0xffffff80db5de940 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D resume, IOPL =3D 0 current process =3D 1526 (kldload) trap number =3D 12 panic: page fault cpuid =3D 7 Uptime: 50s 2013/6/11 Jo=BEe Zobec > Yes, I built without snd_uaudio.ko. > > In order to use the port audio/oss, I had to disable the sound.ko, so I > had to exclude it from the kernel, and add it as a module. > > I agree, that snd_uaudio.ko brought improvements. I like it a lot. But > snd_hda.ko, which I use to listen to music make those scratchy sounds all > the time, where the music should be crystal clear. > > I will try now with the GENERIC kernel, and the kernel without sound.ko, > and snd_hda.ko, but with snd_uaudio.ko enabled and see what will happen. > > Jo=BEe > > > 2013/6/11 Hans Petter Selasky > >> On 06/10/13 22:39, Jo=BEe Zobec wrote: >> >>> Dear all, >>> >>> my name is Jo=BEe Zobec. I am using Logitech Webcam C525. So fare I hav= e >>> been >>> able to use it flawlessly with drivers tat came with the base system. >>> However, those same drivers fared rather poorly when I used them with >>> audio/musicpd, so I tried to use audio/oss. >>> >>> So far so good. There has been a great improvement on the output qualit= y >>> given by musicpd, but my webcam doesn't work with these modules -- kern= el >>> automatically tries to create a /dev/dsp* device. To do that, it requir= es >>> sound.ko module, which conflicts with module osscore.ko, supplied by th= e >>> audio/oss port. Not knowing what to do, it starts to panic. >>> >>> Is there a way to use multimedia/webcamd with audio/oss, or is this >>> unsupported? I am running FreeBSD 9.1-STABLE #3 r251600. >>> >>> Thank you for your time, >>> >> >> Hi, >> >> Did you build a kernel without snd_uaudio? >> >> Also note that 9-stable has several USB audio improvements. >> >> --HPS >> >> >