From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 12 01:35:02 2010 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80849106566C for ; Mon, 12 Apr 2010 01:35:02 +0000 (UTC) (envelope-from erikd@mega-nerd.com) Received: from outbound.icp-qv1-irony-out3.iinet.net.au (outbound.icp-qv1-irony-out3.iinet.net.au [203.59.1.148]) by mx1.freebsd.org (Postfix) with ESMTP id EE6718FC16 for ; Mon, 12 Apr 2010 01:35:01 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsFAE8PwkvLzuai/2dsb2JhbACPcotUcbYJhQwE X-IronPort-AV: E=Sophos;i="4.52,186,1270396800"; d="scan'208";a="581704178" Received: from unknown (HELO hendrix.mega-nerd.net) ([203.206.230.162]) by outbound.icp-qv1-irony-out3.iinet.net.au with ESMTP; 12 Apr 2010 09:06:50 +0800 Received: from hendrix.mnn (hendrix.mnn [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id B6E27106DD3; Mon, 12 Apr 2010 11:06:49 +1000 (EST) Date: Mon, 12 Apr 2010 11:06:49 +1000 From: Erik de Castro Lopo To: multimedia@freebsd.org Message-Id: <20100412110649.82fdbc6a.erikd@mega-nerd.com> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 2.6.0 (GTK+ 2.16.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: libsndfile and libsamplerate X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 01:35:02 -0000 Hi all, I am the maintainer of libsndfile and libsamplerate and server the tarballs on my server. I've recently moved the server from a place where I didn't care about the bandwidth to a place where I do. Looking at my apache logs I find that 90% of my traffic is the libsndfile and libsamplerate source tarballs and about 90% of that is the freebsd fetch/libfetch client. To give you an idea, I see about 1100 libsndfile tarball downloads in the last 24 hours and about 930 of those were fetch/libfetch. I mentioned this on #freebsd on freenode and db@ suggested I email this list and ask you freebsd people to mirror these traballs and update the ports files to point to the mirrored versions. I'm not on the list, so please CC any responses. Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/ From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 12 02:12:07 2010 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E9D41065676 for ; Mon, 12 Apr 2010 02:12:07 +0000 (UTC) (envelope-from scjamorim@bsd.com.br) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 087B88FC0C for ; Mon, 12 Apr 2010 02:12:06 +0000 (UTC) Received: by gyh20 with SMTP id 20so2894832gyh.13 for ; Sun, 11 Apr 2010 19:12:06 -0700 (PDT) Received: by 10.151.4.8 with SMTP id g8mr3204066ybi.40.1271036754840; Sun, 11 Apr 2010 18:45:54 -0700 (PDT) Received: from [10.1.1.2] (200-163-7-78.bsace705.dsl.brasiltelecom.net.br [200.163.7.78]) by mx.google.com with ESMTPS id 7sm943938yxd.62.2010.04.11.18.45.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 11 Apr 2010 18:45:53 -0700 (PDT) Sender: =?UTF-8?Q?Sylvio_C=C3=A9sar?= Mime-Version: 1.0 (Apple Message framework v1075.2) Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes From: Sylvio Cesar Teixeira In-Reply-To: <20100412110649.82fdbc6a.erikd@mega-nerd.com> Date: Sun, 11 Apr 2010 22:45:47 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: <4A9E2D2C-9CDF-448F-8037-BE91509E84FC@FreeBSD.org> References: <20100412110649.82fdbc6a.erikd@mega-nerd.com> To: Erik de Castro Lopo X-Mailer: Apple Mail (2.1075.2) Cc: multimedia@freebsd.org Subject: Re: libsndfile and libsamplerate X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 02:12:07 -0000 Em 11/04/2010, =E0s 22:06, Erik de Castro Lopo escreveu: > Hi all, > > I am the maintainer of libsndfile and libsamplerate and server the > tarballs on my server. I've recently moved the server from a place > where I didn't care about the bandwidth to a place where I do. > > Looking at my apache logs I find that 90% of my traffic is the > libsndfile and libsamplerate source tarballs and about 90% of that > is the freebsd fetch/libfetch client. > > To give you an idea, I see about 1100 libsndfile tarball downloads > in the last 24 hours and about 930 of those were fetch/libfetch. > > I mentioned this on #freebsd on freenode and db@ suggested I email > this list and ask you freebsd people to mirror these traballs and > update the ports files to point to the mirrored versions. > > I'm not on the list, so please CC any responses. > > Cheers, > Erik > -- =20 > ---------------------------------------------------------------------- > Erik de Castro Lopo > http://www.mega-nerd.com/ > _______________________________________________ > 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=20 > " Hi Erik, I can see if put it in my mirror too. I'll give a feedback for you =20 later. --- --- Sylvio Cesar Teixeira || FreeBSD Committer www.scjamorim.org || http://people.freebsd.org/~sylvio http://people.freebsd.org/~sylvio/sylvio-pub.key= From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 12 11:07:05 2010 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1055E106567E for ; Mon, 12 Apr 2010 11:07:05 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E8F9E8FC18 for ; Mon, 12 Apr 2010 11:07:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3CB74i1042496 for ; Mon, 12 Apr 2010 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3CB74B7042494 for freebsd-multimedia@FreeBSD.org; Mon, 12 Apr 2010 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Apr 2010 11:07:04 GMT Message-Id: <201004121107.o3CB74B7042494@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-multimedia@FreeBSD.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 11:07:05 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/145121 multimedia error: cannot portupgrade audio/jack o kern/144659 multimedia [pcm] The distortion of the sound playback of music at o kern/143505 multimedia [pcm] FreeBSD 8.0-RELEASE (x64) won't make sound card o kern/141826 multimedia [snd_hda] load of snd_hda module fails o kern/140591 multimedia [PATCH][sound] No sound output on lineout/headphone ja o kern/140453 multimedia [sound] No sound inside Virtualbox on 50% volume o kern/137589 multimedia [snd_uaudio] snd_uaudio.ko (USB audio driver) doesn't o kern/134767 multimedia [sound] [snd_hda] [regression] Sigmatel STAC9205X no s o kern/132848 multimedia [sound] [snd_emu10kx] driver problem with card init, s o kern/132511 multimedia [sound] [snd_hda] Probing ALC888 codec on ASRock K10N7 o kern/129604 multimedia [sound] Sound stops with error: pcm0:virtual:dsp0.vp0: o kern/127131 multimedia [bktr] /usr/src/sys/dev/bktr/bktr_os.c, line 469: wron s kern/125756 multimedia [sound] [patch] cannot detect soft-modem on HDA bus o kern/124319 multimedia [sound] [snd_emu10k1] [regression] Cannot record from o kern/122086 multimedia [sound] maestro sound driver is working, but mixer ini p kern/121156 multimedia [sound] [patch] Turn on inverted external amplifier se o kern/120857 multimedia [sound] [snd_emu10k1] snd_emu10k1 driver issues a warn o kern/120780 multimedia [sound] [snd_hda] snd_hda doesn't work on Dell Latitut o kern/119973 multimedia [sound] [snd_maestro] [regression] snd_maestro only wo o kern/119931 multimedia [sound] No sound card detected on ASUS "K8V-X SE R2.00 o kern/119759 multimedia [sound] [snd_emu10k1] [regression] Can not record anyt f kern/115666 multimedia [sound] Microphone does not work o kern/115300 multimedia [sound] [snd_hda] [regression] snd_hda(4) fails to att o kern/114760 multimedia [sound] [snd_cmi] snd_cmi driver causing sporadic syst s kern/113950 multimedia [sound] [patch] [request] add per-vchan mixer support o kern/111767 multimedia [sound] ATI SB450 High Definition Audio Controller sou o kern/107516 multimedia [sound] [snd_emu10k1] - skips, clicks and lag after a o kern/107051 multimedia [sound] only 2 channels output works for the ALC850 (o o kern/104874 multimedia [sound] [snd_emu10k1] kldload snd_emu10k1 hangs system o kern/104626 multimedia [sound] FreeBSD 6.2 does not support SoundBlaster Audi o kern/101417 multimedia [sound] 4-speakers output not possible on Asus A8V-Del o kern/100859 multimedia [sound] [snd_ich] snd_ich broken on GIGABYTE 915 syste o kern/98752 multimedia [sound] Intel ich6 82801 FB - on Packard Bell A8810 la o kern/98504 multimedia [sound] Sound is distorted with SB Live 5.1 o kern/98496 multimedia [sound] [snd_ich] some functions don't work in my soun o kern/97609 multimedia [sound] Load Sound Module - VIA8233 - fails o kern/97535 multimedia [sound] [snd_mss] doesn't work in 6.0-RELEASE and abov o kern/96538 multimedia [sound] emu10k1-driver inverts channels o kern/95086 multimedia [sound] uaudio line in problem with sbdm lx o kern/94279 multimedia [sound] [snd_neomagic] snd_neomagic crashes on FreeBSD o kern/93986 multimedia [sound] Acer TravelMate 4652LMi pcm0 channel dead o kern/92512 multimedia [sound] distorted mono output with emu10k1 o kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: record interrup s kern/83697 multimedia [sound] [snd_mss] [patch] support, docs added for full o kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work. o kern/81146 multimedia [sound] Sound isn't working AT ALL for Sis7012 onboard o kern/80632 multimedia [sound] pcm driver missing support for CMI8738 auxilla o kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: interrupt sto o kern/79905 multimedia [sound] sis7018 sound module problem o kern/79678 multimedia [sound] sound works except recording from any source f kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound nearly inaudible o kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestro-2E (still o o kern/60677 multimedia [sound] [patch] No reaction of volume controy key on I s kern/60599 multimedia [bktr] [partial patch] No sound for ATI TV Wonder (ste o kern/37600 multimedia [sound] [partial patch] t4dwave drive doesn't record. o kern/23546 multimedia [sound] [snd_csa] [patch] csa DMA-interrupt problem 56 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 12 14:29:35 2010 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D374C106566C for ; Mon, 12 Apr 2010 14:29:35 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id 8BE488FC17 for ; Mon, 12 Apr 2010 14:29:35 +0000 (UTC) Received: by qyk11 with SMTP id 11so4878312qyk.13 for ; Mon, 12 Apr 2010 07:29:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=8YB/5n+wEukCQPV8o6QdnwsQ1nUbZve241KYAPQUaFQ=; b=i9gygo43bhZnC4R3Ik/z0YKBfHjnpZRjpn0puXwLT585NCoGWLdT8uaAIR6OskjecV P6C27sY2RSruQaRutXJ71r6PtCG7I1Y0KPcKblssuUCkKcVYZ+Gj5PNsGM2S7gI/ixjw +lzfGdJplvzQVmCUK/Maua58Ky1XB6T7fbn+E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=mVubWSTrm/sZ+4aNWdD7UnpO+bN90813RE1t5XituoOGPRCUbKZtm4aoPcFPVDI8Tv p3dz0UR8WJFUtA4ENS8LOdsywT7ONzyS8i4lh5UAcFdJ5VPwv6D7jyfALmnabBlvplSg 9kZ6Lm4+dXFFtGKueN3O3DCcR8gWiLNdi7RmE= MIME-Version: 1.0 Received: by 10.229.28.85 with HTTP; Mon, 12 Apr 2010 07:29:33 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Apr 2010 07:29:33 -0700 Received: by 10.229.241.66 with SMTP id ld2mr6095070qcb.78.1271082573616; Mon, 12 Apr 2010 07:29:33 -0700 (PDT) Message-ID: From: Garrett Cooper To: multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: Buzzing snd_emu10kx enabled card with r206173 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 14:29:35 -0000 On Tue, Apr 6, 2010 at 3:39 AM, Garrett Cooper wrote: > On Mon, Apr 5, 2010 at 12:26 PM, Garrett Cooper wrot= e: >> On Mon, Apr 5, 2010 at 11:22 AM, Garrett Cooper wro= te: >>> Hi, >>> =A0 =A0When I first installed FreeBSD on this machine, I had a heck of = a >>> time getting the soundcard's PCM channel to function properly. It >>> would buzz incessantly when I played any audio on it; I disabled the >>> onboard snd_hda enabled audio and things magically worked, until >>> today. After a kernel upgrade and a few warm boots, I'm back to where >>> I started from -- the PCM channel buzzes whenever I play audio; >>> line-in works perfectly fine however. I'm not seeing anything out of >>> the ordinary in commits over the past couple of weeks for the pcm >>> pieces (the last successful kernel I used was 2~3 weeks old). >>> =A0 =A0Are there any device_printf's I should add or a debug procedure >>> that you recommend I do to triage the situation? >>> Thanks, >>> -Garrett >>> >>> # uname -a >>> FreeBSD bayonetta.local 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r206173M: >>> Sun Apr =A04 19:54:22 PDT 2010 >>> root@bayonetta.local:/usr/obj/usr/src/sys/BAYONETTA =A0amd64 >>> # pciconf -lv | grep -A 4 emu >>> emu10kx0@pci0:8:0:0: =A0 =A0class=3D0x040100 card=3D0x10211102 chip=3D0= x00081102 >>> rev=3D0x00 hdr=3D0x00 >>> =A0 =A0vendor =A0 =A0 =3D 'Creative Technology LTD.' >>> =A0 =A0device =A0 =A0 =3D 'sound blaster Audigy 2 (ca0108)' >>> =A0 =A0class =A0 =A0 =A0=3D multimedia >>> =A0 =A0subclass =A0 =3D audio >>> # dmesg | grep 'irq 16' >>> uhci0: port 0xa800-0xa81f >>> irq 16 at device 26.0 on pci0 >>> pcib7: irq 16 at device 28.1 on pci0 >>> emu10kx0: port 0xec00-0xec3f irq 16 at >>> device 0.0 on pci8 >>> # dmesg | grep 'pcm' >>> pcm0: on emu10kx0 >>> pcm0: >>> pcm1: on emu10kx0 >>> pcm2: on emu10kx0 >>> pcm3: on emu10kx0 >>> pcm4: on emu10kx0 >> >> Some more information: >> >> 1. snd_emu10kx and sound are both modules loaded on boot, along with >> if_re, linux, and nvidia. >> 2. Disabling nvidia -> no change. >> 3. Disabling acpi -> unbootable system because many drivers can't map >> interrupts without it (can't test unless I isolate the drivers and >> enable them one by one -- something I'll try later on). >> >> I'm at a loss right now... my hunch is that it's potentially a bad >> interaction between the snd_emu10kx driver and another driver on the >> same PCI bus (which is just the ACPI and uhci drivers), but I can't >> test these claims. There are other funky things about my system that >> have changed over the past couple of kernel versions, like front USB >> ports could charge my iPhone, and now they don't... and the fact that >> ACPI blanking via nvidia now works again... so something may have >> changed on the backend, but I'm not 100% sure on what I should isolate >> as the root cause, yet. > > Grr... it's `healed' itself again. I'll watch out for potential > catalysts to the issue in the future. Ok. Damn issue came back and here's what happened. Rebooted several times with the same kernel and slight modifications, loading and unloading snd_emu10kx and sound, testing out snd_emu10k1, and no dice. The buzz was bad and it was driving me insane. Again, line-in functioned just fine, so I didn't know what the heck was going. I was getting desperate, so I finally broke down and booted the Gentoo Linux livecd. PCM worked just fine. Then I got irritated enough and finally just built the module and the sound support directly into the kernel and everything is hunky dorey again. Does anyone have a stab in the dark as to what's going on? Is it a potential bus or interrupt conflict / race condition that gets alleviated when support is nailed into the kernel? Or are other folks as stumped as I am, s.t. I should just try emailing current@ instead to see if someone maybe knows what's going on there :(...? Thanks, -Garrett From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 12 15:25:15 2010 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7E9D1065670; Mon, 12 Apr 2010 15:25:15 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [92.53.116.15]) by mx1.freebsd.org (Postfix) with ESMTP id 646E48FC0A; Mon, 12 Apr 2010 15:25:15 +0000 (UTC) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.71) (envelope-from ) id 1O1LVh-0004lq-DE; Mon, 12 Apr 2010 19:25:13 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id ED04AB860; Mon, 12 Apr 2010 19:25:12 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id DB0E2B829; Mon, 12 Apr 2010 19:25:12 +0400 (MSD) To: FreeBSD-gnats-submit@freebsd.org From: Dmitry Marakasov X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20100412152512.DB0E2B829@hades.panopticon> Date: Mon, 12 Apr 2010 19:25:12 +0400 (MSD) Cc: multimedia@FreeBSD.org Subject: [PATCH] audio/libsndfile: fix pedantic bug X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 15:25:15 -0000 >Submitter-Id: current-users >Originator: Dmitry Marakasov >Organization: >Confidential: no >Synopsis: [PATCH] audio/libsndfile: fix pedantic bug >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 8.0-RELEASE i386 >Environment: System: FreeBSD hades.panopticon 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Tue Nov 24 22:31:59 MSK 2009 >Description: - Fix style bug, which prevents building projects that #include libsndfile header build -pedantic, namely devel/sfml (http://pointyhat.freebsd.org/errorlogs/sparc64-errorlogs/e.8.20100411175117/sfml-1.5_4.log) Added file(s): - files/patch-src-sndfile.h.in Port maintainer (multimedia@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- libsndfile-1.0.21_1.patch begins here --- Index: Makefile =================================================================== RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/audio/libsndfile/Makefile,v retrieving revision 1.46 diff -u -u -r1.46 Makefile --- Makefile 10 Apr 2010 13:28:52 -0000 1.46 +++ Makefile 12 Apr 2010 15:20:42 -0000 @@ -7,6 +7,7 @@ PORTNAME= libsndfile PORTVERSION= 1.0.21 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= http://www.mega-nerd.com/libsndfile/files/ Index: files/patch-src-sndfile.h.in =================================================================== RCS file: files/patch-src-sndfile.h.in diff -N files/patch-src-sndfile.h.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-src-sndfile.h.in 12 Apr 2010 15:20:55 -0000 @@ -0,0 +1,11 @@ +--- src/sndfile.h.in.orig 2009-12-10 21:49:31.000000000 +0300 ++++ src/sndfile.h.in 2010-04-11 15:10:53.000000000 +0400 +@@ -294,7 +294,7 @@ + SF_CHANNEL_MAP_AMBISONIC_B_Y, + SF_CHANNEL_MAP_AMBISONIC_B_Z, + +- SF_CHANNEL_MAP_MAX, ++ SF_CHANNEL_MAP_MAX + } ; + + --- libsndfile-1.0.21_1.patch ends here --- From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 12 15:30:14 2010 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DFAA106566B; Mon, 12 Apr 2010 15:30:14 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D8E5D8FC13; Mon, 12 Apr 2010 15:30:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3CFUDLb072145; Mon, 12 Apr 2010 15:30:13 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3CFUDXi072133; Mon, 12 Apr 2010 15:30:13 GMT (envelope-from edwin) Date: Mon, 12 Apr 2010 15:30:13 GMT Message-Id: <201004121530.o3CFUDXi072133@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-multimedia@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/145656: [PATCH] audio/libsndfile: fix pedantic bug X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 15:30:14 -0000 Synopsis: [PATCH] audio/libsndfile: fix pedantic bug Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-multimedia Responsible-Changed-By: edwin Responsible-Changed-When: Mon Apr 12 15:30:13 UTC 2010 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=145656 From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 12 20:17:43 2010 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39924106566B; Mon, 12 Apr 2010 20:17:43 +0000 (UTC) (envelope-from sylvio@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0FCE18FC1A; Mon, 12 Apr 2010 20:17:43 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3CKHg3b028125; Mon, 12 Apr 2010 20:17:42 GMT (envelope-from sylvio@freefall.freebsd.org) Received: (from sylvio@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3CKHgRQ028121; Mon, 12 Apr 2010 20:17:42 GMT (envelope-from sylvio) Date: Mon, 12 Apr 2010 20:17:42 GMT Message-Id: <201004122017.o3CKHgRQ028121@freefall.freebsd.org> To: amdmi3@amdmi3.ru, sylvio@FreeBSD.org, freebsd-multimedia@FreeBSD.org From: sylvio@FreeBSD.org Cc: Subject: Re: ports/145656: [PATCH] audio/libsndfile: fix pedantic bug X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 20:17:43 -0000 Synopsis: [PATCH] audio/libsndfile: fix pedantic bug State-Changed-From-To: open->closed State-Changed-By: sylvio State-Changed-When: Mon Apr 12 20:17:42 UTC 2010 State-Changed-Why: Committed. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=145656 From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 12 20:20:06 2010 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66BA51065679 for ; Mon, 12 Apr 2010 20:20:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 55A258FC1B for ; Mon, 12 Apr 2010 20:20:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3CKK6e8028273 for ; Mon, 12 Apr 2010 20:20:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3CKK6pO028272; Mon, 12 Apr 2010 20:20:06 GMT (envelope-from gnats) Date: Mon, 12 Apr 2010 20:20:06 GMT Message-Id: <201004122020.o3CKK6pO028272@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: ports/145656: commit references a PR X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 20:20:06 -0000 The following reply was made to PR ports/145656; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/145656: commit references a PR Date: Mon, 12 Apr 2010 20:17:35 +0000 (UTC) sylvio 2010-04-12 20:17:27 UTC FreeBSD ports repository Modified files: audio/libsndfile Makefile Added files: audio/libsndfile/files patch-src-sndfile.h.in Log: - Added patch to fix build of devel/sfml - BUMP PORTREVISION PR: ports/145656 Submitted by: amdmi3@ Approved by: itetcu (mentor, implicit) Revision Changes Path 1.47 +1 -0 ports/audio/libsndfile/Makefile 1.1 +11 -0 ports/audio/libsndfile/files/patch-src-sndfile.h.in (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 12 21:55:57 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93C871065670 for ; Mon, 12 Apr 2010 21:55:57 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 2248C8FC17 for ; Mon, 12 Apr 2010 21:55:56 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 70A201E00135; Mon, 12 Apr 2010 23:55:55 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o3CLrSrF007919; Mon, 12 Apr 2010 23:53:28 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o3CLrRkE007918; Mon, 12 Apr 2010 23:53:27 +0200 (CEST) (envelope-from nox) Date: Mon, 12 Apr 2010 23:53:27 +0200 (CEST) From: Juergen Lock Message-Id: <201004122153.o3CLrRkE007918@triton8.kn-bremen.de> To: hselasky@c2i.net X-Newsgroups: local.list.freebsd.multimedia In-Reply-To: <201003311322.56988.hselasky@c2i.net> References: Organization: home Cc: freebsd-multimedia@freebsd.org, christophe LE ROUX Subject: Re: Webcamd : Can it support dvb-s/dvb-s2 usb devices ? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2010 21:55:57 -0000 In article <201003311322.56988.hselasky@c2i.net> you write: >On Wednesday 31 March 2010 10:26:09 christophe LE ROUX wrote: >> Hello, >> > >Hi, Hi! > >> As i can read on some web pages, webcamd can support webcam and dvb-t >> devices who have a linux driver. >> What about dvb-s (or dvbs2) usb devices ? > >Yes, many are supported, but some are not. Please see the main Makefile in >webcamd. > >> i think about Tevii S650 ( or S660 ) with ds3000.c linux driver, Pinacle >> PCTV 452e Sat HDTV Pro USB with pctv452e.c linux driver or Technotrend >> Connect S2-3600 HDTV-S2 USB ( with pctv452e.c linux driver too ). >> >> Another question, >> If webcamd can support these usb devices, can i use mythtv port with ? > >I have not tried this yet. If mythtv uses the linux DVB header files, then >yes. For the OP (and other readers:) I haven't tried mythtv yet but after some hacking and a longer debugging session on #bsdusb I got a PCTV 452e Sat HDTV Pro USB working using szap-s2, http://www.linuxtv.org/wiki/index.php/Szap-s2 checked out from hg and built by: gmake INCLUDE=-I/usr/local/include and the CFT mplayer port (looks like it still isn't committed), http://lists.freebsd.org/pipermail/freebsd-multimedia/2010-January/010784.html pointed at the dvr0 device: mplayer -demuxer lavf -cache 8192 /dev/dvb/adapter0/dvr0 kaffeine worked too but the version in ports doesn't yet know dvb-s2, (and even on Linux where I have a newer kaffeine it still has audio issues on the hd channels.) vlc's builtin dvb support was useless with this tuner (and caused us lots of useless debugging looking for a problem in webcamd because vlc behaved like it got a corrupted stream...), what does `work' is pointing vlc at /dev/dvb/adapter0/dvr0 together with szap-s2 like mplayer, but vlc used too much cpu on hd channels so they weren't really watchable. (unlike mplayer which played 1080i just fine using ~85% of one core and only xv on xorg's radeon driver on a PhenomII cpu...) About szap-s2: I ran it similar to this: ./szap-s2 -V -n 6 -p -t and on some hd channels I need -b too or mplayer would get no audio. -t is a new option I just added to pass teletext thru (vlc can display it, this needs -V because the teletext pid is only in the VDR channel.conf format), that patch I put here: http://people.freebsd.org/~nox/szap-s2-teletext.patch hps now has updated the webcamd svn to use only the pctv452e driver out of the s2-liplianin repo that I originally used entirely in place of the linuxtv.org one (for some reason the pctv452e-related drivers are still missing in upstream Linux) and I just tested that svn version today: http://www.selasky.org/hans_petter/video4bsd/ I haven't tried building w_scan on FreeBSD yet http://www.linuxtv.org/wiki/index.php/W_scan but hps said he only needed to fix include paths - you need it if you don't have a channels.conf yet, I took mine from Linux with some updates off the web. kaffeine can scan too, but as I said this version doesn't know dvb-s2, and also it uses its own channel list format. Oh and a poor man's way of recording is to use szap-s2 and then cat /dev/dvb/adapter0/dvr0 to a file... (you probably can play it with mplayer while it's still being written if you wait a little at first if you want to find out when the show you want ends.) And finally a note about the Tevii s660 tuner: That one was what I tried first, but even after putting the second pci usb controller in it only worked on Linux, on FreeBSD I only got this: (after enabling printk and friends in webcamd) Invalid probe, probably not a DS3000 .and the pci usb controllers were because when I first tried the Tevii on Linux it hung Linux' usb stack and of course wouldn't work at all (causing even `lsusb' to get stuck until I unplugged the tuner), and then I read on the web that people had success by putting the Tevii on another usb controller - I still had a pci card lying around so I tried that, which fixed the lsusb hangs and got dvb-s channels working - but dvb-s2 channels still only got a corrupted stream and FreeBSD got the above message. Got another pci usb card, that fixed dvb-s2 on Linux, but FreeBSD was still broken - and so I got the pctv and checked out s2-liplianin... Cheers, Juergen From owner-freebsd-multimedia@FreeBSD.ORG Tue Apr 13 20:48:55 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 057131065687 for ; Tue, 13 Apr 2010 20:48:55 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 9C9CF8FC17 for ; Tue, 13 Apr 2010 20:48:54 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 567E41E00180; Tue, 13 Apr 2010 22:48:53 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o3DKgfWG085247; Tue, 13 Apr 2010 22:42:41 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o3DKgfww085246; Tue, 13 Apr 2010 22:42:41 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Tue, 13 Apr 2010 22:42:40 +0200 To: Juergen Lock Message-ID: <20100413204240.GA83649@triton8.kn-bremen.de> References: <201004122153.o3CLrRkE007918@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201004122153.o3CLrRkE007918@triton8.kn-bremen.de> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-multimedia@freebsd.org, christophe LE ROUX Subject: Re: Webcamd : Can it support dvb-s/dvb-s2 usb devices ? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2010 20:48:55 -0000 On Mon, Apr 12, 2010 at 11:53:27PM +0200, Juergen Lock wrote: > In article <201003311322.56988.hselasky@c2i.net> you write: > >On Wednesday 31 March 2010 10:26:09 christophe LE ROUX wrote: > >> Hello, > >> > > > >Hi, > Hi! > > > >> As i can read on some web pages, webcamd can support webcam and dvb-t > >> devices who have a linux driver. > >> What about dvb-s (or dvbs2) usb devices ? > > > >Yes, many are supported, but some are not. Please see the main Makefile in > >webcamd. > > > >> i think about Tevii S650 ( or S660 ) with ds3000.c linux driver, Pinacle > >> PCTV 452e Sat HDTV Pro USB with pctv452e.c linux driver or Technotrend > >> Connect S2-3600 HDTV-S2 USB ( with pctv452e.c linux driver too ). > >> > >> Another question, > >> If webcamd can support these usb devices, can i use mythtv port with ? > > > >I have not tried this yet. If mythtv uses the linux DVB header files, then > >yes. > > For the OP (and other readers:) I haven't tried mythtv yet but after > some hacking and a longer debugging session on #bsdusb I got a PCTV 452e > Sat HDTV Pro USB working using szap-s2, > > http://www.linuxtv.org/wiki/index.php/Szap-s2 > > checked out from hg and built by: > > gmake INCLUDE=-I/usr/local/include > > and the CFT mplayer port (looks like it still isn't committed), > > http://lists.freebsd.org/pipermail/freebsd-multimedia/2010-January/010784.html > > pointed at the dvr0 device: > > mplayer -demuxer lavf -cache 8192 /dev/dvb/adapter0/dvr0 > > kaffeine worked too but the version in ports doesn't yet know dvb-s2, > (and even on Linux where I have a newer kaffeine it still has audio > issues on the hd channels.) vlc's builtin dvb support was useless with > this tuner (and caused us lots of useless debugging looking for a problem > in webcamd because vlc behaved like it got a corrupted stream...), > what does `work' is pointing vlc at /dev/dvb/adapter0/dvr0 together > with szap-s2 like mplayer, but vlc used too much cpu on hd channels so > they weren't really watchable. (unlike mplayer which played 1080i > just fine using ~85% of one core and only xv on xorg's radeon driver > on a PhenomII cpu...) > > About szap-s2: I ran it similar to this: > > ./szap-s2 -V -n 6 -p -t > > and on some hd channels I need -b too or mplayer would get no audio. > > -t is a new option I just added to pass teletext thru (vlc can display > it, this needs -V because the teletext pid is only in the VDR channel.conf > format), that patch I put here: > > http://people.freebsd.org/~nox/szap-s2-teletext.patch > > hps now has updated the webcamd svn to use only the pctv452e driver > out of the s2-liplianin repo that I originally used entirely in place > of the linuxtv.org one (for some reason the pctv452e-related drivers > are still missing in upstream Linux) and I just tested that svn version > today: > > http://www.selasky.org/hans_petter/video4bsd/ > > I haven't tried building w_scan on FreeBSD yet > > http://www.linuxtv.org/wiki/index.php/W_scan > > but hps said he only needed to fix include paths - you need it if you > don't have a channels.conf yet, I took mine from Linux with some > updates off the web. kaffeine can scan too, but as I said this > version doesn't know dvb-s2, and also it uses its own channel list > format. > > Oh and a poor man's way of recording is to use szap-s2 and then > cat /dev/dvb/adapter0/dvr0 to a file... (you probably can play it > with mplayer while it's still being written if you wait a little > at first if you want to find out when the show you want ends.) I forgot to say you need the svn version of cuse4bsd too, there was a bug in the ioctl handling that broke ioctls that pass no data (_IO) like dvb-s uses. (FE_SET_TONE, FE_SET_VOLTAGE...) And I played with w_scan a bit now and found three things: 1. the FE_GET_PROPERTY ioctl in needs to be _IOW not _IOR - yes this is broken on Linux too but they do a workaround (they just always do the copyin) in linux/drivers/media/dvb/dvb-core/dvbdev.c:dvb_usercopy(), see the comment /* some v4l ioctls are marked wrong ... */ here: http://linuxtv.org/hg/v4l-dvb/file/7c0b887911cf/linux/drivers/media/dvb/dvb-core/dvbdev.c#l422 And I think a workaround is impossible on FreeBSD since the copyin() of the ioctl data is handled in the ioctl syscall directly not in the drivers like on Linux: http://fxr.watson.org/fxr/source/kern/sys_generic.c#L664 so I'd say we'll have to patch our copies of the Linux includes if we want FE_GET_PROPERTY to work. :( (And I dunno if that's the only broken one...) 2. w_scan for some reason seems to miss random transponders when I use the updated svn webcamd that uses the pctv452e drivers in the linuxtv.org v4l-dvb tree instead of just the entire s2-liplianin tree like I originally did; I say `random' because if I do another scan then other transponders are missing... Using the s2-liplianin tree I get a channels.conf with around 1170 lines, using the svn webcamd I once got 762 lines, another time 884... And I really don't feel like debugging this because the reason could be anywhere in whatever other fixes there are in the s2-liplianin tree compared to v4l-dvb, so I think we really need something like a knob in the webcamd port to select which tree to use. And 3. there's a bug in w_scan that breaks scanning dvb-s when using the old dvb api: (which it will assume when FE_GET_PROPERTY doesn't work; and also after applying this fix using the old api will still make it skip dvb-s2 transponders.) --- a/scan.c +++ b/scan.c @@ -1640,6 +1643,10 @@ static int set_frontend(int frontend_fd, case 0x0302: verbose("%s: using DVB API 3.2\n", __FUNCTION__); copy_fe_params_new_to_old(&p, &t->param); +#if 1 + if (t->type == FE_QPSK) + p.frequency = intermediate_freq; +#endif if (ioctl(frontend_fd, FE_SET_FRONTEND, &p) == -1) { errorn("Setting frontend parameters failed (API v3.2)\n"); return -1; Cheers, Juergen From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 14 17:47:09 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1173C106564A for ; Wed, 14 Apr 2010 17:47:09 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 8287C8FC21 for ; Wed, 14 Apr 2010 17:47:08 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 230AC1E00162; Wed, 14 Apr 2010 19:47:07 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o3EHgwqb057195; Wed, 14 Apr 2010 19:42:58 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o3EHgwP2057194; Wed, 14 Apr 2010 19:42:58 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Wed, 14 Apr 2010 19:42:58 +0200 To: Juergen Lock Message-ID: <20100414174258.GA56963@triton8.kn-bremen.de> References: <201004122153.o3CLrRkE007918@triton8.kn-bremen.de> <20100413204240.GA83649@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100413204240.GA83649@triton8.kn-bremen.de> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-multimedia@freebsd.org, christophe LE ROUX Subject: w_scan and szap-s2 ports for testing (was: Re: Webcamd : Can it support dvb-s/dvb-s2 usb devices ?) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2010 17:47:09 -0000 I have now made ports for w_scan and szap-s2: http://people.freebsd.org/~nox/dvb/w_scan.shar http://people.freebsd.org/~nox/dvb/szap_s2.shar I also added a temporary workaround to the w_scan port that defaults to assuming DVB API 5.0 if the FE_GET_PROPERTY ioctl is defined wrong like it is the current multimedia/v4l_compat port, see further down in the quoted message below for an explanation. Enjoy, :) Juergen On Tue, Apr 13, 2010 at 10:42:40PM +0200, Juergen Lock wrote: > On Mon, Apr 12, 2010 at 11:53:27PM +0200, Juergen Lock wrote: > > In article <201003311322.56988.hselasky@c2i.net> you write: > > >On Wednesday 31 March 2010 10:26:09 christophe LE ROUX wrote: > > >> Hello, > > >> > > > > > >Hi, > > Hi! > > > > > >> As i can read on some web pages, webcamd can support webcam and dvb-t > > >> devices who have a linux driver. > > >> What about dvb-s (or dvbs2) usb devices ? > > > > > >Yes, many are supported, but some are not. Please see the main Makefile in > > >webcamd. > > > > > >> i think about Tevii S650 ( or S660 ) with ds3000.c linux driver, Pinacle > > >> PCTV 452e Sat HDTV Pro USB with pctv452e.c linux driver or Technotrend > > >> Connect S2-3600 HDTV-S2 USB ( with pctv452e.c linux driver too ). > > >> > > >> Another question, > > >> If webcamd can support these usb devices, can i use mythtv port with ? > > > > > >I have not tried this yet. If mythtv uses the linux DVB header files, then > > >yes. > > > > For the OP (and other readers:) I haven't tried mythtv yet but after > > some hacking and a longer debugging session on #bsdusb I got a PCTV 452e > > Sat HDTV Pro USB working using szap-s2, > > > > http://www.linuxtv.org/wiki/index.php/Szap-s2 > > > > checked out from hg and built by: > > > > gmake INCLUDE=-I/usr/local/include > > > > and the CFT mplayer port (looks like it still isn't committed), > > > > http://lists.freebsd.org/pipermail/freebsd-multimedia/2010-January/010784.html > > > > pointed at the dvr0 device: > > > > mplayer -demuxer lavf -cache 8192 /dev/dvb/adapter0/dvr0 > > > > kaffeine worked too but the version in ports doesn't yet know dvb-s2, > > (and even on Linux where I have a newer kaffeine it still has audio > > issues on the hd channels.) vlc's builtin dvb support was useless with > > this tuner (and caused us lots of useless debugging looking for a problem > > in webcamd because vlc behaved like it got a corrupted stream...), > > what does `work' is pointing vlc at /dev/dvb/adapter0/dvr0 together > > with szap-s2 like mplayer, but vlc used too much cpu on hd channels so > > they weren't really watchable. (unlike mplayer which played 1080i > > just fine using ~85% of one core and only xv on xorg's radeon driver > > on a PhenomII cpu...) > > > > About szap-s2: I ran it similar to this: > > > > ./szap-s2 -V -n 6 -p -t > > > > and on some hd channels I need -b too or mplayer would get no audio. > > > > -t is a new option I just added to pass teletext thru (vlc can display > > it, this needs -V because the teletext pid is only in the VDR channel.conf > > format), that patch I put here: > > > > http://people.freebsd.org/~nox/szap-s2-teletext.patch > > > > hps now has updated the webcamd svn to use only the pctv452e driver > > out of the s2-liplianin repo that I originally used entirely in place > > of the linuxtv.org one (for some reason the pctv452e-related drivers > > are still missing in upstream Linux) and I just tested that svn version > > today: > > > > http://www.selasky.org/hans_petter/video4bsd/ > > > > I haven't tried building w_scan on FreeBSD yet > > > > http://www.linuxtv.org/wiki/index.php/W_scan > > > > but hps said he only needed to fix include paths - you need it if you > > don't have a channels.conf yet, I took mine from Linux with some > > updates off the web. kaffeine can scan too, but as I said this > > version doesn't know dvb-s2, and also it uses its own channel list > > format. > > > > Oh and a poor man's way of recording is to use szap-s2 and then > > cat /dev/dvb/adapter0/dvr0 to a file... (you probably can play it > > with mplayer while it's still being written if you wait a little > > at first if you want to find out when the show you want ends.) > > I forgot to say you need the svn version of cuse4bsd too, there was > a bug in the ioctl handling that broke ioctls that pass no data > (_IO) like dvb-s uses. (FE_SET_TONE, FE_SET_VOLTAGE...) > > And I played with w_scan a bit now and found three things: > > 1. the FE_GET_PROPERTY ioctl in needs > to be _IOW not _IOR - yes this is broken on Linux too but they do > a workaround (they just always do the copyin) in > linux/drivers/media/dvb/dvb-core/dvbdev.c:dvb_usercopy(), see the > comment /* some v4l ioctls are marked wrong ... */ here: > > http://linuxtv.org/hg/v4l-dvb/file/7c0b887911cf/linux/drivers/media/dvb/dvb-core/dvbdev.c#l422 > > And I think a workaround is impossible on FreeBSD since the copyin() > of the ioctl data is handled in the ioctl syscall directly not in the > drivers like on Linux: > > http://fxr.watson.org/fxr/source/kern/sys_generic.c#L664 > > so I'd say we'll have to patch our copies of the Linux includes if > we want FE_GET_PROPERTY to work. :( (And I dunno if that's the > only broken one...) > > 2. w_scan for some reason seems to miss random transponders when > I use the updated svn webcamd that uses the pctv452e drivers in the > linuxtv.org v4l-dvb tree instead of just the entire s2-liplianin tree > like I originally did; I say `random' because if I do another scan > then other transponders are missing... Using the s2-liplianin tree > I get a channels.conf with around 1170 lines, using the svn webcamd > I once got 762 lines, another time 884... And I really don't feel > like debugging this because the reason could be anywhere in whatever > other fixes there are in the s2-liplianin tree compared to v4l-dvb, > so I think we really need something like a knob in the webcamd port > to select which tree to use. > > And 3. there's a bug in w_scan that breaks scanning dvb-s when using > the old dvb api: (which it will assume when FE_GET_PROPERTY doesn't > work; and also after applying this fix using the old api will still > make it skip dvb-s2 transponders.) > > --- a/scan.c > +++ b/scan.c > @@ -1640,6 +1643,10 @@ static int set_frontend(int frontend_fd, > case 0x0302: > verbose("%s: using DVB API 3.2\n", __FUNCTION__); > copy_fe_params_new_to_old(&p, &t->param); > +#if 1 > + if (t->type == FE_QPSK) > + p.frequency = intermediate_freq; > +#endif > if (ioctl(frontend_fd, FE_SET_FRONTEND, &p) == -1) { > errorn("Setting frontend parameters failed (API v3.2)\n"); > return -1; > > Cheers, > Juergen From owner-freebsd-multimedia@FreeBSD.ORG Sat Apr 17 04:40:12 2010 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9695106566B; Sat, 17 Apr 2010 04:40:12 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AFE038FC0C; Sat, 17 Apr 2010 04:40:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3H4eC24018540; Sat, 17 Apr 2010 04:40:12 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3H4eC8K018536; Sat, 17 Apr 2010 04:40:12 GMT (envelope-from edwin) Date: Sat, 17 Apr 2010 04:40:12 GMT Message-Id: <201004170440.o3H4eC8K018536@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-multimedia@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/145770: [patch] multimedia/gstreamer-plugins-v4l2 says Device not configured X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Apr 2010 04:40:12 -0000 Synopsis: [patch] multimedia/gstreamer-plugins-v4l2 says Device not configured Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-multimedia Responsible-Changed-By: edwin Responsible-Changed-When: Sat Apr 17 04:40:12 UTC 2010 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=145770 From owner-freebsd-multimedia@FreeBSD.ORG Sat Apr 17 05:20:03 2010 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD3A1106566C for ; Sat, 17 Apr 2010 05:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AB5A48FC13 for ; Sat, 17 Apr 2010 05:20:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3H5K3Ga056445 for ; Sat, 17 Apr 2010 05:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3H5K3Iq056444; Sat, 17 Apr 2010 05:20:03 GMT (envelope-from gnats) Date: Sat, 17 Apr 2010 05:20:03 GMT Message-Id: <201004170520.o3H5K3Iq056444@freefall.freebsd.org> To: freebsd-multimedia@FreeBSD.org From: Henry Hu Cc: Subject: Re: ports/145770: [patch] multimedia/gstreamer-plugins-v4l2 says Device not configured X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Henry Hu List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Apr 2010 05:20:03 -0000 The following reply was made to PR ports/145770; it has been noted by GNATS. From: Henry Hu To: bug-followup@freebsd.org, henry.hu.sh@gmail.com Cc: Subject: Re: ports/145770: [patch] multimedia/gstreamer-plugins-v4l2 says Device not configured Date: Sat, 17 Apr 2010 13:11:43 +0800 I'm sorry, after upgrading video4bsd to cuse4bsd and upgrading webcamd, the problem goes. By the way, it also works at 320x240. Sorry for the inconvenience. However, there's a new problem: the first time I start a client after restarting webcamd, the client works, but it cannot exit unless I restart webcamd. However, if I do not restart webcamd, then the new clients started afterward exits cleanly. I found that the client is in the close syscall, and the call goes into cuse, and in cuse_client_receive_command it blocks in the cv_wait. I'm inspecting the problem. -- Cheers, Henry