From owner-freebsd-multimedia@FreeBSD.ORG Sun Oct 30 17:55:00 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C53616A41F for ; Sun, 30 Oct 2005 17:55:00 +0000 (GMT) (envelope-from ales.rom@kabelnet.net) Received: from mta1.siol.net (mta1.siol.net [193.189.160.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FF4543D48 for ; Sun, 30 Oct 2005 17:54:57 +0000 (GMT) (envelope-from ales.rom@kabelnet.net) Received: from edge1.siol.net ([10.10.10.210]) by mta1.siol.net with ESMTP id <20051030175531.WLAU7456.mta1.siol.net@edge1.siol.net> for ; Sun, 30 Oct 2005 18:55:31 +0100 Received: from [192.168.1.100] (really [213.250.13.134]) by edge1.siol.net with ESMTP id <20051030175437.UGWL15081.edge1.siol.net@[192.168.1.100]> for ; Sun, 30 Oct 2005 18:54:37 +0100 Message-ID: <436508F1.5060600@kabelnet.net> Date: Sun, 30 Oct 2005 18:54:57 +0100 From: Ales User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org References: <435D3123.4030105@kabelnet.net> <20051025041539.1635d648.skywizard@MyBSD.org.my> In-Reply-To: <20051025041539.1635d648.skywizard@MyBSD.org.my> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Can't compile kernel with snd_RELENG_5_20051022_055.diff 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: Sun, 30 Oct 2005 17:55:00 -0000 Ariff Abdullah wrote: >On Mon, 24 Oct 2005 21:08:19 +0200 >Ales wrote: > > >>/usr/src/sys/dev/sound/pcm/sndstat.c: In function `sndstat_uninit': >>/usr/src/sys/dev/sound/pcm/sndstat.c:364: error: `s' undeclared >>(first use in this function) >>/usr/src/sys/dev/sound/pcm/sndstat.c:364: error: (Each undeclared >>identifier is reported only once >>/usr/src/sys/dev/sound/pcm/sndstat.c:364: error: for each function >>it appears in.) >>/usr/src/sys/dev/sound/pcm/sndstat.c: At top level: >>/usr/src/sys/dev/sound/pcm/sndstat.c:371: warning: no previous >>prototype for 'sndstat_busy' >>*** Error code 1 >> >>Stop in /usr/obj/usr/src/sys/GENERIC. >>*** Error code 1 >> >>Stop in /usr/src. >>*** Error code 1 >> >>Stop in /usr/src. >> >>Can anyone help me please? >> >> >> > >Get the one with "RELENG_5_X" (note the _X) instead. You're using >5.4-RELEASE-pSomething, if I'm not mistaken. > >-- >Ariff Abdullah >MyBSD > >http://www.MyBSD.org.my (IPv6/IPv4) >http://staff.MyBSD.org.my (IPv6/IPv4) >http://tomoyo.MyBSD.org.my (IPv6/IPv4) > > > Works great, thank you. I have another audio related question. The problem is that I can't control master volume in KDE. (KDE 3.4.0) Actually I can, but with pcm, not vol slider. Volume control in the system tray is not affecting the sound, because controls volume, not the pcm on this box. Kmix shows pcm, speaker, rec as output devices, other 5 are input devices. Is this right? I hope, that this is not just KDE related problem? Any suggestions? Ales %uname -a FreeBSD romcek.FreeBSD 5.4-RELEASE-p8 FreeBSD 5.4-RELEASE-p8 #0: Tue Oct 25 07:11:31 CEST 2005 %dmesg | grep pcm pcm0: port 0xc400-0xc4ff irq 22 at device 17.5 on pci0 pcm0: pcm0: %mixer Mixer vol is currently set to 60:60 Mixer pcm is currently set to 45:45 Mixer speaker is currently set to 41:41 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 Mixer rec is currently set to 0:0 Mixer line1 is currently set to 75:75 From owner-freebsd-multimedia@FreeBSD.ORG Sun Oct 30 18:30:06 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB2A816A41F for ; Sun, 30 Oct 2005 18:30:06 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 316EE43D45 for ; Sun, 30 Oct 2005 18:30:05 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 98C106CC25; Mon, 31 Oct 2005 02:31:41 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 34566-08; Mon, 31 Oct 2005 02:31:40 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 0098B6CC23; Mon, 31 Oct 2005 02:31:39 +0800 (MYT) Date: Mon, 31 Oct 2005 02:30:07 +0800 From: Ariff Abdullah To: Ales Message-Id: <20051031023007.7e5c6c4d.skywizard@MyBSD.org.my> In-Reply-To: <436508F1.5060600@kabelnet.net> References: <435D3123.4030105@kabelnet.net> <20051025041539.1635d648.skywizard@MyBSD.org.my> <436508F1.5060600@kabelnet.net> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: Can't compile kernel with snd_RELENG_5_20051022_055.diff 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: Sun, 30 Oct 2005 18:30:06 -0000 On Sun, 30 Oct 2005 18:54:57 +0100 Ales wrote: > > Works great, thank you. > > I have another audio related question. The problem is that I can't > control master volume in KDE. (KDE 3.4.0) Actually I can, but with > pcm, not vol slider. Volume control in the system tray is not > affecting the sound, because controls volume, not the pcm on this > box. Kmix shows pcm, speaker, rec as output devices, other 5 are > input devices. Is this right? > > I hope, that this is not just KDE related problem? Any suggestions? > This is much expected, since yours is CMI9761. This and few others don't have internal master and pcm mixer controller. Your pcm mixer controller is actually emulated through feeder_volume. You have to live with it :) Maybe you can set Kmix controller preferences to point to pcm controller instead of master controller, much like xmms. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Sun Oct 30 18:45:59 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8340016A41F for ; Sun, 30 Oct 2005 18:45:59 +0000 (GMT) (envelope-from ales.rom@kabelnet.net) Received: from mta1.siol.net (mta1.siol.net [193.189.160.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88CFA43D67 for ; Sun, 30 Oct 2005 18:45:58 +0000 (GMT) (envelope-from ales.rom@kabelnet.net) Received: from edge1.siol.net ([10.10.10.210]) by mta1.siol.net with ESMTP id <20051030184632.XYJK7456.mta1.siol.net@edge1.siol.net> for ; Sun, 30 Oct 2005 19:46:32 +0100 Received: from [192.168.1.100] (really [213.250.13.134]) by edge1.siol.net with ESMTP id <20051030184538.UQMI15081.edge1.siol.net@[192.168.1.100]> for ; Sun, 30 Oct 2005 19:45:38 +0100 Message-ID: <436514E8.3030005@kabelnet.net> Date: Sun, 30 Oct 2005 19:46:00 +0100 From: Ales User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org References: <435D3123.4030105@kabelnet.net> <20051025041539.1635d648.skywizard@MyBSD.org.my> <436508F1.5060600@kabelnet.net> <20051031023007.7e5c6c4d.skywizard@MyBSD.org.my> In-Reply-To: <20051031023007.7e5c6c4d.skywizard@MyBSD.org.my> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Can't compile kernel with snd_RELENG_5_20051022_055.diff 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: Sun, 30 Oct 2005 18:45:59 -0000 Ariff Abdullah wrote: >On Sun, 30 Oct 2005 18:54:57 +0100 >Ales wrote: > > >>Works great, thank you. >> >>I have another audio related question. The problem is that I can't >>control master volume in KDE. (KDE 3.4.0) Actually I can, but with >>pcm, not vol slider. Volume control in the system tray is not >>affecting the sound, because controls volume, not the pcm on this >>box. Kmix shows pcm, speaker, rec as output devices, other 5 are >>input devices. Is this right? >> >>I hope, that this is not just KDE related problem? Any suggestions? >> >> >> >This is much expected, since yours is CMI9761. This and few others >don't have internal master and pcm mixer controller. Your pcm mixer >controller is actually emulated through feeder_volume. You have to >live with it :) > >Maybe you can set Kmix controller preferences to point to pcm >controller instead of master controller, much like xmms. > > >-- >Ariff Abdullah >MyBSD > >http://www.MyBSD.org.my (IPv6/IPv4) >http://staff.MyBSD.org.my (IPv6/IPv4) >http://tomoyo.MyBSD.org.my (IPv6/IPv4) > > > I will try to "redirect" master volume to pcm. In the mean time I will live with it :-) Thanks again. Ales From owner-freebsd-multimedia@FreeBSD.ORG Mon Oct 31 11:02:36 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CAB716A41F for ; Mon, 31 Oct 2005 11:02:36 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0807B43D7E for ; Mon, 31 Oct 2005 11:02:22 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9VB2MeY009002 for ; Mon, 31 Oct 2005 11:02:22 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9VB2LOP008996 for freebsd-multimedia@freebsd.org; Mon, 31 Oct 2005 11:02:21 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 31 Oct 2005 11:02:21 GMT Message-Id: <200510311102.j9VB2LOP008996@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 31 Oct 2005 11:02:36 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2002/02/26] kern/35351 multimedia [sound] emu10k1: no posibility to record f [2002/07/02] kern/40122 multimedia [sound] Device pcm stopps booting Kernel f [2002/08/29] kern/42173 multimedia [sound] Sony VAIO FXA 53 (or FXA 679 in M f [2003/04/23] kern/51308 multimedia [sound] Creative SB32 doesn't work under f [2003/04/24] kern/51338 multimedia [sound] [hang] system hangs randomly beca f [2003/07/21] kern/54705 multimedia [sound] codec timeout during read of regi f [2003/10/02] kern/57487 multimedia [sound] [patch] Sound stops working on my f [2004/02/08] kern/62519 multimedia [sound] Intel ICH4 (82801DB) sound card d o [2004/02/22] kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestr f [2004/10/08] kern/72439 multimedia [sound] Sound not functioning for VIA_823 f [2004/11/16] kern/73987 multimedia [sound] Nforce2 MB sound problem o [2004/12/31] kern/75687 multimedia [sound] [patch] No sound on PC which is i o [2005/04/14] kern/79905 multimedia [sound] sis7018 sound module problem o [2005/04/14] kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: f [2005/04/17] kern/80041 multimedia [sound] snd_via8233 does not support VIA8 o [2005/05/17] kern/81146 multimedia [sound] Sound isn't working AT ALL for Si o [2005/06/08] kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work o [2005/10/13] kern/87371 multimedia [sound] [panic] Force unload snd_es137x c 18 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/07/30] kern/20297 multimedia [sound] [patch] Joystick is not enabled w f [2001/02/26] kern/25386 multimedia [sound] Incorrect mixer registers (line & f [2001/04/09] kern/26454 multimedia [sound] mixer volume settings on Maestro- f [2001/07/18] kern/29067 multimedia [sound] Yamaha OPL3Sa2 pcm/pnp stops play f [2001/07/30] kern/29312 multimedia [sound] Using mixer on pcm misbehaves wit f [2001/10/21] kern/31398 multimedia [sound] newpcm does not play back the tai f [2001/10/27] kern/31521 multimedia [sound] pcm0 plays too fast on Intel 8280 o [2002/04/30] kern/37600 multimedia [sound] [partial patch] t4dwave drive doe f [2002/05/02] kern/37657 multimedia [sound] /dev/dsp and /dev/audio skip the o [2002/07/03] kern/40132 multimedia [sound] [patch] enabling the joystick int f [2002/07/23] kern/40927 multimedia [sound] Acer Labs M5451 dies with pcm:pla f [2002/08/17] kern/41743 multimedia [sound] No sound from SiS630s controller f [2002/09/08] kern/42564 multimedia [sound] record bug with emu10k1 driver f [2002/09/10] kern/42638 multimedia [sound] CS4326/4327 (MSS) buggy output pl f [2003/01/20] kern/47243 multimedia [sound] Onboard CMedia CMI8738 playback n f [2003/01/22] kern/47352 multimedia [sound] pcm/ac'97, dsp device busy o [2003/02/16] kern/48338 multimedia [sound] pcm audio driver hogs /dev/dsp?.? o [2003/04/18] kern/51145 multimedia [sound] Audio Slows during Heavy I/O o [2003/06/17] kern/53417 multimedia [sound] Bad Recordings on AC97 onboard au o [2003/07/03] kern/54049 multimedia [sound] Sound driver reports device busy o [2003/07/03] kern/54078 multimedia [sound] Sound Plays ~10% Slow [4.8] o [2003/12/26] kern/60599 multimedia [sound] [partial patch] No sound for ATI o [2003/12/29] kern/60677 multimedia [sound] [patch] No reaction of volume con o [2003/12/30] kern/60737 multimedia [sound] Sound card Turtle Beach Santa Cru o [2003/12/31] kern/60761 multimedia [sound] pcm performance on emu10k1 driver o [2004/02/15] kern/62862 multimedia [sound] [patch] fix pcm vchans related cr o [2004/03/10] kern/64040 multimedia [sound] crackling sound on 5.2.1-RELEASE o [2004/05/09] kern/66422 multimedia [sound] [patch] no sound on modern Sony V o [2004/05/14] kern/66642 multimedia [sound] pcm0: play: 0: play interrupt tim o [2004/06/19] kern/68122 multimedia [sound] Device busy (/dev/dsp)- insane, n o [2004/06/30] kern/68515 multimedia [sound] sound card noise (ES1938, 5.0) o [2004/07/04] kern/68665 multimedia [sound] pcm doesn't detect Realtek ac97 o a [2004/07/19] kern/69283 multimedia [sound] Via 8233 driver records at half s s [2004/08/23] kern/70852 multimedia [sound] via82xx PCM driver does not enabl o [2004/09/30] kern/72218 multimedia [sound] audio recording broken with emu10 o [2004/10/01] kern/72221 multimedia [sound] emu10k1 stereo channels are rever o [2004/10/19] kern/72887 multimedia [sound] emu10k1: sound lag o [2004/10/22] kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound near o [2004/10/25] kern/73098 multimedia [sound] Scan rate of sound card shifts wh o [2004/11/21] i386/74191 multimedia [sound] Notebook PC2001 Compliant AC97 au f [2004/12/09] kern/74893 multimedia [sound] [patch] Channels of USB audio can o [2004/12/20] kern/75316 multimedia [sound] [patch] Enable to select a record o [2005/01/06] kern/75894 multimedia [sound] AD1981 not probing (shuttle ST62K o [2005/01/08] kern/75969 multimedia [sound] [patch] Support for Sigmatel STAC o [2005/01/31] kern/76918 multimedia [sound] ATI AD1981 AC'97 Audio Controller o [2005/04/01] kern/79427 multimedia [sound] No sound on Compaq Armada 100S la o [2005/04/03] kern/79498 multimedia [sound] sndfile-play (and many other play o [2005/04/08] kern/79678 multimedia [sound] sound works except recording from o [2005/04/20] kern/80147 multimedia [snd_sb16] [patch] panic with the vibra16 o [2005/04/20] kern/80149 multimedia problems with an soundblaster-8 (original o [2005/04/20] kern/80151 multimedia [sound] [patch] Missing ESS ES1688 PCI-ID o [2005/04/20] kern/80152 multimedia [sound] [patch] SIMPLEX flag is not set p o [2005/04/22] kern/80234 multimedia [sound] [patch] add entry for Analog Devi o [2005/04/29] kern/80465 multimedia [sound] pcm0:record:0: record interrupt t o [2005/05/05] kern/80632 multimedia pcm driver missing support for CMI8738 au o [2005/05/09] kern/80824 multimedia [sound] kldunload can't unload sound.ko o [2005/05/14] kern/81013 multimedia [sound] [patch] Intel ICH3 sound chip rev o [2005/05/17] kern/81170 multimedia [sound] /dev/mixer misbehavior with enson o [2005/05/28] kern/81599 multimedia [sound] Via VT1612A Audio not working wel o [2005/07/29] kern/84311 multimedia [sound] 82801FB/FR/FW/FRW Intel High Defi o [2005/08/02] kern/84471 multimedia [sound] [patch] no sound ICH4 (Analog Dev o [2005/08/03] kern/84507 multimedia [sound] fm801: Not every card supports va o [2005/09/11] kern/85964 multimedia [sound] Can't play 24 bit audio (Audigy 2 o [2005/09/24] kern/86536 multimedia [sound] /dev/mixer has no devices (still) o [2005/09/25] kern/86557 multimedia [sound] Sound Card Volume isn't adjustabl o [2005/10/21] kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: re 66 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 1 09:03:46 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F61116A41F for ; Tue, 1 Nov 2005 09:03:46 +0000 (GMT) (envelope-from danny@ricin.com) Received: from smtpq3.groni1.gr.home.nl (smtpq3.groni1.gr.home.nl [213.51.130.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78E0D43D5E for ; Tue, 1 Nov 2005 09:03:43 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.130.189] (port=46326 helo=smtp2.groni1) by smtpq3.groni1 with esmtp (Exim 4.30) id 1EWjeN-0003Hk-O1 for freebsd-multimedia@freebsd.org; Tue, 01 Nov 2005 01:05:15 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:58637 helo=desktop.homenet) by smtp2.groni1 with esmtp (Exim 4.30) id 1EWjeM-0006MW-OL for freebsd-multimedia@freebsd.org; Tue, 01 Nov 2005 01:05:14 +0100 From: Danny Pansters To: freebsd-multimedia@freebsd.org Date: Tue, 1 Nov 2005 01:03:21 +0000 User-Agent: KMail/1.8.2 X-Face: :N, f2_*44g[tRY8Y-gL2zi`G|<6SpFjTeHt|V5LO6Yl2E7yAfEh{E6-8pqxUFX"l)=?utf-8?q?Nm8y=7E=0A=09IWJSAWQ=7D+=3DpP=7CT=5D?=@sy1sz%h)*CW6gtbp]"fe@MjICtIUo.0, CH~{[R4PXSyL MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511010103.21307.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Subject: Available for testing: Kbtv -- KDE TV viewer for bktr 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, 01 Nov 2005 09:03:46 -0000 Hi all, If you have a bktr based TV or capture card and are using KDE on FreeBSD 5, 6, or 7 I'd like to invite you to try out Kbtv. It is a small and simple TV viewing app written mostly in python. Uses PyKDE for GUI and mplayer for rendering. For quite a while I wasn't too happy with the offerings for TV viewers, especially under KDE. Fxtv works but looks out of place. Mplayer is arguably the best TV renderer available for us. But KMplayer has a rather bad GUI for using TV and because it starts a new mplayer instance (kicking the bktr driver and/or the hardware) everytime you switch channels it exhibits frequent hard freezes. If merely using the tuner (through ioctls) such things don't happen. This made me write btcontrol, which is a small C program that does a selection of the available ioctls. I've also been the maintainer for the PyQt and PyKDE ports for quite a while now, and it was about time to actually use it in an app that's useful for me as well as for other *BSD folks (and figure out, which I've now done at least partially, how QT and KDE really work... lots of reading/googling mainly). And so I made Kbtv, with simplicity being a priority as well in the GUI as under the hood. I'm sure it still has plenty bugs and things that might be Done Better (but perhaps Never Will) (TM) but I've been using it for several months now -- first through a few python modules with mplayer, later with mplayer embedded in the GUI -- and it works fine and is quite fast. I must say that I have P4 3.4GHz and 1.5GHz boxen on which I tested and both aren't exactly skinny of course. Obviously I only have one signal here (through cable, and basically all of Holland is cable with similar signals). I've been able to test two TV cards: a Miro bt848 (temic pal) and a Pinnacle/WinTV bt878 (philips pal + FM). So I'm interested in any results. Specifically how it works with antenna (is the 1MHz unit scanning good enough), if/how it works out with ntsc and with other tuner units, whether secam can be stomped into working after all ... Please see http://freebsd.ricin.com/kbtv for tarball, port, package, bugs and screenshot. Run it through your KDE menu or by running 'kbtv'. I'd like to move to one or more BETA's soon, then PR it as a release. It's been sitting on my desktop for too long :) Any testing is very much appreciated. Thanks for your interest, Dan PS1: Yes, I looked at kdetv first, but considering the mediocre performance I experienced under Linux (tried ark a while ago and debian recently and it's still bad) and the fact that one would have to make first a generalization for btkr to fit in with v4l[1][2] and then bend over backwards to make that fit in with the bktr reality again, I gave up. I did try. It even compiled and ran (without video though). PS2: Kbtv does not support teletext or recording and that's not going to change. From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 1 10:14:37 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3713416A420 for ; Tue, 1 Nov 2005 10:14:37 +0000 (GMT) (envelope-from danny@ricin.com) Received: from smtpq3.tilbu1.nb.home.nl (smtpq3.tilbu1.nb.home.nl [213.51.146.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68E1743D45 for ; Tue, 1 Nov 2005 10:14:35 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.146.188] (port=39177 helo=smtp3.tilbu1) by smtpq3.tilbu1 with esmtp (Exim 4.30) id 1EWk94-0002dF-Em for freebsd-multimedia@freebsd.org; Tue, 01 Nov 2005 01:36:58 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:57502 helo=desktop.homenet) by smtp3.tilbu1 with esmtp (Exim 4.30) id 1EWk93-00061t-9m for freebsd-multimedia@freebsd.org; Tue, 01 Nov 2005 01:36:57 +0100 From: Danny Pansters To: freebsd-multimedia@freebsd.org User-Agent: KMail/1.8.2 X-Face: :N, f2_*44g[tRY8Y-gL2zi`G|<6SpFjTeHt|V5LO6Yl2E7yAfEh{E6-8pqxUFX"l)=?iso-8859-1?q?Nm8y=7E=0A=09IWJSAWQ=7D+=3DpP=7CT=5D?=@sy1sz%h)*CW6gtbp]"fe@MjICtIUo.0, CH~{[R4PXSyL MIME-Version: 1.0 Content-Disposition: inline Date: Tue, 1 Nov 2005 01:35:04 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200511010135.04195.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Subject: Available for testing: Kbtv -- KDE TV viewer for bktr 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, 01 Nov 2005 10:14:37 -0000 Hi all, If you have a bktr based TV or capture card and are using KDE on FreeBSD 5, 6, or 7 I'd like to invite you to try out Kbtv. It is a small and simple TV viewing app written mostly in python. Uses PyKDE for GUI and mplayer for rendering. For quite a while I wasn't too happy with the offerings for TV viewers, especially under KDE. Fxtv works but looks out of place. Mplayer is arguably the best TV renderer available for us. But KMplayer has a rather bad GUI for using TV and because it starts a new mplayer instance (kicking the bktr driver and/or the hardware) everytime you switch channels it exhibits frequent hard freezes. If merely using the tuner (through ioctls) such things don't happen. This made me write btcontrol, which is a small C program that does a selection of the available ioctls. I've also been the maintainer for the PyQt and PyKDE ports for quite a while now, and it was about time to actually use it in an app that's useful for me as well as for other *BSD folks (and figure out, which I've now done at least partially, how QT and KDE really work... lots of reading/googling mainly). And so I made Kbtv, with simplicity being a priority as well in the GUI as under the hood. I'm sure it still has plenty bugs and things that might be Done Better (but perhaps Never Will) (TM) but I've been using it for several months now -- first through a few python modules with mplayer, later with mplayer embedded in the GUI -- and it works fine and is quite fast. I must say that I have P4 3.4GHz and 1.5GHz boxen on which I tested and both aren't exactly skinny of course. Obviously I only have one signal here (through cable, and basically all of Holland is cable with similar signals). I've been able to test two TV cards: a Miro bt848 (temic pal) and a Pinnacle/WinTV bt878 (philips pal + FM). So I'm interested in any results. Specifically how it works with antenna (is the 1MHz unit scanning good enough), if/how it works out with ntsc and with other tuner units, whether secam can be stomped into working after all ... Please see http://freebsd.ricin.com/kbtv for tarball, port, package, bugs and screenshot. Run it through your KDE menu or by running 'kbtv'. I'd like to move to one or more BETA's soon, then PR it as a release. It's been sitting on my desktop for too long :) Any testing is very much appreciated. Thanks for your interest, Dan PS1: Yes, I looked at kdetv first, but considering the mediocre performance I experienced under Linux (tried ark a while ago and debian recently and it's still bad) and the fact that one would have to make first a generalization for btkr to fit in with v4l[1][2] and then bend over backwards to make that fit in with the bktr reality again, I gave up. I did try. It even compiled and ran (without video though). PS2: Kbtv does not support teletext or recording and that's not going to change. From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 1 13:24:02 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3618216A41F for ; Tue, 1 Nov 2005 13:24:02 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-01.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DE8443D45 for ; Tue, 1 Nov 2005 13:24:00 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-06-z2.arcor-online.net (mail-in-06-z2.arcor-online.net [151.189.8.18]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 3DD9F66FDE; Tue, 1 Nov 2005 14:23:59 +0100 (CET) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-06-z2.arcor-online.net (Postfix) with ESMTP id 2361E154247; Tue, 1 Nov 2005 14:23:59 +0100 (CET) Received: from lofi.dyndns.org (dslb-084-061-136-063.pools.arcor-ip.net [84.61.136.63]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 5AC114BC37; Tue, 1 Nov 2005 14:23:58 +0100 (CET) Received: from kiste.my.domain (root@kiste.my.domain [192.168.8.4]) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id jA1DNuod013145 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 1 Nov 2005 14:23:56 +0100 (CET) (envelope-from lofi@freebsd.org) Received: from kiste.my.domain (lofi@localhost [127.0.0.1]) by kiste.my.domain (8.13.1/8.13.1) with ESMTP id jA1DNrdW054868; Tue, 1 Nov 2005 14:23:53 +0100 (CET) (envelope-from lofi@freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by kiste.my.domain (8.13.1/8.13.1/Submit) id jA1DNqg1054867; Tue, 1 Nov 2005 14:23:52 +0100 (CET) (envelope-from lofi@freebsd.org) X-Authentication-Warning: kiste.my.domain: lofi set sender to lofi@freebsd.org using -f From: Michael Nottebrock To: freebsd-multimedia@freebsd.org Date: Tue, 1 Nov 2005 14:23:46 +0100 User-Agent: KMail/1.8.2 References: <200511010135.04195.danny@ricin.com> In-Reply-To: <200511010135.04195.danny@ricin.com> X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Cc: Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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, 01 Nov 2005 13:24:02 -0000 --nextPart2193546.FO0f2A9ukZ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday, 1. November 2005 02:35, Danny Pansters wrote: > Hi all, > > If you have a bktr based TV or capture card and are using KDE on FreeBSD = 5, > 6, or 7 I'd like to invite you to try out Kbtv. It is a small and simple = TV > viewing app written mostly in python. Uses PyKDE for GUI and mplayer for > rendering. Great stuff! > for tarball, port, package, bugs and screenshot. Run it through your KDE > menu or by running 'kbtv'. I'd like to move to one or more BETA's soon, > then PR it as a release. It's been sitting on my desktop for too long :) > Any testing is very much appreciated. I'm stuck in FreeBSD 4 for today, so I tried there: btcontrol.c has a few=20 compile-time issues on gcc 2.95 (the tempval and fd declarations need to be= =20 moved to the beginning of the respective functions) and kbtv itself aborts= =20 just after the splash screen with: Traceback (most recent call last): File "kbtv.py", line 428, in ? btc =3D BTControl() File "/usr/local/share/apps/kbtv/btcontrol.py", line 115, in __init__ self.probeTuner() File "/usr/local/share/apps/kbtv/btcontrol.py", line 146, in probeTuner vsrc =3D int(__btcontrol_get__("videosource")) ValueError: invalid literal for int(): Open %s for reading: No such file or= =20 directory =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart2193546.FO0f2A9ukZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDZ2xnXhc68WspdLARAiygAKCdwtLo1Ajnyz0NrGh6MlAVELBx8wCglpoP /pNxSGw/Rd7+8axegdU3iqE= =fCN8 -----END PGP SIGNATURE----- --nextPart2193546.FO0f2A9ukZ-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 2 09:27:06 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98F0C16A41F for ; Wed, 2 Nov 2005 09:27:06 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id 9EBB843D48 for ; Wed, 2 Nov 2005 09:27:04 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 1820 invoked from network); 2 Nov 2005 09:27:00 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 2 Nov 2005 09:27:00 -0000 Received: (qmail 23766 invoked by uid 89); 2 Nov 2005 09:26:59 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 2 Nov 2005 09:26:59 -0000 Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id BB0AEB922; Wed, 2 Nov 2005 11:27:00 +0200 (EET) Date: Wed, 2 Nov 2005 11:27:00 +0200 From: Ion-Mihai Tetcu To: Danny Pansters Message-ID: <20051102112700.793e842b@it.buh.tecnik93.com> In-Reply-To: <200511010135.04195.danny@ricin.com> References: <200511010135.04195.danny@ricin.com> X-Mailer: Sylpheed-Claws 1.9.15 (GTK+ 2.6.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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, 02 Nov 2005 09:27:06 -0000 On Tue, 1 Nov 2005 01:35:04 +0000 Danny Pansters wrote: > Hi all, > > If you have a bktr based TV or capture card and are using KDE on > FreeBSD 5, 6, or 7 I'd like to invite you to try out Kbtv. It is a > small and simple TV viewing app written mostly in python. Uses PyKDE > for GUI and mplayer for rendering. [ ... ] > I've also been the maintainer for the PyQt and PyKDE ports for quite > a while now, and it was about time to actually use it in an app > that's useful for me as well as for other *BSD folks (and figure out, > which I've now done at least partially, how QT and KDE really work... > lots of reading/googling mainly). FreeBSD 6.0-RC1 #1: Fri Oct 28 10:49:49 EEST 2005 and today ports. While make'ing the port: ===> Installing for py24-kde-4.0.0_2 ===> py24-kde-4.0.0_2 depends on executable: pyuic - found ===> py24-kde-4.0.0_2 depends on file: /usr/local/bin/python2.4 - found ===> py24-kde-4.0.0_2 depends on file: /usr/X11R6/bin/moc - found ===> Generating temporary packing list ===> Checking if x11-toolkits/py-kde already installed .......... cp -f contrib/kdepyuic /usr/local/bin/kdepyuic ( install -o root -g wheel -m 555 /usr/ports/x11-toolkits/py-kde/work/PyKDE-snapshot20050829/contrib/kdepyuic var/ports/kbtv/bin && /usr/local/bin/python2.4 -c "import pykdeconfig, dcopexport" && /usr/local/bin/python2.4 -O -c "import pykdeconfig, dcopexport" ) Traceback (most recent call last): File "", line 1, in ? ImportError: No module named pykdeconfig *** Error code 1 Stop in /usr/ports/x11-toolkits/py-kde. *** Error code 1 -- IOnut Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 2 10:25:19 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C614716A41F for ; Wed, 2 Nov 2005 10:25:19 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id B3F9443D7D for ; Wed, 2 Nov 2005 10:25:12 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 23811 invoked from network); 2 Nov 2005 10:25:08 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 2 Nov 2005 10:25:08 -0000 Received: (qmail 2794 invoked by uid 89); 2 Nov 2005 10:25:07 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 2 Nov 2005 10:25:07 -0000 Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id D2C92B8E2; Wed, 2 Nov 2005 12:25:04 +0200 (EET) Date: Wed, 2 Nov 2005 12:25:04 +0200 From: Ion-Mihai Tetcu To: Ion-Mihai Tetcu Message-ID: <20051102122504.3a7684de@it.buh.tecnik93.com> In-Reply-To: <20051102112700.793e842b@it.buh.tecnik93.com> References: <200511010135.04195.danny@ricin.com> <20051102112700.793e842b@it.buh.tecnik93.com> X-Mailer: Sylpheed-Claws 1.9.15 (GTK+ 2.6.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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, 02 Nov 2005 10:25:19 -0000 On Wed, 2 Nov 2005 11:27:00 +0200 Ion-Mihai Tetcu wrote: > On Tue, 1 Nov 2005 01:35:04 +0000 > Danny Pansters wrote: > > > Hi all, > > > > If you have a bktr based TV or capture card and are using KDE on > > FreeBSD 5, 6, or 7 I'd like to invite you to try out Kbtv. It is a > > small and simple TV viewing app written mostly in python. Uses PyKDE > > for GUI and mplayer for rendering. > > [ ... ] > > > I've also been the maintainer for the PyQt and PyKDE ports for quite > > a while now, and it was about time to actually use it in an app > > that's useful for me as well as for other *BSD folks (and figure > > out, which I've now done at least partially, how QT and KDE really > > work... lots of reading/googling mainly). > > FreeBSD 6.0-RC1 #1: Fri Oct 28 10:49:49 EEST 2005 and today ports. > > While make'ing the port: > > ===> Installing for py24-kde-4.0.0_2 > ===> py24-kde-4.0.0_2 depends on executable: pyuic - found > ===> py24-kde-4.0.0_2 depends on file: /usr/local/bin/python2.4 - > found ===> py24-kde-4.0.0_2 depends on file: /usr/X11R6/bin/moc - > found ===> Generating temporary packing list > ===> Checking if x11-toolkits/py-kde already installed > .......... > cp -f contrib/kdepyuic /usr/local/bin/kdepyuic > ( install -o root -g wheel -m > 555 /usr/ports/x11-toolkits/py-kde/work/PyKDE-snapshot20050829/contrib/kdepyuic > var/ports/kbtv/bin && /usr/local/bin/python2.4 -c "import > pykdeconfig, dcopexport" && /usr/local/bin/python2.4 -O -c "import > pykdeconfig, dcopexport" ) Traceback (most recent call last): File > "", line 1, in ? ImportError: No module named pykdeconfig *** > Error code 1 > > Stop in /usr/ports/x11-toolkits/py-kde. > *** Error code 1 After running make in /usr/ports/x11-toolkits/py-kde and I chose default options it installed OK. However: > /var/ports/kbtv/bin/kbtv Traceback (most recent call last): File "kbtv.py", line 428, in ? btc = BTControl() File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 115, in __init__ self.probeTuner() File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 146, in probeTuner vsrc = int(__btcontrol_get__("videosource")) ValueError: invalid literal for int(): btcontrol: not found Note that I've build with PREFIX=/var/ports/kbtv -- IOnut Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 2 14:14:16 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C97F16A41F for ; Wed, 2 Nov 2005 14:14:16 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from t-mta3.odn.ne.jp (mfep3.odn.ne.jp [143.90.131.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C85943D48 for ; Wed, 2 Nov 2005 14:14:14 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost ([61.116.129.252]) by t-mta3.odn.ne.jp with ESMTP id <20051102141413475.SETW.496069.t-mta3.odn.ne.jp@mta3.odn.ne.jp>; Wed, 2 Nov 2005 23:14:13 +0900 Date: Wed, 02 Nov 2005 23:14:12 +0900 (JST) Message-Id: <20051102.231412.343190544.kazuhito@ph.noda.tus.ac.jp> To: skywizard@MyBSD.org.my From: Kazuhito HONDA In-Reply-To: <20051029094831.1c6c785d.skywizard@MyBSD.org.my> References: <20051027133448.vptim01kwoco8wcw@netchild.homeip.net> <20051028.224049.343190967.kazuhito@ph.noda.tus.ac.jp> <20051029094831.1c6c785d.skywizard@MyBSD.org.my> X-Mailer: Mew version 3.3 on XEmacs 21.4.17 (Jumbo Shrimp) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_Nov__2_23:14:12_2005_702)--" Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, Alexander@Leidinger.net Subject: Re: uaudio and Digigram UAX220 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, 02 Nov 2005 14:14:16 -0000 ----Next_Part(Wed_Nov__2_23:14:12_2005_702)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Ariff Abdullah Subject: Re: uaudio and Digigram UAX220 Date: Sat, 29 Oct 2005 09:48:31 +0800 > Could you please do the cleanup? :) The only thing is that Julian > already said that those patch break his USB microphone, so this must > undergo some serious regression test to be accepted. Oh, I missed that. I wonder why it isn't committed. I have searched the patch and found one problem. In uaudio_query_formats() of uaudio.c + + if ( numchan != 1 && numchan == 2 ) + + foundcount++; + `foundcount' is a flag to indicate which a valid format is found or not. `numchan' is a number of channel. If a device has mono channels only, foundcont flag isn't changed. I guess that it broke Julian's USB microphone, because microphone is usually mono. `if' line is unnecessary. We should remove this line and lieve `foundcount++'. And thank you for your comments and advice. I have done the cleanup and improvements of the patch along them. (include bug fix, 24 bit and 32 bit sound stream, and speed setting) It is attached at the end of this mail. Sincerely yours, Kazuhito HONDA ----Next_Part(Wed_Nov__2_23:14:12_2005_702)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="setspeed_patch" --- uaudio.c.old Wed Nov 2 16:16:00 2005 +++ uaudio.c Wed Nov 2 16:18:32 2005 @@ -1,5 +1,5 @@ /* $NetBSD: uaudio.c,v 1.91 2004/11/05 17:46:14 kent Exp $ */ -/* $FreeBSD: src/sys/dev/sound/usb/uaudio.c,v 1.16 2005/09/18 15:13:06 netchild Exp $ */ +/* $FreeBSD: src/sys/dev/sound/usb/uaudio.c, kazuhito Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -239,6 +239,7 @@ struct uaudio_softc { #define HAS_MULAW 0x10 #define UA_NOFRAC 0x20 /* don't do sample rate adjustment */ #define HAS_24 0x40 +#define HAS_32 0x80 int sc_mode; /* play/record capability */ struct mixerctl *sc_ctls; /* mixer controls */ int sc_nctls; /* # of mixer controls */ @@ -2050,7 +2051,7 @@ uaudio_process_as(struct uaudio_softc *s format = UGETW(asid->wFormatTag); chan = asf1d->bNrChannels; prec = asf1d->bBitResolution; - if (prec != 8 && prec != 16 && prec != 24) { + if (prec != 8 && prec != 16 && prec != 24 && prec != 32) { printf("%s: ignored setting with precision %d\n", USBDEVNAME(sc->sc_dev), prec); return USBD_NORMAL_COMPLETION; @@ -2063,6 +2064,8 @@ uaudio_process_as(struct uaudio_softc *s sc->sc_altflags |= HAS_16; } else if (prec == 24) { sc->sc_altflags |= HAS_24; + } else if (prec == 32) { + sc->sc_altflags |= HAS_32; } enc = AUDIO_ENCODING_SLINEAR_LE; format_str = "pcm"; @@ -3742,7 +3745,7 @@ uaudio_init_params(struct uaudio_softc * if ((sc->sc_playchan.pipe != NULL) || (sc->sc_recchan.pipe != NULL)) return (-1); - switch(ch->format & 0x0000FFFF) { + switch(ch->format & 0x000FFFFF) { case AFMT_U8: enc = AUDIO_ENCODING_ULINEAR_LE; ch->precision = 8; @@ -3775,6 +3778,38 @@ uaudio_init_params(struct uaudio_softc * enc = AUDIO_ENCODING_ULINEAR_BE; ch->precision = 16; break; + case AFMT_S24_LE: + enc = AUDIO_ENCODING_SLINEAR_LE; + ch->precision = 24; + break; + case AFMT_S24_BE: + enc = AUDIO_ENCODING_SLINEAR_BE; + ch->precision = 24; + break; + case AFMT_U24_LE: + enc = AUDIO_ENCODING_ULINEAR_LE; + ch->precision = 24; + break; + case AFMT_U24_BE: + enc = AUDIO_ENCODING_ULINEAR_BE; + ch->precision = 24; + break; + case AFMT_S32_LE: + enc = AUDIO_ENCODING_SLINEAR_LE; + ch->precision = 32; + break; + case AFMT_S32_BE: + enc = AUDIO_ENCODING_SLINEAR_BE; + ch->precision = 32; + break; + case AFMT_U32_LE: + enc = AUDIO_ENCODING_ULINEAR_LE; + ch->precision = 32; + break; + case AFMT_U32_BE: + enc = AUDIO_ENCODING_ULINEAR_BE; + ch->precision = 32; + break; default: enc = 0; ch->precision = 16; @@ -3857,83 +3892,135 @@ uaudio_init_params(struct uaudio_softc * return (0); } -void -uaudio_query_formats(device_t dev, u_int32_t *pfmt, u_int32_t *rfmt) +struct uaudio_convesion { + uint8_t uaudio_fmt; + uint8_t uaudio_prec; + uint32_t freebsd_fmt; +}; + +const struct uaudio_convesion const accepted_conversion[] = { + {AUDIO_ENCODING_ULINEAR_LE, 8, AFMT_U8}, + {AUDIO_ENCODING_ULINEAR_LE, 16, AFMT_U16_LE}, + {AUDIO_ENCODING_ULINEAR_LE, 24, AFMT_U24_LE}, + {AUDIO_ENCODING_ULINEAR_LE, 32, AFMT_U32_LE}, + {AUDIO_ENCODING_ULINEAR_BE, 16, AFMT_U16_BE}, + {AUDIO_ENCODING_ULINEAR_BE, 24, AFMT_U24_BE}, + {AUDIO_ENCODING_ULINEAR_BE, 32, AFMT_U32_BE}, + {AUDIO_ENCODING_SLINEAR_LE, 8, AFMT_S8}, + {AUDIO_ENCODING_SLINEAR_LE, 16, AFMT_S16_LE}, + {AUDIO_ENCODING_SLINEAR_LE, 24, AFMT_S24_LE}, + {AUDIO_ENCODING_SLINEAR_LE, 24, AFMT_S32_LE}, + {AUDIO_ENCODING_SLINEAR_BE, 16, AFMT_S16_BE}, + {AUDIO_ENCODING_SLINEAR_BE, 24, AFMT_S24_BE}, + {AUDIO_ENCODING_SLINEAR_BE, 24, AFMT_S32_BE}, + {AUDIO_ENCODING_ALAW, 8, AFMT_A_LAW}, + {AUDIO_ENCODING_ULAW, 8, AFMT_MU_LAW}, + {0,0,0} +}; + +unsigned +uaudio_query_formats(device_t dev, int reqdir, unsigned maxfmt, struct pcmchan_caps *cap) { - int i, pn=0, rn=0; - int prec, dir; - u_int32_t fmt; struct uaudio_softc *sc; - - const struct usb_audio_streaming_type1_descriptor *a1d; + const struct usb_audio_streaming_type1_descriptor *asf1d; + const struct uaudio_convesion *iterator; + unsigned fmtcount, foundcount; + u_int32_t fmt; + uint8_t format, numchan, subframesize, prec, dir, iscontinuous; + int freq, freq_min, freq_max; + char *numchannel_descr; + char freq_descr[64]; + int i,r; sc = device_get_softc(dev); + if (sc == NULL) + return 0; + + cap->minspeed = cap->maxspeed = 0; + foundcount = fmtcount = 0; for (i = 0; i < sc->sc_nalts; i++) { - fmt = 0; - a1d = sc->sc_alts[i].asf1desc; - prec = a1d->bBitResolution; /* precision */ + dir = UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); - switch (sc->sc_alts[i].encoding) { - case AUDIO_ENCODING_ULINEAR_LE: - if (prec == 8) { - fmt = AFMT_U8; - } else if (prec == 16) { - fmt = AFMT_U16_LE; - } - break; - case AUDIO_ENCODING_SLINEAR_LE: - if (prec == 8) { - fmt = AFMT_S8; - } else if (prec == 16) { - fmt = AFMT_S16_LE; - } - break; - case AUDIO_ENCODING_ULINEAR_BE: - if (prec == 16) { - fmt = AFMT_U16_BE; - } - break; - case AUDIO_ENCODING_SLINEAR_BE: - if (prec == 16) { - fmt = AFMT_S16_BE; - } - break; - case AUDIO_ENCODING_ALAW: - if (prec == 8) { - fmt = AFMT_A_LAW; - } - break; - case AUDIO_ENCODING_ULAW: - if (prec == 8) { - fmt = AFMT_MU_LAW; - } - break; - } + if ((dir == UE_DIR_OUT) != (reqdir == PCMDIR_PLAY)) + continue; - if (fmt != 0) { - if (a1d->bNrChannels == 2) { /* stereo/mono */ - fmt |= AFMT_STEREO; - } else if (a1d->bNrChannels != 1) { - fmt = 0; - } + asf1d = sc->sc_alts[i].asf1desc; + format = sc->sc_alts[i].encoding; + + numchan = asf1d->bNrChannels; + subframesize = asf1d->bSubFrameSize; + prec = asf1d->bBitResolution; /* precision */ + iscontinuous = asf1d->bSamFreqType == UA_SAMP_CONTNUOUS; + + if (iscontinuous) + snprintf(freq_descr, 64, "continous min %d max %d", UA_SAMP_LO(asf1d), UA_SAMP_HI(asf1d)); + else + snprintf(freq_descr, 64, "fixed frequency (%d listed formats)", asf1d->bSamFreqType); + + if (numchan == 1) + numchannel_descr = " (mono)"; + else if (numchan == 2) + numchannel_descr = " (stereo)"; + else + numchannel_descr = ""; + + if (bootverbose) { + device_printf(dev, "uaudio_query_formats: found a native %s channel%s %s %dbit %dbytes/subframe X %d channels = %d bytes per sample\n", + (dir==UE_DIR_OUT)?"playback":"record", + numchannel_descr, freq_descr, + prec, subframesize, numchan, subframesize*numchan); } + /* + * Now start rejecting the ones that don't map to FreeBSD + */ - if (fmt != 0) { - dir= UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); - if (dir == UE_DIR_OUT) { - pfmt[pn++] = fmt; - } else if (dir == UE_DIR_IN) { - rfmt[rn++] = fmt; + if (numchan != 1 && numchan != 2) + continue; + + for (iterator = accepted_conversion ; iterator->uaudio_fmt != 0 ; iterator++) + if (iterator->uaudio_fmt == format && iterator->uaudio_prec == prec) + break; + + if (iterator->uaudio_fmt == 0) + continue; + + fmt = iterator->freebsd_fmt; + + if (numchan == 2) + fmt |= AFMT_STEREO; + + foundcount++; + + if (fmtcount >= maxfmt) + continue; + + cap->fmtlist[fmtcount++] = fmt; + + if (iscontinuous) { + freq_min = UA_SAMP_LO(asf1d); + freq_max = UA_SAMP_HI(asf1d); + + if (cap->minspeed == 0 || freq_min < cap->minspeed) + cap->minspeed = freq_min; + if (cap->maxspeed == 0) + cap->maxspeed = cap->minspeed; + if (freq_max > cap->maxspeed) + cap->maxspeed = freq_max; + } else { + for (r = 0; r < asf1d->bSamFreqType; r++) { + freq = UA_GETSAMP(asf1d, r); + if (cap->minspeed == 0 || freq < cap->minspeed) + cap->minspeed = freq; + if (cap->maxspeed == 0) + cap->maxspeed = cap->minspeed; + if (freq > cap->maxspeed) + cap->maxspeed = freq; } } - - if ((pn > 8*2) || (rn > 8*2)) - break; } - pfmt[pn] = 0; - rfmt[rn] = 0; - return; + cap->fmtlist[fmtcount] = 0; + return foundcount; } void @@ -3982,25 +4069,81 @@ uaudio_chan_set_param_blocksize(device_t return; } -void -uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int dir) +int +uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int reqdir) { + const struct uaudio_convesion *iterator; struct uaudio_softc *sc; struct chan *ch; + int i, r, score, hiscore, bestspeed; sc = device_get_softc(dev); #ifndef NO_RECORDING - if (dir == PCMDIR_PLAY) + if (reqdir == PCMDIR_PLAY) ch = &sc->sc_playchan; else ch = &sc->sc_recchan; #else ch = &sc->sc_playchan; #endif + /* + * We are successful if we find an endpoint that matches our selected format and it + * supports the requested speed. + */ + hiscore = 0; + bestspeed = 1; + for (i = 0; i < sc->sc_nalts; i++) { + int dir = UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); + int format = sc->sc_alts[i].encoding; + const struct usb_audio_streaming_type1_descriptor *asf1d = sc->sc_alts[i].asf1desc; + int iscontinuous = asf1d->bSamFreqType == UA_SAMP_CONTNUOUS; - ch->sample_rate = speed; + if ((dir == UE_DIR_OUT) != (reqdir == PCMDIR_PLAY)) + continue; - return; + for (iterator = accepted_conversion ; iterator->uaudio_fmt != 0 ; iterator++) + if (iterator->uaudio_fmt != format || iterator->freebsd_fmt != (ch->format&0xfffffff)) + continue; + if (iscontinuous) { + if (speed >= UA_SAMP_LO(asf1d) && speed <= UA_SAMP_HI(asf1d)) { + ch->sample_rate = speed; + return speed; + } else if (speed < UA_SAMP_LO(asf1d)) { + score = 0xfff * speed / UA_SAMP_LO(asf1d); + if (score > hiscore) { + bestspeed = UA_SAMP_LO(asf1d); + hiscore = score; + } + } else if (speed < UA_SAMP_HI(asf1d)) { + score = 0xfff * UA_SAMP_HI(asf1d) / speed; + if (score > hiscore) { + bestspeed = UA_SAMP_HI(asf1d); + hiscore = score; + } + } + continue; + } + for (r = 0; r < asf1d->bSamFreqType; r++) { + if (speed == UA_GETSAMP(asf1d, r)) { + ch->sample_rate = speed; + return speed; + } + if (speed > UA_GETSAMP(asf1d, r)) + score = 0xfff * UA_GETSAMP(asf1d, r) / speed; + else + score = 0xfff * speed / UA_GETSAMP(asf1d, r); + if (score > hiscore) { + bestspeed = UA_GETSAMP(asf1d, r); + hiscore = score; + } + } + } + if (bestspeed != 1) { + ch->sample_rate = bestspeed; + return bestspeed; + } + + return 0; } int --- uaudio_pcm.c.old Wed Nov 2 16:15:42 2005 +++ uaudio_pcm.c Wed Nov 2 22:42:25 2005 @@ -1,4 +1,4 @@ -/* $FreeBSD: src/sys/dev/sound/usb/uaudio_pcm.c,v 1.17 2005/10/02 15:51:19 netchild Exp $ */ +/* $FreeBSD: src/sys/dev/sound/usb/uaudio_pcm.c,kazuhito Exp $ */ /*- * Copyright (c) 2000-2002 Hiroyuki Aizu @@ -49,16 +49,13 @@ struct ua_info { device_t sc_dev; u_int32_t bufsz; struct ua_chinfo pch, rch; +#define FORMAT_NUM 32 + u_int32_t ua_playfmt[FORMAT_NUM*2+1]; /* FORMAT_NUM format * (stereo or mono) + endptr */ + u_int32_t ua_recfmt[FORMAT_NUM*2+1]; /* FORMAT_NUM format * (stereo or mono) + endptr */ + struct pcmchan_caps ua_playcaps; + struct pcmchan_caps ua_reccaps; }; -static u_int32_t ua_playfmt[8*2+1]; /* 8 format * (stereo or mono) + endptr */ - -static struct pcmchan_caps ua_playcaps = {8000, 48000, ua_playfmt, 0}; - -static u_int32_t ua_recfmt[8*2+1]; /* 8 format * (stereo or mono) + endptr */ - -static struct pcmchan_caps ua_reccaps = {8000, 48000, ua_recfmt, 0}; - #define UAUDIO_DEFAULT_BUFSZ 16*1024 /************************************************************/ @@ -76,23 +73,9 @@ ua_chan_init(kobj_t obj, void *devinfo, ch->dir = dir; pa_dev = device_get_parent(sc->sc_dev); - /* Create ua_playfmt[] & ua_recfmt[] */ - uaudio_query_formats(pa_dev, (u_int32_t *)&ua_playfmt, (u_int32_t *)&ua_recfmt); - if (dir == PCMDIR_PLAY) { - if (ua_playfmt[0] == 0) { - printf("play channel supported format list invalid\n"); - return NULL; - } - } else { - if (ua_recfmt[0] == 0) { - printf("record channel supported format list invalid\n"); - return NULL; - } - - } ch->buf = malloc(sc->bufsz, M_DEVBUF, M_NOWAIT); - if (ch->buf == NULL) + if (ch->buf == NULL) return NULL; if (sndbuf_setup(b, ch->buf, sc->bufsz) != 0) { free(ch->buf, M_DEVBUF); @@ -133,6 +116,9 @@ ua_chan_setformat(kobj_t obj, void *data struct ua_chinfo *ch = data; + /* + * At this point, no need to queury as we shouldn't select an unsorted format + */ ua = ch->parent; pa_dev = device_get_parent(ua->sc_dev); uaudio_chan_set_param_format(pa_dev, format, ch->dir); @@ -144,15 +130,15 @@ ua_chan_setformat(kobj_t obj, void *data static int ua_chan_setspeed(kobj_t obj, void *data, u_int32_t speed) { + struct ua_chinfo *ch; device_t pa_dev; - struct ua_info *ua; + int bestspeed; - struct ua_chinfo *ch = data; - ch->spd = speed; + ch = data; + pa_dev = device_get_parent(ch->parent->sc_dev); - ua = ch->parent; - pa_dev = device_get_parent(ua->sc_dev); - uaudio_chan_set_param_speed(pa_dev, speed, ch->dir); + if ((bestspeed = uaudio_chan_set_param_speed(pa_dev, speed, ch->dir))) + ch->spd = bestspeed; return ch->spd; } @@ -224,9 +210,10 @@ ua_chan_getptr(kobj_t obj, void *data) static struct pcmchan_caps * ua_chan_getcaps(kobj_t obj, void *data) { - struct ua_chinfo *ch = data; + struct ua_chinfo *ch; - return (ch->dir == PCMDIR_PLAY) ? &ua_playcaps : & ua_reccaps; + ch = data; + return (ch->dir == PCMDIR_PLAY) ? &(ch->parent->ua_playcaps) : &(ch->parent->ua_reccaps); } static kobj_method_t ua_chan_methods[] = { @@ -327,42 +314,63 @@ ua_attach(device_t dev) { struct ua_info *ua; char status[SND_STATUSLEN]; + device_t pa_dev; + u_int32_t nplay, nrec; + int i; - ua = (struct ua_info *)malloc(sizeof *ua, M_DEVBUF, M_NOWAIT); - if (!ua) + ua = (struct ua_info *)malloc(sizeof *ua, M_DEVBUF, M_ZERO | M_NOWAIT); + if (ua == NULL) return ENXIO; - bzero(ua, sizeof *ua); ua->sc_dev = dev; + pa_dev = device_get_parent(dev); + ua->bufsz = pcm_getbuffersize(dev, 4096, UAUDIO_DEFAULT_BUFSZ, 65536); if (bootverbose) device_printf(dev, "using a default buffer size of %jd\n", (intmax_t)ua->bufsz); if (mixer_init(dev, &ua_mixer_class, ua)) { - return(ENXIO); + goto bad; } snprintf(status, SND_STATUSLEN, "at ? %s", PCM_KLDSTRING(snd_uaudio)); + ua->ua_playcaps.fmtlist = ua->ua_playfmt; + ua->ua_reccaps.fmtlist = ua->ua_recfmt; + nplay = uaudio_query_formats(pa_dev, PCMDIR_PLAY, FORMAT_NUM * 2, &ua->ua_playcaps); + nrec = uaudio_query_formats(pa_dev, PCMDIR_REC, FORMAT_NUM * 2, &ua->ua_reccaps); + + if (nplay > 1) + nplay = 1; + if (nrec > 1) + nrec = 1; + #ifndef NO_RECORDING - if (pcm_register(dev, ua, 1, 1)) { + if (pcm_register(dev, ua, nplay, nrec)) { #else - if (pcm_register(dev, ua, 1, 0)) { + if (pcm_register(dev, ua, nplay, 0)) { #endif - return(ENXIO); + goto bad; } sndstat_unregister(dev); uaudio_sndstat_register(dev); - pcm_addchan(dev, PCMDIR_PLAY, &ua_chan_class, ua); + for (i = 0; i < nplay; i++) { + pcm_addchan(dev, PCMDIR_PLAY, &ua_chan_class, ua); + } #ifndef NO_RECORDING - pcm_addchan(dev, PCMDIR_REC, &ua_chan_class, ua); + for (i = 0; i < nrec; i++) { + pcm_addchan(dev, PCMDIR_REC, &ua_chan_class, ua); + } #endif pcm_setstatus(dev, status); return 0; + +bad: free(ua, M_DEVBUF); + return ENXIO; } static int ----Next_Part(Wed_Nov__2_23:14:12_2005_702)---- From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 2 19:29:30 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC3F016A41F for ; Wed, 2 Nov 2005 19:29:30 +0000 (GMT) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD59943D48 for ; Wed, 2 Nov 2005 19:29:30 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.23.117]) ([10.251.23.117]) by a50.ironport.com with ESMTP; 02 Nov 2005 11:19:34 -0800 X-IronPort-Anti-Spam-Filtered: true Message-ID: <43691146.7030404@elischer.org> Date: Wed, 02 Nov 2005 11:19:34 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kazuhito HONDA References: <20051027133448.vptim01kwoco8wcw@netchild.homeip.net> <20051028.224049.343190967.kazuhito@ph.noda.tus.ac.jp> <20051029094831.1c6c785d.skywizard@MyBSD.org.my> <20051102.231412.343190544.kazuhito@ph.noda.tus.ac.jp> In-Reply-To: <20051102.231412.343190544.kazuhito@ph.noda.tus.ac.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, Alexander@Leidinger.net, skywizard@MyBSD.org.my Subject: Re: uaudio and Digigram UAX220 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, 02 Nov 2005 19:29:31 -0000 Kazuhito HONDA wrote: >From: Ariff Abdullah >Subject: Re: uaudio and Digigram UAX220 >Date: Sat, 29 Oct 2005 09:48:31 +0800 > > > >>Could you please do the cleanup? :) The only thing is that Julian >>already said that those patch break his USB microphone, so this must >>undergo some serious regression test to be accepted. >> >> I'll try it on my microphone again tonight. > >Oh, I missed that. I wonder why it isn't committed. >I have searched the patch and found one problem. > >In uaudio_query_formats() of uaudio.c >+ >+ if ( numchan != 1 && numchan == 2 ) >+ >+ foundcount++; >+ > >`foundcount' is a flag to indicate which a valid format is found or not. >`numchan' is a number of channel. >If a device has mono channels only, foundcont flag isn't changed. >I guess that it broke Julian's USB microphone, >because microphone is usually mono. > > From owner-freebsd-multimedia@FreeBSD.ORG Wed Nov 2 19:42:11 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58FFD16A41F for ; Wed, 2 Nov 2005 19:42:11 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id C216A43D4C for ; Wed, 2 Nov 2005 19:42:10 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 441256CC23; Thu, 3 Nov 2005 03:43:59 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00306-04; Thu, 3 Nov 2005 03:43:57 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id A58F96CC22; Thu, 3 Nov 2005 03:43:57 +0800 (MYT) Date: Thu, 3 Nov 2005 03:42:16 +0800 From: Ariff Abdullah To: Julian Elischer Message-Id: <20051103034216.379caa05.skywizard@MyBSD.org.my> In-Reply-To: <43691146.7030404@elischer.org> References: <20051027133448.vptim01kwoco8wcw@netchild.homeip.net> <20051028.224049.343190967.kazuhito@ph.noda.tus.ac.jp> <20051029094831.1c6c785d.skywizard@MyBSD.org.my> <20051102.231412.343190544.kazuhito@ph.noda.tus.ac.jp> <43691146.7030404@elischer.org> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org, Alexander@Leidinger.net Subject: Re: uaudio and Digigram UAX220 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, 02 Nov 2005 19:42:11 -0000 On Wed, 02 Nov 2005 11:19:34 -0800 Julian Elischer wrote: > Kazuhito HONDA wrote: > > >From: Ariff Abdullah > >Subject: Re: uaudio and Digigram UAX220 > >Date: Sat, 29 Oct 2005 09:48:31 +0800 > > > > > > > >>Could you please do the cleanup? :) The only thing is that Julian > >>already said that those patch break his USB microphone, so this > >must >undergo some serious regression test to be accepted. > >> > >> > > > I'll try it on my microphone again tonight. > Thanks guys :) -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 10:17:14 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FEF316A41F for ; Thu, 3 Nov 2005 10:17:14 +0000 (GMT) (envelope-from bkarp@cs.ucl.ac.uk) Received: from smelt.bkarp.co.uk (smelt.bkarp.co.uk [81.187.56.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1C9443D48 for ; Thu, 3 Nov 2005 10:17:13 +0000 (GMT) (envelope-from bkarp@cs.ucl.ac.uk) Received: from smelt.bkarp.co.uk (localhost.bkarp.co.uk [127.0.0.1]) by smelt.bkarp.co.uk (8.13.4/8.13.4) with ESMTP id jA3AGERn010059; Thu, 3 Nov 2005 10:16:14 GMT (envelope-from bkarp@cs.ucl.ac.uk) Received: (from bkarp@localhost) by smelt.bkarp.co.uk (8.13.4/8.13.4/Submit) id jA3AGEsG010058; Thu, 3 Nov 2005 10:16:14 GMT (envelope-from bkarp@cs.ucl.ac.uk) X-Authentication-Warning: smelt.bkarp.co.uk: bkarp set sender to bkarp@cs.ucl.ac.uk using -f Date: Thu, 3 Nov 2005 10:16:14 +0000 From: Brad Karp To: freebsd-multimedia@freebsd.org Message-ID: <20051103101614.GE8008@smelt.bkarp.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Cc: bkarp@cs.ucl.ac.uk Subject: ICH7 audio support? 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: Thu, 03 Nov 2005 10:17:14 -0000 Greetings, all. I've recently bought a Dell Optiplex GX620 box, and am running 5.4-STABLE (as of mid-October) on it. This box has an ICH7 on the motherboard. At boot time, 5.4-RELEASE doesn't recognize the ICH7 in any way--not the ATA controller (seen as "generic"), and not the audio hardware. In particular, I see: pci0: at device 30.2 (no driver attached) My questions: 1) Does 6.0 support the ICH7 audio hardware? 2) If not, is anyone working on support for it? 3) How back-compatible is the ICH7 audio hardware with previous ICHes? That is, is there any chance that merely by hacking the device probe tables, I can "lie" to the current snd_ich driver that the ICH7 is some earlier-model ICH, and get it to work? Many thanks, -Brad, bkarp@cs.ucl.ac.uk From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 10:41:50 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 292B516A41F for ; Thu, 3 Nov 2005 10:41:50 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98D2643D45 for ; Thu, 3 Nov 2005 10:41:49 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 05BA26CC27; Thu, 3 Nov 2005 18:43:41 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25335-04; Thu, 3 Nov 2005 18:43:39 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 5497B6CC23; Thu, 3 Nov 2005 18:43:38 +0800 (MYT) Date: Thu, 3 Nov 2005 18:41:57 +0800 From: Ariff Abdullah To: Brad Karp Message-Id: <20051103184157.1e434bd9.skywizard@MyBSD.org.my> In-Reply-To: <20051103101614.GE8008@smelt.bkarp.co.uk> References: <20051103101614.GE8008@smelt.bkarp.co.uk> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: ICH7 audio support? 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: Thu, 03 Nov 2005 10:41:50 -0000 On Thu, 3 Nov 2005 10:16:14 +0000 Brad Karp wrote: > Greetings, all. > > I've recently bought a Dell Optiplex GX620 box, and am running > 5.4-STABLE (as of mid-October) on it. > > This box has an ICH7 on the motherboard. At boot time, 5.4-RELEASE > doesn't recognize the ICH7 in any way--not the ATA controller > (seen as "generic"), and not the audio hardware. > > In particular, I see: > > pci0: at device 30.2 (no driver attached) > > My questions: > > 1) Does 6.0 support the ICH7 audio hardware? > 2) If not, is anyone working on support for it? > 3) How back-compatible is the ICH7 audio hardware with previous > ICHes? > That is, is there any chance that merely by hacking the device > probe tables, I can "lie" to the current snd_ich driver that the > ICH7 is some earlier-model ICH, and get it to work? > ICH7 supposed to have new Intel High Definition Audio (HDA), which unfortunately isn't supported (yet). I'm not quite sure whether it is backward compatible with AC97, but you can try your luck hacking the driver (/usr/src/sys/dev/sound/pci/ich.c) by adding the appropriate pci id into ich_pci_probe() function. pciconf -l (chip=xxxx) should give you the appropriate value for that. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 11:27:59 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C39A16A41F for ; Thu, 3 Nov 2005 11:27:59 +0000 (GMT) (envelope-from bkarp@cs.ucl.ac.uk) Received: from smelt.bkarp.co.uk (smelt.bkarp.co.uk [81.187.56.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AD6443D49 for ; Thu, 3 Nov 2005 11:27:58 +0000 (GMT) (envelope-from bkarp@cs.ucl.ac.uk) Received: from smelt.bkarp.co.uk (localhost.bkarp.co.uk [127.0.0.1]) by smelt.bkarp.co.uk (8.13.4/8.13.4) with ESMTP id jA3BR5K4000679; Thu, 3 Nov 2005 11:27:05 GMT (envelope-from bkarp@cs.ucl.ac.uk) Received: (from bkarp@localhost) by smelt.bkarp.co.uk (8.13.4/8.13.4/Submit) id jA3BR4f0000678; Thu, 3 Nov 2005 11:27:04 GMT (envelope-from bkarp@cs.ucl.ac.uk) X-Authentication-Warning: smelt.bkarp.co.uk: bkarp set sender to bkarp@cs.ucl.ac.uk using -f Date: Thu, 3 Nov 2005 11:27:04 +0000 From: Brad Karp To: Ariff Abdullah Message-ID: <20051103112704.GA669@smelt.bkarp.co.uk> References: <20051103101614.GE8008@smelt.bkarp.co.uk> <20051103184157.1e434bd9.skywizard@MyBSD.org.my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051103184157.1e434bd9.skywizard@MyBSD.org.my> User-Agent: Mutt/1.5.11 Cc: freebsd-multimedia@freebsd.org Subject: Re: ICH7 audio support? 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: Thu, 03 Nov 2005 11:27:59 -0000 > > 3) How back-compatible is the ICH7 audio hardware with previous > > ICHes? > > That is, is there any chance that merely by hacking the device > > probe tables, I can "lie" to the current snd_ich driver that the > > ICH7 is some earlier-model ICH, and get it to work? > > > ICH7 supposed to have new Intel High Definition Audio (HDA), which > unfortunately isn't supported (yet). I'm not quite sure whether it is > backward compatible with AC97, but you can try your luck hacking the > driver (/usr/src/sys/dev/sound/pci/ich.c) by adding the appropriate > pci id into ich_pci_probe() function. pciconf -l (chip=xxxx) should > give you the appropriate value for that. Thanks, Ariff. When I received your reply, I was already done hacking the device ID for the ICH7 into /sys/dev/sound/pci/ich.c. :-) I'm happy to report that with this hack, snd_ich appears to support the ICH7 just fine for both audio input and output! Best, -Brad, bkarp@cs.ucl.ac.uk From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 11:50:05 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F45416A420 for ; Thu, 3 Nov 2005 11:50:05 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id E941243D46 for ; Thu, 3 Nov 2005 11:50:04 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id C8DC96CC2A; Thu, 3 Nov 2005 19:51:56 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25559-05; Thu, 3 Nov 2005 19:51:55 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 2AFE86CC25; Thu, 3 Nov 2005 19:51:54 +0800 (MYT) Date: Thu, 3 Nov 2005 19:50:08 +0800 From: Ariff Abdullah To: Brad Karp Message-Id: <20051103195008.5a7d06d8.skywizard@MyBSD.org.my> In-Reply-To: <20051103112704.GA669@smelt.bkarp.co.uk> References: <20051103101614.GE8008@smelt.bkarp.co.uk> <20051103184157.1e434bd9.skywizard@MyBSD.org.my> <20051103112704.GA669@smelt.bkarp.co.uk> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: ICH7 audio support? 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: Thu, 03 Nov 2005 11:50:05 -0000 On Thu, 3 Nov 2005 11:27:04 +0000 Brad Karp wrote: > > > 3) How back-compatible is the ICH7 audio hardware with previous > > > ICHes? > > > That is, is there any chance that merely by hacking the > > > device probe tables, I can "lie" to the current snd_ich > > > driver that the ICH7 is some earlier-model ICH, and get it to > > > work? > > > > > ICH7 supposed to have new Intel High Definition Audio (HDA), which > > unfortunately isn't supported (yet). I'm not quite sure whether it > > is backward compatible with AC97, but you can try your luck > > hacking the driver (/usr/src/sys/dev/sound/pci/ich.c) by adding > > the appropriate pci id into ich_pci_probe() function. pciconf -l > > (chip=xxxx) should give you the appropriate value for that. > > Thanks, Ariff. > > When I received your reply, I was already done hacking the device ID > for the ICH7 into /sys/dev/sound/pci/ich.c. :-) > > I'm happy to report that with this hack, snd_ich appears to support > the ICH7 just fine for both audio input and output! > Nice :) Can I have the diff -u ? There is a cumulative patch and fixes for various issues. You can get it from http://people.freebsd.org/~ariff/ . -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 14:07:50 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D24EA16A421 for ; Thu, 3 Nov 2005 14:07:50 +0000 (GMT) (envelope-from joel@FreeBSD.org) Received: from av9-1-sn3.vrr.skanova.net (av9-1-sn3.vrr.skanova.net [81.228.9.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id D485643D66 for ; Thu, 3 Nov 2005 14:07:45 +0000 (GMT) (envelope-from joel@FreeBSD.org) Received: by av9-1-sn3.vrr.skanova.net (Postfix, from userid 502) id 7E46E37FB5; Thu, 3 Nov 2005 15:07:44 +0100 (CET) Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by av9-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 5D46637E67; Thu, 3 Nov 2005 15:07:44 +0100 (CET) Received: from t12o55p20.telia.com (t12o55p20.telia.com [81.225.222.140]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 366BD37E4A; Thu, 3 Nov 2005 15:07:42 +0100 (CET) From: Joel Dahl To: Ariff Abdullah In-Reply-To: <20051103195008.5a7d06d8.skywizard@MyBSD.org.my> References: <20051103101614.GE8008@smelt.bkarp.co.uk> <20051103184157.1e434bd9.skywizard@MyBSD.org.my> <20051103112704.GA669@smelt.bkarp.co.uk> <20051103195008.5a7d06d8.skywizard@MyBSD.org.my> Content-Type: text/plain Date: Thu, 03 Nov 2005 15:07:53 +0100 Message-Id: <1131026873.688.3.camel@dude.automatvapen.se> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, Brad Karp Subject: Re: ICH7 audio support? 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: Thu, 03 Nov 2005 14:07:51 -0000 On Thu, 2005-11-03 at 19:50 +0800, Ariff Abdullah wrote: > On Thu, 3 Nov 2005 11:27:04 +0000 Brad Karp wrote: > > Thanks, Ariff. > > > > When I received your reply, I was already done hacking the device ID > > for the ICH7 into /sys/dev/sound/pci/ich.c. :-) > > > > I'm happy to report that with this hack, snd_ich appears to support > > the ICH7 just fine for both audio input and output! > > > Nice :) > > Can I have the diff -u ? > > There is a cumulative patch and fixes for various issues. You can get > it from http://people.freebsd.org/~ariff/ . Looks like a lot of changes -- are you going to commit that patch to CURRENT soon? -- Joel - joel at FreeBSD dot org From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 14:15:28 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1823B16A41F; Thu, 3 Nov 2005 14:15:28 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7733143D5C; Thu, 3 Nov 2005 14:15:26 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 893646CC27; Thu, 3 Nov 2005 22:17:19 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26128-03; Thu, 3 Nov 2005 22:17:18 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id E33766CC25; Thu, 3 Nov 2005 22:17:17 +0800 (MYT) Date: Thu, 3 Nov 2005 22:15:35 +0800 From: Ariff Abdullah To: Joel Dahl Message-Id: <20051103221535.75b4f583.skywizard@MyBSD.org.my> In-Reply-To: <1131026873.688.3.camel@dude.automatvapen.se> References: <20051103101614.GE8008@smelt.bkarp.co.uk> <20051103184157.1e434bd9.skywizard@MyBSD.org.my> <20051103112704.GA669@smelt.bkarp.co.uk> <20051103195008.5a7d06d8.skywizard@MyBSD.org.my> <1131026873.688.3.camel@dude.automatvapen.se> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: ICH7 audio support? 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: Thu, 03 Nov 2005 14:15:28 -0000 On Thu, 03 Nov 2005 15:07:53 +0100 Joel Dahl wrote: > On Thu, 2005-11-03 at 19:50 +0800, Ariff Abdullah wrote: > > On Thu, 3 Nov 2005 11:27:04 +0000 Brad Karp > > wrote: > > > Thanks, Ariff. > > > > > > When I received your reply, I was already done hacking the > > > device ID for the ICH7 into /sys/dev/sound/pci/ich.c. :-) > > > > > > I'm happy to report that with this hack, snd_ich appears to > > > support the ICH7 just fine for both audio input and output! > > > > > Nice :) > > > > Can I have the diff -u ? > > > > There is a cumulative patch and fixes for various issues. You can > > get it from http://people.freebsd.org/~ariff/ . > > Looks like a lot of changes -- are you going to commit that patch to > CURRENT soon? > Part of it already commited to -CURRENT. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 17:16:16 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C34016A420 for ; Thu, 3 Nov 2005 17:16:16 +0000 (GMT) (envelope-from danny@ricin.com) Received: from smtpq2.tilbu1.nb.home.nl (smtpq2.tilbu1.nb.home.nl [213.51.146.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8813F43D48 for ; Thu, 3 Nov 2005 17:16:14 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.146.190] (port=53857 helo=smtp1.tilbu1.nb.home.nl) by smtpq2.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1EXihB-0007LU-Pk for freebsd-multimedia@freebsd.org; Thu, 03 Nov 2005 18:16:13 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:55472 helo=desktop.homenet) by smtp1.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1EXihA-0004uY-Tq for freebsd-multimedia@freebsd.org; Thu, 03 Nov 2005 18:16:12 +0100 From: Danny Pansters To: freebsd-multimedia@freebsd.org User-Agent: KMail/1.8.2 References: <200511010135.04195.danny@ricin.com> <20051102112700.793e842b@it.buh.tecnik93.com> <20051102122504.3a7684de@it.buh.tecnik93.com> In-Reply-To: <20051102122504.3a7684de@it.buh.tecnik93.com> X-Face: :N, f2_*44g[tRY8Y-gL2zi`G|<6SpFjTeHt|V5LO6Yl2E7yAfEh{E6-8pqxUFX"l)=?iso-8859-1?q?Nm8y=7E=0A=09IWJSAWQ=7D+=3DpP=7CT=5D?=@sy1sz%h)*CW6gtbp]"fe@MjICtIUo.0, CH~{[R4PXSyL MIME-Version: 1.0 Content-Disposition: inline Date: Thu, 3 Nov 2005 18:14:19 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200511031814.19214.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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: Thu, 03 Nov 2005 17:16:16 -0000 (forgot to CC multimedia@, here goes) On Wednesday 2 November 2005 10:25, you wrote: > > FreeBSD 6.0-RC1 #1: Fri Oct 28 10:49:49 EEST 2005 and today ports. > > > > While make'ing the port: > > > > ===> Installing for py24-kde-4.0.0_2 > > ===> py24-kde-4.0.0_2 depends on executable: pyuic - found > > ===> py24-kde-4.0.0_2 depends on file: /usr/local/bin/python2.4 - > > found ===> py24-kde-4.0.0_2 depends on file: /usr/X11R6/bin/moc - > > found ===> Generating temporary packing list > > ===> Checking if x11-toolkits/py-kde already installed > > .......... > > cp -f contrib/kdepyuic /usr/local/bin/kdepyuic > > ( install -o root -g wheel -m > > 555 > > /usr/ports/x11-toolkits/py-kde/work/PyKDE-snapshot20050829/contrib/kdepyu > >ic var/ports/kbtv/bin && /usr/local/bin/python2.4 -c "import > > pykdeconfig, dcopexport" && /usr/local/bin/python2.4 -O -c "import > > pykdeconfig, dcopexport" ) Traceback (most recent call last): File > > "", line 1, in ? ImportError: No module named pykdeconfig *** > > Error code 1 > > > > Stop in /usr/ports/x11-toolkits/py-kde. > > *** Error code 1 > > After running make in /usr/ports/x11-toolkits/py-kde and I chose > default options it installed OK. This is, I believe, a common problem with some python ports that really need to be installed in PYTHON_SITELIBDIR. It's hard to make them respect nonstandard pefixes, unless you do something like putting a .pth file in PYTHON_SITELIBDIR that points to the actual location (and so provides a path for python). IMO that only makes things worse, because then the port installs something in a completely different place from the nonstandard prefix. > However: > > /var/ports/kbtv/bin/kbtv > > Traceback (most recent call last): > File "kbtv.py", line 428, in ? > btc = BTControl() > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 115, in > __init__ self.probeTuner() > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 146, in > probeTuner vsrc = int(__btcontrol_get__("videosource")) > ValueError: invalid literal for int(): btcontrol: not found > > > Note that I've build with PREFIX=/var/ports/kbtv You're using a non-i386 box, right? This is due to a bug in btcontrol.c. I forgot to include . I just uploaded a new tarball alpha2 (note that the port changed as well). Thanks very much for testing! From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 17:39:43 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3DE816A41F for ; Thu, 3 Nov 2005 17:39:43 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id 8EB5843D46 for ; Thu, 3 Nov 2005 17:39:42 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 7964 invoked from network); 3 Nov 2005 17:39:38 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 3 Nov 2005 17:39:38 -0000 Received: (qmail 5876 invoked by uid 89); 3 Nov 2005 17:39:38 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 3 Nov 2005 17:39:38 -0000 Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 96976B8E3; Thu, 3 Nov 2005 19:39:38 +0200 (EET) Date: Thu, 3 Nov 2005 19:39:38 +0200 From: Ion-Mihai Tetcu To: Danny Pansters Message-ID: <20051103193938.4b9fd65d@it.buh.tecnik93.com> In-Reply-To: <200511031814.19214.danny@ricin.com> References: <200511010135.04195.danny@ricin.com> <20051102112700.793e842b@it.buh.tecnik93.com> <20051102122504.3a7684de@it.buh.tecnik93.com> <200511031814.19214.danny@ricin.com> X-Mailer: Sylpheed-Claws 1.9.15 (GTK+ 2.6.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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: Thu, 03 Nov 2005 17:39:44 -0000 On Thu, 3 Nov 2005 18:14:19 +0000 Danny Pansters wrote: > (forgot to CC multimedia@, here goes) > > On Wednesday 2 November 2005 10:25, you wrote: > > > FreeBSD 6.0-RC1 #1: Fri Oct 28 10:49:49 EEST 2005 and today ports. > > > > > > While make'ing the port: > > > [ Installing for py24-kde-4.0.0_2 problem ] > > However: > > > /var/ports/kbtv/bin/kbtv > > > > Traceback (most recent call last): > > File "kbtv.py", line 428, in ? > > btc = BTControl() > > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 115, in > > __init__ self.probeTuner() > > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 146, in > > probeTuner vsrc = int(__btcontrol_get__("videosource")) > > ValueError: invalid literal for int(): btcontrol: not found > > > > > > Note that I've build with PREFIX=/var/ports/kbtv > > You're using a non-i386 box, right? This is due to a bug in > btcontrol.c. I forgot to include . I just uploaded a new > tarball alpha2 (note that the port changed as well). # uname -rp 6.0-RC1 i386 I'll try the new version tonight. > Thanks very much for testing! Thanks for your work :) -- IOnut Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 17:51:20 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B62616A41F for ; Thu, 3 Nov 2005 17:51:20 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id 601FE43D45 for ; Thu, 3 Nov 2005 17:51:19 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 10190 invoked from network); 3 Nov 2005 17:51:16 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 3 Nov 2005 17:51:16 -0000 Received: (qmail 7117 invoked by uid 89); 3 Nov 2005 17:51:16 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 3 Nov 2005 17:51:16 -0000 Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id AA0A3B8E3; Thu, 3 Nov 2005 19:51:15 +0200 (EET) Date: Thu, 3 Nov 2005 19:51:15 +0200 From: Ion-Mihai Tetcu To: Danny Pansters Message-ID: <20051103195115.2ab5eb99@it.buh.tecnik93.com> In-Reply-To: <200511031814.19214.danny@ricin.com> References: <200511010135.04195.danny@ricin.com> <20051102112700.793e842b@it.buh.tecnik93.com> <20051102122504.3a7684de@it.buh.tecnik93.com> <200511031814.19214.danny@ricin.com> X-Mailer: Sylpheed-Claws 1.9.15 (GTK+ 2.6.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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: Thu, 03 Nov 2005 17:51:20 -0000 On Thu, 3 Nov 2005 18:14:19 +0000 Danny Pansters wrote: > I just uploaded a new tarball alpha2 (note that the port changed as well). You forgot to change the distinfo -- IOnut Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 18:11:55 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79C3016A43B for ; Thu, 3 Nov 2005 18:11:55 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id 792DD43D4C for ; Thu, 3 Nov 2005 18:11:53 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 13692 invoked from network); 3 Nov 2005 18:11:50 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 3 Nov 2005 18:11:50 -0000 Received: (qmail 9329 invoked by uid 89); 3 Nov 2005 18:11:49 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 3 Nov 2005 18:11:49 -0000 Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id B5400B8E5; Thu, 3 Nov 2005 20:11:50 +0200 (EET) Date: Thu, 3 Nov 2005 20:11:50 +0200 From: Ion-Mihai Tetcu To: Ion-Mihai Tetcu Message-ID: <20051103201150.59243b27@it.buh.tecnik93.com> In-Reply-To: <20051103193938.4b9fd65d@it.buh.tecnik93.com> References: <200511010135.04195.danny@ricin.com> <20051102112700.793e842b@it.buh.tecnik93.com> <20051102122504.3a7684de@it.buh.tecnik93.com> <200511031814.19214.danny@ricin.com> <20051103193938.4b9fd65d@it.buh.tecnik93.com> X-Mailer: Sylpheed-Claws 1.9.15 (GTK+ 2.6.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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: Thu, 03 Nov 2005 18:11:55 -0000 On Thu, 3 Nov 2005 19:39:38 +0200 Ion-Mihai Tetcu wrote: > > > > /var/ports/kbtv/bin/kbtv > > > > > > Traceback (most recent call last): > > > File "kbtv.py", line 428, in ? > > > btc = BTControl() > > > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 115, > > > in __init__ self.probeTuner() > > > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 146, > > > in probeTuner vsrc = int(__btcontrol_get__("videosource")) > > > ValueError: invalid literal for int(): btcontrol: not found > > > > > > > > > Note that I've build with PREFIX=/var/ports/kbtv > > > > You're using a non-i386 box, right? This is due to a bug in > > btcontrol.c. I forgot to include . I just uploaded a > > new tarball alpha2 (note that the port changed as well). > > # uname -rp 6.0-RC1 i386 The same (minus line numbers). I have the feeling it's not PREFIX clean. On desintall: root@it> /usr/ports/multimedia/kbtv [20:01:25] 0 # make PREFIX=/var/ports/kbtv deinstall ===> Deinstalling for multimedia/kbtv ===> Deinstalling kbtv-1.0 pkg_delete: file '/var/ports/kbtv/share/applications/kde/kbtv.desktop' doesn't exist pkg_delete: file '/var/ports/kbtv/@comment share/apps/kbtv/ui' doesn't exist pkg_delete: unable to completely remove directory '/var/ports/kbtv/@comment share/apps/kbtv/ui' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) BTW, portlint complains a lot(manly cosmetics). -- IOnut Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 19:40:37 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F2C016A41F for ; Thu, 3 Nov 2005 19:40:37 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id D628643D46 for ; Thu, 3 Nov 2005 19:40:32 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 27057 invoked from network); 3 Nov 2005 19:40:29 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 3 Nov 2005 19:40:29 -0000 Received: (qmail 18250 invoked by uid 89); 3 Nov 2005 19:40:29 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 3 Nov 2005 19:40:29 -0000 Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 9CE42B8E5; Thu, 3 Nov 2005 21:40:29 +0200 (EET) Date: Thu, 3 Nov 2005 21:40:29 +0200 From: Ion-Mihai Tetcu To: Ion-Mihai Tetcu Message-ID: <20051103214029.13b06e99@it.buh.tecnik93.com> In-Reply-To: <20051103201150.59243b27@it.buh.tecnik93.com> References: <200511010135.04195.danny@ricin.com> <20051102112700.793e842b@it.buh.tecnik93.com> <20051102122504.3a7684de@it.buh.tecnik93.com> <200511031814.19214.danny@ricin.com> <20051103193938.4b9fd65d@it.buh.tecnik93.com> <20051103201150.59243b27@it.buh.tecnik93.com> X-Mailer: Sylpheed-Claws 1.9.15 (GTK+ 2.6.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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: Thu, 03 Nov 2005 19:40:37 -0000 On Thu, 3 Nov 2005 20:11:50 +0200 Ion-Mihai Tetcu wrote: > On Thu, 3 Nov 2005 19:39:38 +0200 > Ion-Mihai Tetcu wrote: > > > > > > /var/ports/kbtv/bin/kbtv > > > > > > > > Traceback (most recent call last): > > > > File "kbtv.py", line 428, in ? > > > > btc = BTControl() > > > > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 115, > > > > in __init__ self.probeTuner() > > > > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 146, > > > > in probeTuner vsrc = int(__btcontrol_get__("videosource")) > > > > ValueError: invalid literal for int(): btcontrol: not found > > > > > > > > > > > > Note that I've build with PREFIX=/var/ports/kbtv > > > > > > You're using a non-i386 box, right? This is due to a bug in > > > btcontrol.c. I forgot to include . I just uploaded a > > > new tarball alpha2 (note that the port changed as well). > > > > # uname -rp 6.0-RC1 i386 > > The same (minus line numbers). > > I have the feeling it's not PREFIX clean. Yup. Installed with standard PREFIX it starts OK. # sysctl hw.bt848. hw.bt848.slow_msp_audio: -1 hw.bt848.format: -1 hw.bt848.reverse_mute: -1 hw.bt848.tuner: 10 hw.bt848.card: 11 > cat .mplayer/config # Write your default config options here! skin = Blue fs = no tv=driver=bsdbt848:width=768:height=576:device=/dev/vbi:input=1:norm=PAL:chanlist=europe-east:channels=E8-A1,E9-TVR1,E11-TVR2,SE19-B1,SR2-NationaTV,E10-Prima,E12-ProTV,SE3-NationalTv,25-TVRCultural,SE11-AXN,SE6-Halmark,SE10-Cartoon/TCM,22-ProCinema,SE4-RealitateaTv,SE7-A3,27-N24,37-EuroNews,S23-BBCWorld,23-CNN,SE17-EuroSport,SE18-Discovery,24-Senso,SE5-NationalGeographic,SE14-AnimalPlanet,S22-Mezzo,SE8-TvK,E5-U,SE15-Animax/CherryMusic,26-VH1,SE2-MTv,28-TV5,S26-F2,SE20-Jetix/ESPN,S25-Extreme,29-Explorer,30-FashionTv,32-Romantica,33-DDTV,35-Duna,36-RaiUno,E6-RCS,E7-Acasa,SE16-OTv,S27-TVE,S28-Pro7,S29-TeleShop,21-EtnoTV,S21-CanalTeleshopTv,S24-RTL:audioid=1 With this settings ``mplayer tv://'' works as it should. Now the problem is that it doesn't show any image: bktv window is green, it opens a blue mplayer window and that's all. I get the sound OK for the first channel (E8-A1). > btcontrol get videosource; btcontrol get channelset; btcontrol get channel; btcontrol get frequency; btcontrol get audiosource 14001 (BTW, could we have: a new line \n at after the outputed number; eventually ``btcontrol get all'' ). This is console output: > kbtv MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE Playing tv://. TV detected! ;-) Selected driver: bsdbt848 name: Brooktree848 Support author: Charles Henrich comment: in development TV channel names detected. Selected channel: E8 - A1 (freq: 196.250) MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE Failed to open /dev/rtc: Device busy (it should be readable by the user.) Playing tv://. TV detected! ;-) Selected driver: dummy name: NULL-TV author: alex Selected input hasn't got a tuner! ID_VIDEO_ID=0 ID_FILENAME=tv:// ID_VIDEO_FORMAT=YV12 ID_VIDEO_BITRATE=0 ID_VIDEO_WIDTH=768 ID_VIDEO_HEIGHT=576 ID_VIDEO_FPS=25.000 ID_VIDEO_ASPECT=0.0000 ID_LENGTH=0 vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0" => local display) Opening video filter: [crop w=768 h=574] Crop: 768 x 574, -1 ; -1 ========================================================================== Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 768 x 576 (preferred csp: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. VO: [x11] 768x574 => 768x574 Planar YV12 [zoom] X11 error: BadAccess during XSelectInput Call X11 error: The 'ButtonPressMask' mask of specified window has probably already used by another appication (see man XSelectInput) X11 error: MPlayer discards mouse control (reconfiguring) X11 error: BadAccess during XSelectInput Call X11 error: The 'ButtonPressMask' mask of specified window has probably already used by another appication (see man XSelectInput) X11 error: MPlayer discards mouse control (reconfiguring) SwScaler: using unscaled Planar YV12 -> BGRA special converter Selected video codec: [rawyv12] vfm:raw (RAW YV12) ========================================================================== Audio: no sound Starting playback... Selected font is fixed-width. ID_VIDEO_ID=0 START ID_FILENAME=tv:// ID_VIDEO_FORMAT=UYVY ID_VIDEO_BITRATE=0 ID_VIDEO_WIDTH=768 ID_VIDEO_HEIGHT=576 ID_VIDEO_FPS=25.000 ID_VIDEO_ASPECT=0.0000 ID_LENGTH=0 vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0" => local display) Opening video filter: [crop w=768 h=574] Crop: 768 x 574, -1 ; -1 ========================================================================== Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 768 x 576 (preferred csp: Packed UYVY) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] VDec: using Packed UYVY as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 1 SwScaler: reducing / aligning filtersize 1 -> 1 SwScaler: BICUBIC scaler, from Packed UYVY to BGRA using MMX2 VO: [x11] 768x574 => 768x574 BGRA [zoom] Selected video codec: [rawuyvy] vfm:raw (RAW UYVY) ========================================================================== Audio: no sound Starting playback... Selected font is fixed-width. >>>>>>>>>> Here I try to change the rendering from the menu to Overlay: ID_VIDEO_ID=0 START ID_FILENAME=tv:// ID_VIDEO_FORMAT=UYVY ID_VIDEO_BITRATE=0 ID_VIDEO_WIDTH=768 ID_VIDEO_HEIGHT=576 ID_VIDEO_FPS=25.000 ID_VIDEO_ASPECT=0.0000 ID_LENGTH=0 vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0" => local display) Opening video filter: [crop w=768 h=574] Crop: 768 x 574, -1 ; -1 ========================================================================== Opening video decoder: [raw] RAW Uncompressed Video VDec: vo config request - 768 x 576 (preferred csp: Packed UYVY) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] VDec: using Packed UYVY as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 1 SwScaler: reducing / aligning filtersize 1 -> 1 SwScaler: BICUBIC scaler, from Packed UYVY to BGRA using MMX2 VO: [x11] 768x574 => 768x574 BGRA [zoom] Selected video codec: [rawuyvy] vfm:raw (RAW UYVY) ========================================================================== Audio: no sound Starting playback... Selected font is fixed-width. MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE Failed to open /dev/rtc: Device busy (it should be readable by the user.) Playing tv://. TV detected! ;-) Selected driver: bsdbt848 name: Brooktree848 Support author: Charles Henrich comment: in development bktr open: Device busy dsp open: Device busy setfrag: Bad file descriptor Error: No video input present! Exiting... (End of file) >>>>>>>>>>>>>> and then to Direct kill: 71369: No such process MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1) Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE Failed to open /dev/rtc: Device busy (it should be readable by the user.) Playing tv://. TV detected! ;-) Selected driver: bsdbt848 name: Brooktree848 Support author: Charles Henrich comment: in development bktr open: Device busy dsp open: Device busy setfrag: Bad file descriptor Error: No video input present! Exiting... (End of file) All this time I get the sound OK. If I remove .mplayer/config the needed params are reseted when I open bktv. Irrespective if I set them via btcontrol or not, the frequency scanner doesn't find enything nor can I edit the channel list by hand (first 2 buttons are disabled, I have only 4 channels and can only delete them). Any hints ? -- IOnut Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 20:37:02 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6143D16A41F for ; Thu, 3 Nov 2005 20:37:02 +0000 (GMT) (envelope-from danny@ricin.com) Received: from smtpq3.groni1.gr.home.nl (smtpq3.groni1.gr.home.nl [213.51.130.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id E75B143D49 for ; Thu, 3 Nov 2005 20:37:01 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.130.188] (port=36059 helo=smtp3.groni1.gr.home.nl) by smtpq3.groni1.gr.home.nl with esmtp (Exim 4.30) id 1EXlpU-0001na-6w; Thu, 03 Nov 2005 21:37:00 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:51018 helo=desktop.homenet) by smtp3.groni1.gr.home.nl with esmtp (Exim 4.30) id 1EXlpS-0008Rt-QY; Thu, 03 Nov 2005 21:36:58 +0100 From: Danny Pansters To: Ion-Mihai Tetcu Date: Thu, 3 Nov 2005 21:35:04 +0000 User-Agent: KMail/1.8.2 References: <200511010135.04195.danny@ricin.com> <200511031814.19214.danny@ricin.com> <20051103195115.2ab5eb99@it.buh.tecnik93.com> In-Reply-To: <20051103195115.2ab5eb99@it.buh.tecnik93.com> X-Face: :N, f2_*44g[tRY8Y-gL2zi`G|<6SpFjTeHt|V5LO6Yl2E7yAfEh{E6-8pqxUFX"l)=?utf-8?q?Nm8y=7E=0A=09IWJSAWQ=7D+=3DpP=7CT=5D?=@sy1sz%h)*CW6gtbp]"fe@MjICtIUo.0, CH~{[R4PXSyL MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511032135.05167.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Cc: freebsd-multimedia@freebsd.org Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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: Thu, 03 Nov 2005 20:37:02 -0000 On Thursday 3 November 2005 17:51, you wrote: > On Thu, 3 Nov 2005 18:14:19 +0000 > > Danny Pansters wrote: > > I just uploaded a new tarball alpha2 (note that the port changed as > > well). > > You forgot to change the distinfo Oops. Done now. I will also make a shar. Thanks From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 22:57:52 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D31D16A41F for ; Thu, 3 Nov 2005 22:57:52 +0000 (GMT) (envelope-from danny@ricin.com) Received: from smtpq1.tilbu1.nb.home.nl (smtpq1.tilbu1.nb.home.nl [213.51.146.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88A8A43D46 for ; Thu, 3 Nov 2005 22:57:51 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.146.189] (port=43920 helo=smtp2.tilbu1.nb.home.nl) by smtpq1.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1EXo1l-00005u-Rm; Thu, 03 Nov 2005 23:57:49 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:56199 helo=desktop.homenet) by smtp2.tilbu1.nb.home.nl with esmtp (Exim 4.30) id 1EXo1k-00084R-CX; Thu, 03 Nov 2005 23:57:48 +0100 From: Danny Pansters To: Ion-Mihai Tetcu Date: Thu, 3 Nov 2005 23:55:54 +0000 User-Agent: KMail/1.8.2 References: <200511010135.04195.danny@ricin.com> <20051103201150.59243b27@it.buh.tecnik93.com> <20051103214029.13b06e99@it.buh.tecnik93.com> In-Reply-To: <20051103214029.13b06e99@it.buh.tecnik93.com> X-Face: :N, f2_*44g[tRY8Y-gL2zi`G|<6SpFjTeHt|V5LO6Yl2E7yAfEh{E6-8pqxUFX"l)=?utf-8?q?Nm8y=7E=0A=09IWJSAWQ=7D+=3DpP=7CT=5D?=@sy1sz%h)*CW6gtbp]"fe@MjICtIUo.0, CH~{[R4PXSyL MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511032355.54788.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Cc: freebsd-multimedia@freebsd.org Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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: Thu, 03 Nov 2005 22:57:52 -0000 On Thursday 3 November 2005 19:40, you wrote: > On Thu, 3 Nov 2005 20:11:50 +0200 > > Ion-Mihai Tetcu wrote: > > On Thu, 3 Nov 2005 19:39:38 +0200 > > > > Ion-Mihai Tetcu wrote: > > > > > > /var/ports/kbtv/bin/kbtv > > > > > > > > > > Traceback (most recent call last): > > > > > File "kbtv.py", line 428, in ? > > > > > btc = BTControl() > > > > > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 115, > > > > > in __init__ self.probeTuner() > > > > > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line 146, > > > > > in probeTuner vsrc = int(__btcontrol_get__("videosource")) > > > > > ValueError: invalid literal for int(): btcontrol: not found > > > > > > > > > > > > > > > Note that I've build with PREFIX=/var/ports/kbtv > > > > > > > > You're using a non-i386 box, right? This is due to a bug in > > > > btcontrol.c. I forgot to include . I just uploaded a > > > > new tarball alpha2 (note that the port changed as well). > > > > > > # uname -rp 6.0-RC1 i386 > > > > The same (minus line numbers). > > > > I have the feeling it's not PREFIX clean. I'll look into this later, it's not essential ATM. > Yup. Installed with standard PREFIX it starts OK. > > # sysctl hw.bt848. > hw.bt848.slow_msp_audio: -1 > hw.bt848.format: -1 > hw.bt848.reverse_mute: -1 > hw.bt848.tuner: 10 > hw.bt848.card: 11 > > > cat .mplayer/config > > # Write your default config options here! > skin = Blue > fs = no > tv=driver=bsdbt848:width=768:height=576:device=/dev/vbi:input=1:norm=PAL:ch >anlist=europe-east:channels=E8-A1,E9-TVR1,E11-TVR2,SE19-B1,SR2-NationaTV,E10 >-Prima,E12-ProTV,SE3-NationalTv,25-TVRCultural,SE11-AXN,SE6-Halmark,SE10-Car >toon/TCM,22-ProCinema,SE4-RealitateaTv,SE7-A3,27-N24,37-EuroNews,S23-BBCWorl >d,23-CNN,SE17-EuroSport,SE18-Discovery,24-Senso,SE5-NationalGeographic,SE14- >AnimalPlanet,S22-Mezzo,SE8-TvK,E5-U,SE15-Animax/CherryMusic,26-VH1,SE2-MTv,2 >8-TV5,S26-F2,SE20-Jetix/ESPN,S25-Extreme,29-Explorer,30-FashionTv,32-Romanti >ca,33-DDTV,35-Duna,36-RaiUno,E6-RCS,E7-Acasa,SE16-OTv,S27-TVE,S28-Pro7,S29-T >eleShop,21-EtnoTV,S21-CanalTeleshopTv,S24-RTL:audioid=1 > > With this settings ``mplayer tv://'' works as it should. > > > Now the problem is that it doesn't show any image: bktv window is > green, it opens a blue mplayer window and that's all. I get the sound > OK for the first channel (E8-A1). Can you try renaming or removing ~/.mplayer/config or commenting the "tv=" lines out. I've made no use of chanlist, instead I set freq=0 and chanlist and freq are mutually exclusive options. > > btcontrol get videosource; btcontrol get channelset; btcontrol get > > channel; btcontrol get frequency; btcontrol get audiosource > 14001 Note: btcontrol can use channelset but kbtv only uses frequencies. > (BTW, could we have: a new line \n at after the outputed number; > eventually ``btcontrol get all'' ). A \n sounds good, but it is not so handy if you want to call btcontrol from a program or script. I might change it... "get all" is a no. > This is console output: > > kbtv > > MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team > CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: > 1) Detected cache-line size is 64 bytes > CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 > Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE > > > Playing tv://. > TV detected! ;-) > Selected driver: bsdbt848 > name: Brooktree848 Support > author: Charles Henrich > comment: in development > TV channel names detected. > Selected channel: E8 - A1 (freq: 196.250) > MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team > CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: > 1) Detected cache-line size is 64 bytes > CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 > Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE > > > Failed to open /dev/rtc: Device busy (it should be readable by the user.) I assume that this is not an issue for you. I don't see this (but I use mplayer built with runtime cpu detection). > Playing tv://. > TV detected! ;-) > Selected driver: dummy > name: NULL-TV > author: alex > Selected input hasn't got a tuner! > ID_VIDEO_ID=0 > ID_FILENAME=tv:// > ID_VIDEO_FORMAT=YV12 > ID_VIDEO_BITRATE=0 > ID_VIDEO_WIDTH=768 > ID_VIDEO_HEIGHT=576 > ID_VIDEO_FPS=25.000 > ID_VIDEO_ASPECT=0.0000 > ID_LENGTH=0 > vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0" => local > display) Opening video filter: [crop w=768 h=574] > Crop: 768 x 574, -1 ; -1 > ========================================================================== > Opening video decoder: [raw] RAW Uncompressed Video > VDec: vo config request - 768 x 576 (preferred csp: Planar YV12) > VDec: using Planar YV12 as output csp (no 0) > Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. > VO: [x11] 768x574 => 768x574 Planar YV12 [zoom] > X11 error: BadAccess during XSelectInput Call > X11 error: The 'ButtonPressMask' mask of specified window has probably > already used by another appication (see man XSelectInput) X11 error: > MPlayer discards mouse control (reconfiguring) > X11 error: BadAccess during XSelectInput Call > X11 error: The 'ButtonPressMask' mask of specified window has probably > already used by another appication (see man XSelectInput) X11 error: > MPlayer discards mouse control (reconfiguring) > SwScaler: using unscaled Planar YV12 -> BGRA special converter > Selected video codec: [rawyv12] vfm:raw (RAW YV12) > ========================================================================== > Audio: no sound > Starting playback... > Selected font is fixed-width. > ID_VIDEO_ID=0 > START > ID_FILENAME=tv:// > ID_VIDEO_FORMAT=UYVY > ID_VIDEO_BITRATE=0 > ID_VIDEO_WIDTH=768 > ID_VIDEO_HEIGHT=576 > ID_VIDEO_FPS=25.000 > ID_VIDEO_ASPECT=0.0000 > ID_LENGTH=0 > vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0" => local > display) Opening video filter: [crop w=768 h=574] > Crop: 768 x 574, -1 ; -1 > ========================================================================== > Opening video decoder: [raw] RAW Uncompressed Video > VDec: vo config request - 768 x 576 (preferred csp: Packed UYVY) > Could not find matching colorspace - retrying with -vf scale... > Opening video filter: [scale] > VDec: using Packed UYVY as output csp (no 0) > Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. > SwScaler: reducing / aligning filtersize 1 -> 4 > SwScaler: reducing / aligning filtersize 1 -> 4 > SwScaler: reducing / aligning filtersize 1 -> 1 > SwScaler: reducing / aligning filtersize 1 -> 1 > > SwScaler: BICUBIC scaler, from Packed UYVY to BGRA using MMX2 > VO: [x11] 768x574 => 768x574 BGRA [zoom] > Selected video codec: [rawuyvy] vfm:raw (RAW UYVY) > ========================================================================== > Audio: no sound > Starting playback... > Selected font is fixed-width. > > > Here I try to change the rendering from the menu to Overlay: > > ID_VIDEO_ID=0 > START > ID_FILENAME=tv:// > ID_VIDEO_FORMAT=UYVY > ID_VIDEO_BITRATE=0 > ID_VIDEO_WIDTH=768 > ID_VIDEO_HEIGHT=576 > ID_VIDEO_FPS=25.000 > ID_VIDEO_ASPECT=0.0000 > ID_LENGTH=0 > vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0" => local > display) Opening video filter: [crop w=768 h=574] > Crop: 768 x 574, -1 ; -1 > ========================================================================== > Opening video decoder: [raw] RAW Uncompressed Video > VDec: vo config request - 768 x 576 (preferred csp: Packed UYVY) > Could not find matching colorspace - retrying with -vf scale... > Opening video filter: [scale] > VDec: using Packed UYVY as output csp (no 0) > Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. > SwScaler: reducing / aligning filtersize 1 -> 4 > SwScaler: reducing / aligning filtersize 1 -> 4 > SwScaler: reducing / aligning filtersize 1 -> 1 > SwScaler: reducing / aligning filtersize 1 -> 1 > > SwScaler: BICUBIC scaler, from Packed UYVY to BGRA using MMX2 > VO: [x11] 768x574 => 768x574 BGRA [zoom] > Selected video codec: [rawuyvy] vfm:raw (RAW UYVY) > ========================================================================== > Audio: no sound > Starting playback... > Selected font is fixed-width. > MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team > CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: > 1) Detected cache-line size is 64 bytes > CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 > Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE > > > Failed to open /dev/rtc: Device busy (it should be readable by the user.) > Playing tv://. > TV detected! ;-) > Selected driver: bsdbt848 > name: Brooktree848 Support > author: Charles Henrich > comment: in development > bktr open: Device busy > dsp open: Device busy > setfrag: Bad file descriptor ^^^^^^^ I dont know this one > Error: No video input present! Device busy happened/s often to me while messing with the code and testing. Usually after it had croaked, but there was an mplayer left hanging around or the driver was left in the cold (whatever that means ;) Waiting a few minutes actually helped most of the time (maybe even reboot). You can always run a manual mplayer -tv blahblah tv:// to see if bktr is back for business. Another thing I found out is that you can't unload bktr.ko. > > Exiting... (End of file) > > > and then to Direct > > kill: 71369: No such process Yeah, if mplayer drops out, everything goes down. > MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team > CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: > 1) Detected cache-line size is 64 bytes > CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 > Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE > > > Failed to open /dev/rtc: Device busy (it should be readable by the user.) > Playing tv://. > TV detected! ;-) > Selected driver: bsdbt848 > name: Brooktree848 Support > author: Charles Henrich > comment: in development > bktr open: Device busy > dsp open: Device busy > setfrag: Bad file descriptor > Error: No video input present! > > > Exiting... (End of file) > > > All this time I get the sound OK. > > > If I remove .mplayer/config the needed params are reseted when I open Could have written that earlier ;-) Can you verify that if config is removed you don't get this (from above): TV channel names detected. Selected channel: E8 - A1 (freq: 196.250) (just to be sure that it's not somewhere else as well). > bktv. Irrespective if I set them via btcontrol or not, the frequency > scanner doesn't find enything nor can I edit the channel list by hand > (first 2 buttons are disabled, I have only 4 channels and can only > delete them). > > > Any hints ? It may help if I explain a bit how it works: mplayer gets run like this (many parts omitted): mplayer -tv freq=0 tv:// After that btcontrol is used to change freqs (so that we don't need another mplayer) and other things. btaudio module handles audio, not mplayer. Only for changing rendering mplayer and with it the driver is restarted. If you run mplayer or fxtv as you normally do and then btcontrol set frequency 196 does that display A1 as it should? If that is the case I might be able to get away with removing the freq=0 part and just let whatever config is there take place, because everything after the initial start is done by frequency through btcontrol. And what does btcontrol get signal say at that freq? And if you btcontrol set frequency 0 (provided that works)? Concerning scanning: it may help to lower threshold. The "signal" is a bit of a constructed parameter representing status rather than a real signal (not all bits may be significant and so representing it as a percentage for a threshold is a bit of a stretch). The reason I use frequencies is because here in Holland almost everyone is on cable and the providers have their own frequency tables, and they are locally different. I've tried to use the channelset and it would produce channels alright but with many duplicates, that is more than one channel numbers with the same freq. So I am also not familiar with channelsets. This may be the same reason why the kmplayer author uses frequencies (but kmplayer restarts mplayer everytime you change frequency and bktr likes to freeze up if kicked to often too fast). Also, a (working) frequency scan should always get you your channels, though you have to name them yourself. Does the "hardware info" show the correct things? FWIW: with both my cards I didn't (have to) set any sysctls. The Miro I mostly use sets them all to -1, a wintv card I have sets tuner and card number, much like yours. If needed I will create a test script that gives me any parameter that might be suspect. And rinse and repeat. Eventually the %^*& thing is going to work. Perhaps for my first PyKDE experiment (or C for that matter) I shouldn't have picked something involving hardware :) Thanks From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 23:31:36 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7BF616A41F for ; Thu, 3 Nov 2005 23:31:36 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BC1C43D45 for ; Thu, 3 Nov 2005 23:31:36 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jA3NVgP16258 for freebsd-multimedia@freebsd.org; Thu, 3 Nov 2005 15:31:42 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id XAA01781; Thu, 3 Nov 2005 23:31:34 GMT Message-Id: <200511032331.XAA01781@sopwith.solgatos.com> To: freebsd-multimedia@freebsd.org Date: Thu, 03 Nov 2005 15:31:34 +0000 From: Dieter Subject: trying to convert mpeg2 to dv X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2005 23:31:36 -0000 I'm trying to convert some mpeg2 video to dv format. Looks like transcode should be able to do it, but transcode -x mpeg2 -y dvraw grinds away but doesn't generates any output, and transcode -x mpeg2 -y dv gives Segmentation fault. So I recompile transcode and look at the compiler warnings and find: libxio.c:707: warning: cast to pointer from integer of different size cat -n work/transcode-1.0.0rc1/libxio/libxio.c | grep 707 707 _handles[ret_fd]->data = (void *)open(pathname, flags, mode); I have to agree with the compiler, casting a file descriptor to a pointer seems wrong, and likely to generate a seg fault if "data" is later treated as a pointer. So, edit libxio.c add a debug printf to see if the code actually gets executed, type make and nothing happens. Nice makefile. So before I burn too much time chasing this, should transcode work the way I think it should, or am I doing something wrong? The transcode man page isn't clear on the difference between dv and dvraw? Are there alternatives to transcode I should be looking at? From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 3 23:51:03 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8D0B16A41F for ; Thu, 3 Nov 2005 23:51:03 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: from web30314.mail.mud.yahoo.com (web30314.mail.mud.yahoo.com [68.142.201.232]) by mx1.FreeBSD.org (Postfix) with SMTP id 6DCFD43D49 for ; Thu, 3 Nov 2005 23:51:03 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 76913 invoked by uid 60001); 3 Nov 2005 23:51:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Q28kwpGbmmdKenFVWPHYLcuU2o3V8EX21Wvdi9ypb/On/cnAjeJ2z43sAQ98gA79yhqe4xz9u6RzY/XeO2qa7DQRd41RucDkAWn4Hsegh25g5yHHPeA3WgMPfnkBuJ4Uydm4lk6++S3llyvqdiOsl2+XIBn+rDNHif2xTgGJwfg= ; Message-ID: <20051103235102.76911.qmail@web30314.mail.mud.yahoo.com> Received: from [213.54.76.1] by web30314.mail.mud.yahoo.com via HTTP; Thu, 03 Nov 2005 15:51:02 PST Date: Thu, 3 Nov 2005 15:51:02 -0800 (PST) From: Arne "Wörner" To: freebsd@sopwith.solgatos.com, freebsd-multimedia@freebsd.org In-Reply-To: <200511032331.XAA01781@sopwith.solgatos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: trying to convert mpeg2 to dv 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: Thu, 03 Nov 2005 23:51:04 -0000 Hi Dieter! > Are there alternatives to transcode I should be looking at? > I personally like mencoder/mplayer... But I do not know, if it knows DV format... Mencoder seems to use free MS Windows executables (DLLs or so?), if I understood that right... Bye Arne __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 00:27:46 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBE9E16A41F for ; Fri, 4 Nov 2005 00:27:46 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id 3CC5143D45 for ; Fri, 4 Nov 2005 00:27:44 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 1563 invoked from network); 4 Nov 2005 00:27:41 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 4 Nov 2005 00:27:41 -0000 Received: (qmail 11941 invoked by uid 89); 4 Nov 2005 00:27:40 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 4 Nov 2005 00:27:40 -0000 Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id 2212BB8E5; Fri, 4 Nov 2005 02:27:41 +0200 (EET) Date: Fri, 4 Nov 2005 02:27:40 +0200 From: Ion-Mihai Tetcu To: Danny Pansters Message-ID: <20051104022740.08a3c9e6@it.buh.tecnik93.com> In-Reply-To: <200511032355.54788.danny@ricin.com> References: <200511010135.04195.danny@ricin.com> <20051103201150.59243b27@it.buh.tecnik93.com> <20051103214029.13b06e99@it.buh.tecnik93.com> <200511032355.54788.danny@ricin.com> X-Mailer: Sylpheed-Claws 1.9.15 (GTK+ 2.6.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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: Fri, 04 Nov 2005 00:27:46 -0000 On Thu, 3 Nov 2005 23:55:54 +0000 Danny Pansters wrote: > On Thursday 3 November 2005 19:40, you wrote: > > On Thu, 3 Nov 2005 20:11:50 +0200 > > > > Ion-Mihai Tetcu wrote: > > > On Thu, 3 Nov 2005 19:39:38 +0200 > > > > > > Ion-Mihai Tetcu wrote: > > > > > > > /var/ports/kbtv/bin/kbtv > > > > > > > > > > > > Traceback (most recent call last): > > > > > > File "kbtv.py", line 428, in ? > > > > > > btc = BTControl() > > > > > > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line > > > > > > 115, in __init__ self.probeTuner() > > > > > > File "/var/ports/kbtv/share/apps/kbtv/btcontrol.py", line > > > > > > 146, in probeTuner vsrc = > > > > > > int(__btcontrol_get__("videosource")) ValueError: invalid > > > > > > literal for int(): btcontrol: not found > > > > > > > > > > > > > > > > > > Note that I've build with PREFIX=/var/ports/kbtv > > > > > > > > > > You're using a non-i386 box, right? This is due to a bug in > > > > > btcontrol.c. I forgot to include . I just > > > > > uploaded a new tarball alpha2 (note that the port changed as > > > > > well). > > > > > > > > # uname -rp 6.0-RC1 i386 > > > > > > The same (minus line numbers). > > > > > > I have the feeling it's not PREFIX clean. > > I'll look into this later, it's not essential ATM. > > > Yup. Installed with standard PREFIX it starts OK. > > > > # sysctl hw.bt848. > > hw.bt848.slow_msp_audio: -1 > > hw.bt848.format: -1 > > hw.bt848.reverse_mute: -1 > > hw.bt848.tuner: 10 > > hw.bt848.card: 11 > > > > > cat .mplayer/config > > > > # Write your default config options here! > > skin = Blue > > fs = no > > tv=driver=bsdbt848:width=768:height=576:device=/dev/vbi:input=1:norm=PAL:ch > >anlist=europe-east:channels=E8-A1,E9-TVR1,E11-TVR2,SE19-B1,SR2-NationaTV,E10 > >-Prima,E12-ProTV,SE3-NationalTv,25-TVRCultural,SE11-AXN,SE6-Halmark,SE10-Car > >toon/TCM,22-ProCinema,SE4-RealitateaTv,SE7-A3,27-N24,37-EuroNews,S23-BBCWorl > >d,23-CNN,SE17-EuroSport,SE18-Discovery,24-Senso,SE5-NationalGeographic,SE14- > >AnimalPlanet,S22-Mezzo,SE8-TvK,E5-U,SE15-Animax/CherryMusic,26-VH1,SE2-MTv,2 > >8-TV5,S26-F2,SE20-Jetix/ESPN,S25-Extreme,29-Explorer,30-FashionTv,32-Romanti > >ca,33-DDTV,35-Duna,36-RaiUno,E6-RCS,E7-Acasa,SE16-OTv,S27-TVE,S28-Pro7,S29-T > >eleShop,21-EtnoTV,S21-CanalTeleshopTv,S24-RTL:audioid=1 > > > > With this settings ``mplayer tv://'' works as it should. > > > > > > Now the problem is that it doesn't show any image: bktv window is > > green, it opens a blue mplayer window and that's all. I get the > > sound OK for the first channel (E8-A1). > > Can you try renaming or removing ~/.mplayer/config or commenting the > "tv=" lines out. I've made no use of chanlist, instead I set freq=0 > and chanlist and freq are mutually exclusive options. See bellow. > > > btcontrol get videosource; btcontrol get channelset; btcontrol > > > get > > > > channel; btcontrol get frequency; btcontrol get audiosource > > 14001 > > Note: btcontrol can use channelset but kbtv only uses frequencies. > > > (BTW, could we have: a new line \n at after the outputed number; > > eventually ``btcontrol get all'' ). > > A \n sounds good, but it is not so handy if you want to call > btcontrol from a program or script. I might change it... > > "get all" is a no. Or a -H (human) switch. It's really funny to switch to an other console to read the man page :) > > This is console output: > > > kbtv > > > > MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team > > CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, > > Stepping: 1) Detected cache-line size is 64 bytes > > CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 > > Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE > > > > > > Playing tv://. > > TV detected! ;-) > > Selected driver: bsdbt848 > > name: Brooktree848 Support > > author: Charles Henrich > > comment: in development > > TV channel names detected. > > Selected channel: E8 - A1 (freq: 196.250) > > MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team > > CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, > > Stepping: 1) Detected cache-line size is 64 bytes > > CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 > > Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE > > > > > > Failed to open /dev/rtc: Device busy (it should be readable by the > > user.) > > I assume that this is not an issue for you. I don't see this (but I > use mplayer built with runtime cpu detection). Yes, no problem. That stupid module used to panic my system when I upgrade the kernel until I recompile it. > > Playing tv://. > > TV detected! ;-) > > Selected driver: dummy > > name: NULL-TV > > author: alex > > Selected input hasn't got a tuner! > > ID_VIDEO_ID=0 > > ID_FILENAME=tv:// > > ID_VIDEO_FORMAT=YV12 > > ID_VIDEO_BITRATE=0 > > ID_VIDEO_WIDTH=768 > > ID_VIDEO_HEIGHT=576 > > ID_VIDEO_FPS=25.000 > > ID_VIDEO_ASPECT=0.0000 > > ID_LENGTH=0 > > vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0" => local > > display) Opening video filter: [crop w=768 h=574] > > Crop: 768 x 574, -1 ; -1 > > ========================================================================== > > Opening video decoder: [raw] RAW Uncompressed Video > > VDec: vo config request - 768 x 576 (preferred csp: Planar YV12) > > VDec: using Planar YV12 as output csp (no 0) > > Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. > > VO: [x11] 768x574 => 768x574 Planar YV12 [zoom] > > X11 error: BadAccess during XSelectInput Call > > X11 error: The 'ButtonPressMask' mask of specified window has > > probably already used by another appication (see man XSelectInput) > > X11 error: MPlayer discards mouse control (reconfiguring) > > X11 error: BadAccess during XSelectInput Call > > X11 error: The 'ButtonPressMask' mask of specified window has > > probably already used by another appication (see man XSelectInput) > > X11 error: MPlayer discards mouse control (reconfiguring) > > SwScaler: using unscaled Planar YV12 -> BGRA special converter > > Selected video codec: [rawyv12] vfm:raw (RAW YV12) > > ========================================================================== > > Audio: no sound > > Starting playback... > > Selected font is fixed-width. > > ID_VIDEO_ID=0 > > START > > ID_FILENAME=tv:// > > ID_VIDEO_FORMAT=UYVY > > ID_VIDEO_BITRATE=0 > > ID_VIDEO_WIDTH=768 > > ID_VIDEO_HEIGHT=576 > > ID_VIDEO_FPS=25.000 > > ID_VIDEO_ASPECT=0.0000 > > ID_LENGTH=0 > > vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0" => local > > display) Opening video filter: [crop w=768 h=574] > > Crop: 768 x 574, -1 ; -1 > > ========================================================================== > > Opening video decoder: [raw] RAW Uncompressed Video > > VDec: vo config request - 768 x 576 (preferred csp: Packed UYVY) > > Could not find matching colorspace - retrying with -vf scale... > > Opening video filter: [scale] > > VDec: using Packed UYVY as output csp (no 0) > > Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. > > SwScaler: reducing / aligning filtersize 1 -> 4 > > SwScaler: reducing / aligning filtersize 1 -> 4 > > SwScaler: reducing / aligning filtersize 1 -> 1 > > SwScaler: reducing / aligning filtersize 1 -> 1 > > > > SwScaler: BICUBIC scaler, from Packed UYVY to BGRA using MMX2 > > VO: [x11] 768x574 => 768x574 BGRA [zoom] > > Selected video codec: [rawuyvy] vfm:raw (RAW UYVY) > > ========================================================================== > > Audio: no sound > > Starting playback... > > Selected font is fixed-width. > > > > > > Here I try to change the rendering from the menu to Overlay: > > > > ID_VIDEO_ID=0 > > START > > ID_FILENAME=tv:// > > ID_VIDEO_FORMAT=UYVY > > ID_VIDEO_BITRATE=0 > > ID_VIDEO_WIDTH=768 > > ID_VIDEO_HEIGHT=576 > > ID_VIDEO_FPS=25.000 > > ID_VIDEO_ASPECT=0.0000 > > ID_LENGTH=0 > > vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0" => local > > display) Opening video filter: [crop w=768 h=574] > > Crop: 768 x 574, -1 ; -1 > > ========================================================================== > > Opening video decoder: [raw] RAW Uncompressed Video > > VDec: vo config request - 768 x 576 (preferred csp: Packed UYVY) > > Could not find matching colorspace - retrying with -vf scale... > > Opening video filter: [scale] > > VDec: using Packed UYVY as output csp (no 0) > > Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. > > SwScaler: reducing / aligning filtersize 1 -> 4 > > SwScaler: reducing / aligning filtersize 1 -> 4 > > SwScaler: reducing / aligning filtersize 1 -> 1 > > SwScaler: reducing / aligning filtersize 1 -> 1 > > > > SwScaler: BICUBIC scaler, from Packed UYVY to BGRA using MMX2 > > VO: [x11] 768x574 => 768x574 BGRA [zoom] > > Selected video codec: [rawuyvy] vfm:raw (RAW UYVY) > > ========================================================================== > > Audio: no sound > > Starting playback... > > Selected font is fixed-width. > > MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team > > CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, > > Stepping: 1) Detected cache-line size is 64 bytes > > CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 > > Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE > > > > > > Failed to open /dev/rtc: Device busy (it should be readable by the > > user.) Playing tv://. > > TV detected! ;-) > > Selected driver: bsdbt848 > > name: Brooktree848 Support > > author: Charles Henrich > > comment: in development > > bktr open: Device busy > > dsp open: Device busy > > setfrag: Bad file descriptor > ^^^^^^^ I dont know this one Permissions ? But since mplayer works ... > > Error: No video input present! > > Device busy happened/s often to me while messing with the code and > testing. Usually after it had croaked, but there was an mplayer left > hanging around or the driver was left in the cold (whatever that > means ;) Waiting a few minutes actually helped most of the time > (maybe even reboot). You can always run a manual mplayer -tv blahblah > tv:// to see if bktr is back for business. Another thing I found out > is that you can't unload bktr.ko. Yes, mplayer works. > > Exiting... (End of file) > > > > > > and then to Direct > > > > kill: 71369: No such process > > Yeah, if mplayer drops out, everything goes down. > > > MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team > > CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, > > Stepping: 1) Detected cache-line size is 64 bytes > > CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 > > Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE > > > > > > Failed to open /dev/rtc: Device busy (it should be readable by the > > user.) Playing tv://. > > TV detected! ;-) > > Selected driver: bsdbt848 > > name: Brooktree848 Support > > author: Charles Henrich > > comment: in development > > bktr open: Device busy > > dsp open: Device busy > > setfrag: Bad file descriptor > > Error: No video input present! > > > > > > Exiting... (End of file) > > > > > > All this time I get the sound OK. > > > > > > If I remove .mplayer/config the needed params are reseted when I > > open > > Could have written that earlier ;-) > Can you verify that if config is removed you don't get this (from > above): > > TV channel names detected. > Selected channel: E8 - A1 (freq: 196.250) > > (just to be sure that it's not somewhere else as well). Yes, confirmed. > > bktv. Irrespective if I set them via btcontrol or not, the frequency > > scanner doesn't find enything nor can I edit the channel list by > > hand (first 2 buttons are disabled, I have only 4 channels and can > > only delete them). > > > > > > Any hints ? > > It may help if I explain a bit how it works: mplayer gets run like > this (many parts omitted): mplayer -tv freq=0 tv:// After that > btcontrol is used to change freqs (so that we don't need another > mplayer) and other things. btaudio module handles audio, not mplayer. > Only for changing rendering mplayer and with it the driver is > restarted. > > If you run mplayer or fxtv as you normally do and then btcontrol set > frequency 196 does that display A1 as it should? If that is the case > I might be able to get away with removing the freq=0 part and just > let whatever config is there take place, because everything after the > initial start is done by frequency through btcontrol. Yes, it works. I believe that __btcontrol can't set the frequency (but I don't see anything in the console in this regard); however: while scanning the sound remains from the same channel (the first one on which I was when I quit mplayer so the channel is not changed, imo) and btcontrol set frequency xxx as user gives "Open %s for writing: Permission denied". You might want to drop freq=0 part anyway (I see no reason if I exit the app while on my favorite channel to have to move back again when I start it next time; I don't know why some all apps do this maybe some card nee to be "initialized" ? ) > And what does btcontrol get signal say at that freq? 108 > And if you btcontrol set frequency 0 (provided that works)? # btcontrol set frequency 0; btcontrol get signal 44 > Concerning scanning: it may help to lower threshold. The "signal" is > a bit of a constructed parameter representing status rather than a > real signal (not all bits may be significant and so representing it > as a percentage for a threshold is a bit of a stretch). Nop. > The reason I use frequencies is because here in Holland almost > everyone is on cable and the providers have their own frequency > tables, and they are locally different. I've tried to use the > channelset and it would produce channels alright but with many > duplicates, that is more than one channel numbers with the same freq. Same here ( it's because of overlapping standards and compatibility for different (older) TV sets. AFAIR). But as long as they're in standard that is not a problem, imo. > So I am also not familiar with channelsets. This may be the same > reason why the kmplayer author uses frequencies (but kmplayer > restarts mplayer everytime you change frequency and bktr likes to > freeze up if kicked to often too fast). Also, a (working) frequency > scan should always get you your channels, though you have to name > them yourself. True, if the increment step is small enough. You'll also catch a few FM radio stations if you don't use cable but an external antenna. > Does the "hardware info" show the correct things? This is a crappy card, no EEPROM so I force it via sysctl. > FWIW: with both my cards I didn't (have to) set any sysctls. The Miro > I mostly use sets them all to -1, a wintv card I have sets tuner and > card number, much like yours. > > If needed I will create a test script that gives me any parameter > that might be suspect. And rinse and repeat. Eventually the %^*& > thing is going to work. Perhaps for my first PyKDE experiment (or C > for that matter) I shouldn't have picked something involving > hardware :) Hey, at least no one can tell you "but it works on windows" :-) -- IOnut Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 05:51:31 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5097D16A420 for ; Fri, 4 Nov 2005 05:51:31 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7652C43D49 for ; Fri, 4 Nov 2005 05:51:30 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by wproxy.gmail.com with SMTP id i32so321457wra for ; Thu, 03 Nov 2005 21:51:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=VKYFjgjSm1SO1tqUc7DWnkvnG8Aal+phoI4zUG026DZ456kcLRnMJr7ohfIj2QX9WRq+Ih006TsWLAJM2k+agJNtrjttQF7QFw7VeDB8R73Cz/T7P9OBLFWfRl8+PYupljFT8TkvLomc/EpMuc1yDH+u+TVRcmumjGk3BiXJMZg= Received: by 10.54.143.14 with SMTP id q14mr1342609wrd; Thu, 03 Nov 2005 21:51:29 -0800 (PST) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id d75sm1522105wra.2005.11.03.21.51.27; Thu, 03 Nov 2005 21:51:29 -0800 (PST) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id jA45oj5m018218 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Nov 2005 14:50:46 +0900 (KST) (envelope-from yongari@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id jA45oeTT018217; Fri, 4 Nov 2005 14:50:40 +0900 (KST) (envelope-from yongari@gmail.com) Date: Fri, 4 Nov 2005 14:50:40 +0900 From: Pyun YongHyeon To: Brad Karp Message-ID: <20051104055040.GA17139@rndsoft.co.kr> References: <20051103101614.GE8008@smelt.bkarp.co.uk> <20051103184157.1e434bd9.skywizard@MyBSD.org.my> <20051103112704.GA669@smelt.bkarp.co.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <20051103112704.GA669@smelt.bkarp.co.uk> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org, Ariff Abdullah Subject: Re: ICH7 audio support? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2005 05:51:31 -0000 --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 03, 2005 at 11:27:04AM +0000, Brad Karp wrote: > > > 3) How back-compatible is the ICH7 audio hardware with previous > > > ICHes? > > > That is, is there any chance that merely by hacking the device > > > probe tables, I can "lie" to the current snd_ich driver that the > > > ICH7 is some earlier-model ICH, and get it to work? > > > > > ICH7 supposed to have new Intel High Definition Audio (HDA), which > > unfortunately isn't supported (yet). I'm not quite sure whether it is > > backward compatible with AC97, but you can try your luck hacking the > > driver (/usr/src/sys/dev/sound/pci/ich.c) by adding the appropriate > > pci id into ich_pci_probe() function. pciconf -l (chip=xxxx) should > > give you the appropriate value for that. > > Thanks, Ariff. > > When I received your reply, I was already done hacking the device ID > for the ICH7 into /sys/dev/sound/pci/ich.c. :-) > > I'm happy to report that with this hack, snd_ich appears to support > the ICH7 just fine for both audio input and output! > Ok. Would you try attached patch? It basically adds a new 80801GB AC97 audio id. to conventional ICH driver. As the driver now supports so many variants I'd like to make a table to ease of maintenance. The patch was generated against CURRENT. I don't have these hardwares so it's just guess work. -- Regards, Pyun YongHyeon --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ich.patch" --- sys/dev/sound/pci/ich.c.orig Mon Oct 10 15:27:49 2005 +++ sys/dev/sound/pci/ich.c Fri Nov 4 14:42:12 2005 @@ -41,11 +41,74 @@ #define ICH_DEFAULT_BUFSZ 16384 #define ICH_MAX_BUFSZ 65536 -#define SIS7012ID 0x70121039 /* SiS 7012 needs special handling */ -#define ICH4ID 0x24c58086 /* ICH4 needs special handling too */ -#define ICH5ID 0x24d58086 /* ICH5 needs to be treated as ICH4 */ -#define I6300ESBID 0x25a68086 /* 6300ESB needs to be treated as ICH4 */ -#define ICH6ID 0x266e8086 /* ICH6 needs to be treated as ICH4 */ +#define INTEL_VENDORID 0x8086 +#define SIS_VENDORID 0x1039 +#define NVIDIA_VENDORID 0x10de +#define AMD_VENDORID 0x1022 + +#define INTEL_82440MX 0x7195 +#define INTEL_82801AA 0x2415 +#define INTEL_82801AB 0x2425 +#define INTEL_82801BA 0x2445 +#define INTEL_82801CA 0x2485 +#define INTEL_82801DB 0x24c5 /* ICH4 needs special handling */ +#define INTEL_82801EB 0x24d5 /* ICH5 needs to be treated as ICH4 */ +#define INTEL_6300ESB 0x25a6 /* 6300ESB needs to be treated as ICH4 */ +#define INTEL_82801FB 0x266e /* ICH6 needs to be treated as ICH4 */ +#define INTEL_82801GB 0x27de /* ICH7 needs to be treated as ICH4 */ +#define SIS_7012 0x7012 /* SiS 7012 needs special handling */ +#define NVIDIA_NFORCE 0x01b1 +#define NVIDIA_NFORCE2 0x006a +#define NVIDIA_NFORCE2_400 0x008a +#define NVIDIA_NFORCE3 0x00da +#define NVIDIA_NFORCE3_250 0x00ea +#define AMD_768 0x7445 +#define AMD_8111 0x746d + +static const struct ich_type { + uint16_t vendor; + uint16_t devid; + uint32_t options; +#define PROBE_LOW 0x01 + char *name; +} ich_devs[] = { + { INTEL_VENDORID, INTEL_82440MX, 0, + "Intel 440MX" }, + { INTEL_VENDORID, INTEL_82801AA, 0, + "Intel ICH (82801AA)" }, + { INTEL_VENDORID, INTEL_82801AB, 0, + "Intel ICH (82801AB)" }, + { INTEL_VENDORID, INTEL_82801BA, 0, + "Intel ICH2 (82801BA)" }, + { INTEL_VENDORID, INTEL_82801CA, 0, + "Intel ICH3 (82801CA)" }, + { INTEL_VENDORID, INTEL_82801DB, PROBE_LOW, + "Intel ICH4 (82801DB)" }, + { INTEL_VENDORID, INTEL_82801EB, PROBE_LOW, + "Intel ICH5 (82801EB)" }, + { INTEL_VENDORID, INTEL_6300ESB, PROBE_LOW, + "Intel 6300ESB" }, + { INTEL_VENDORID, INTEL_82801FB, PROBE_LOW, + "Intel ICH6 (82801FB)" }, + { INTEL_VENDORID, INTEL_82801GB, PROBE_LOW, + "Intel ICH7 (82801GB)" }, + { SIS_VENDORID, SIS_7012, 0, + "SiS 7012" }, + { NVIDIA_VENDORID, NVIDIA_NFORCE, 0, + "nVidia nForce" }, + { NVIDIA_VENDORID, NVIDIA_NFORCE2, 0, + "nVidia nForce2" }, + { NVIDIA_VENDORID, NVIDIA_NFORCE2_400, 0, + "nVidia nForce2 400" }, + { NVIDIA_VENDORID, NVIDIA_NFORCE3, 0, + "nVidia nForce3" }, + { NVIDIA_VENDORID, NVIDIA_NFORCE3_250, 0, + "nVidia nForce3 250" }, + { AMD_VENDORID, AMD_768, 0, + "AMD-768" }, + { AMD_VENDORID, AMD_8111, 0, + "AMD-8111" } +}; /* buffer descriptor */ struct ich_desc { @@ -93,6 +156,8 @@ bus_addr_t desc_addr; struct intr_config_hook intrhook; int use_intrhook; + uint16_t vendor; + uint16_t devid; }; /* -------------------------------------------------------------------- */ @@ -586,10 +651,10 @@ if ((stat & ICH_GLOB_STA_PCR) == 0) { /* ICH4/ICH5 may fail when busmastering is enabled. Continue */ - if ((pci_get_devid(sc->dev) != ICH4ID) && - (pci_get_devid(sc->dev) != ICH5ID) && - (pci_get_devid(sc->dev) != I6300ESBID) && - (pci_get_devid(sc->dev) != ICH6ID)) { + if (sc->vendor == INTEL_VENDORID && ( + sc->devid == INTEL_82801DB || sc->devid == INTEL_82801EB || + sc->devid == INTEL_6300ESB || sc->devid == INTEL_82801FB || + sc->devid == INTEL_82801GB)) { return ENXIO; } } @@ -616,88 +681,29 @@ static int ich_pci_probe(device_t dev) { - switch(pci_get_devid(dev)) { - case 0x71958086: - device_set_desc(dev, "Intel 443MX"); - return BUS_PROBE_DEFAULT; - - case 0x24158086: - device_set_desc(dev, "Intel ICH (82801AA)"); - return BUS_PROBE_DEFAULT; - - case 0x24258086: - device_set_desc(dev, "Intel ICH (82801AB)"); - return BUS_PROBE_DEFAULT; - - case 0x24458086: - device_set_desc(dev, "Intel ICH2 (82801BA)"); - return BUS_PROBE_DEFAULT; - - case 0x24858086: - device_set_desc(dev, "Intel ICH3 (82801CA)"); - return BUS_PROBE_DEFAULT; - - case ICH4ID: - device_set_desc(dev, "Intel ICH4 (82801DB)"); - return BUS_PROBE_LOW_PRIORITY; - - case ICH5ID: - device_set_desc(dev, "Intel ICH5 (82801EB)"); - return BUS_PROBE_LOW_PRIORITY; - - case I6300ESBID: - device_set_desc(dev, "Intel 6300ESB"); - return BUS_PROBE_LOW_PRIORITY; - - case ICH6ID: - device_set_desc(dev, "Intel ICH6 (82801FB)"); - return BUS_PROBE_LOW_PRIORITY; - - case SIS7012ID: - device_set_desc(dev, "SiS 7012"); - return BUS_PROBE_DEFAULT; - - case 0x01b110de: - device_set_desc(dev, "nVidia nForce"); - return BUS_PROBE_DEFAULT; - - case 0x006a10de: - device_set_desc(dev, "nVidia nForce2"); - return BUS_PROBE_DEFAULT; - - case 0x008a10de: - device_set_desc(dev, "nVidia nForce2 400"); - return BUS_PROBE_DEFAULT; - - case 0x00da10de: - device_set_desc(dev, "nVidia nForce3"); - return BUS_PROBE_DEFAULT; - - case 0x00ea10de: - device_set_desc(dev, "nVidia nForce3 250"); - return BUS_PROBE_DEFAULT; - - case 0x005910de: - device_set_desc(dev, "nVidia nForce4"); - return BUS_PROBE_DEFAULT; - - case 0x74451022: - device_set_desc(dev, "AMD-768"); - return BUS_PROBE_DEFAULT; - - case 0x746d1022: - device_set_desc(dev, "AMD-8111"); - return BUS_PROBE_DEFAULT; + int i; + uint16_t devid, vendor; - default: - return ENXIO; - } + vendor = pci_get_vendor(dev); + devid = pci_get_device(dev); + for (i = 0; i < sizeof(ich_devs)/sizeof(ich_devs[0]); i++) + if (vendor == ich_devs[i].vendor && + devid == ich_devs[i].devid) { + device_set_desc(dev, ich_devs[i].name); + /* allow a better driver to override us */ + if ((ich_devs[i].options & PROBE_LOW) != 0) + return (BUS_PROBE_LOW_PRIORITY); + return (BUS_PROBE_DEFAULT); + } + + return (ENXIO); } static int ich_pci_attach(device_t dev) { u_int16_t extcaps; + uint16_t devid, vendor; struct sc_info *sc; char status[SND_STATUSLEN]; @@ -709,11 +715,13 @@ bzero(sc, sizeof(*sc)); sc->dev = dev; + vendor = sc->vendor = pci_get_vendor(dev); + devid = sc->devid = pci_get_device(dev); /* * The SiS 7012 register set isn't quite like the standard ich. * There really should be a general "quirks" mechanism. */ - if (pci_get_devid(dev) == SIS7012ID) { + if (vendor == SIS_VENDORID && devid == SIS_7012) { sc->swap_reg = 1; sc->sample_size = 1; } else { @@ -728,7 +736,7 @@ * but doing so will mess things up here. ich4 has enough new * features it warrants it's own driver. */ - if (pci_get_devid(dev) == ICH4ID) { + if (vendor == INTEL_VENDORID && devid == INTEL_82801DB) { pci_write_config(dev, PCIR_ICH_LEGACY, ICH_LEGACY_ENABLE, 1); } @@ -738,9 +746,9 @@ */ pci_enable_busmaster(dev); - if (pci_get_devid(dev) == ICH5ID || - pci_get_devid(dev) == I6300ESBID || - pci_get_devid(dev) == ICH6ID) { + if (vendor == INTEL_VENDORID && (devid == INTEL_82801EB || + devid == INTEL_6300ESB || devid == INTEL_82801FB || + devid == INTEL_82801GB)) { sc->nambarid = PCIR_MMBAR; sc->nabmbarid = PCIR_MBBAR; sc->regtype = SYS_RES_MEMORY; --HcAYCG3uE/tztfnV-- From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 07:05:47 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ED7316A41F for ; Fri, 4 Nov 2005 07:05:47 +0000 (GMT) (envelope-from dinesh@alphaque.com) Received: from ns2.alphaque.com (ns2.alphaque.com [202.75.47.153]) by mx1.FreeBSD.org (Postfix) with SMTP id 6C3C743D46 for ; Fri, 4 Nov 2005 07:05:45 +0000 (GMT) (envelope-from dinesh@alphaque.com) Received: (qmail 5720 invoked by uid 0); 4 Nov 2005 07:05:43 -0000 Received: from lucifer.net-gw.com (HELO prophet.alphaque.com) (202.75.47.153) by lucifer.net-gw.com with SMTP; 4 Nov 2005 07:05:43 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by prophet.alphaque.com (8.13.4/8.13.4) with ESMTP id jA46hx02007278; Fri, 4 Nov 2005 14:43:59 +0800 (MYT) (envelope-from dinesh@alphaque.com) Message-ID: <436B032F.7000300@alphaque.com> Date: Fri, 04 Nov 2005 14:43:59 +0800 From: Dinesh Nair User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8b) Gecko/20050915 MIME-Version: 1.0 To: Brad Karp References: <20051103101614.GE8008@smelt.bkarp.co.uk> <20051103184157.1e434bd9.skywizard@MyBSD.org.my> <20051103112704.GA669@smelt.bkarp.co.uk> In-Reply-To: <20051103112704.GA669@smelt.bkarp.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, Ariff Abdullah Subject: Re: ICH7 audio support? 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: Fri, 04 Nov 2005 07:05:47 -0000 On 11/03/05 19:27 Brad Karp said the following: > When I received your reply, I was already done hacking the device ID > for the ICH7 into /sys/dev/sound/pci/ich.c. :-) > > I'm happy to report that with this hack, snd_ich appears to support > the ICH7 just fine for both audio input and output! when i hacked in support for ICH6, i had to add pci device id into ich_init(), ich_pci_probe() and ich_pci_attach(). it was a simple matter of finding what ICH4/ICH5 needed and just adding ICH6 into this. i presume ICH7 should be the same. this was on freebsd 4.x by the way. -- Regards, /\_/\ "All dogs go to heaven." dinesh@alphaque.com (0 0) http://www.alphaque.com/ +==========================----oOO--(_)--OOo----==========================+ | for a in past present future; do | | for b in clients employers associates relatives neighbours pets; do | | echo "The opinions here in no way reflect the opinions of my $a $b." | | done; done | +=========================================================================+ From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 07:08:38 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D14B216A41F for ; Fri, 4 Nov 2005 07:08:38 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C7CC43D46 for ; Fri, 4 Nov 2005 07:08:38 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jA478O07018470 for ; Fri, 4 Nov 2005 00:08:25 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 04 Nov 2005 00:08:42 -0700 (MST) Message-Id: <20051104.000842.51856780.imp@bsdimp.com> To: multimedia@freebsd.org From: "M. Warner Losh" X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 04 Nov 2005 00:08:25 -0700 (MST) Cc: Subject: Sound driver weirdness 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: Fri, 04 Nov 2005 07:08:39 -0000 I recently upgraded my only sony 505TS. Sound stopped working. xmms gives an error that the operation isn't supported by my device. I wonder what this means? From looking at the open to /dev/dsp, it appears that the channel reset isn't succeeding. Any pointers on tracking this down? vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (memory) unknown: can't assign resources (port) sbc0: at port 0x220-0x22f,0x388-0x38b,0x320-0x321 irq 5 drq 1,5 pnpid ESS1879 on isa0 sbc0: [GIANT-LOCKED] pcm0: on sbc0 pcm0: [GIANT-LOCKED] cbb1: Cannot allocate I/O unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (irq) unknown: can't assign resources (port) unknown: can't assign resources (irq) Timecounter "TSC" frequency 298422284 Hz quality 800 is the relevant bit of dmesg, I think. Warner From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 07:53:58 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 008CE16A41F for ; Fri, 4 Nov 2005 07:53:58 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7101243D45 for ; Fri, 4 Nov 2005 07:53:57 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id E45C66CC23; Fri, 4 Nov 2005 15:55:52 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 34101-08; Fri, 4 Nov 2005 15:55:51 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 49EC96CC22; Fri, 4 Nov 2005 15:55:50 +0800 (MYT) Date: Fri, 4 Nov 2005 15:54:08 +0800 From: Ariff Abdullah To: pyunyh@gmail.com, bkarp@cs.ucl.ac.uk Message-Id: <20051104155408.144141aa.skywizard@MyBSD.org.my> In-Reply-To: <20051104055040.GA17139@rndsoft.co.kr> References: <20051103101614.GE8008@smelt.bkarp.co.uk> <20051103184157.1e434bd9.skywizard@MyBSD.org.my> <20051103112704.GA669@smelt.bkarp.co.uk> <20051104055040.GA17139@rndsoft.co.kr> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: ICH7 audio support? 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: Fri, 04 Nov 2005 07:53:58 -0000 On Fri, 4 Nov 2005 14:50:40 +0900 Pyun YongHyeon wrote: > > Ok. Would you try attached patch? > It basically adds a new 80801GB AC97 audio id. to conventional ICH > driver. As the driver now supports so many variants I'd like to make > a table to ease of maintenance. The patch was generated against > CURRENT. I don't have these hardwares so it's just guess work. > Much better, thanks. Brad, please give http://people.freebsd.org/~ariff/test/ich.c.diff a try. That is specifically for RELENG_5. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 08:14:55 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF45616A41F for ; Fri, 4 Nov 2005 08:14:55 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32AEE43D4C for ; Fri, 4 Nov 2005 08:14:55 +0000 (GMT) (envelope-from pyunyh@gmail.com) Received: by wproxy.gmail.com with SMTP id i32so334203wra for ; Fri, 04 Nov 2005 00:14:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=YIuOVtusBLkBSbVeNkdOqKv/zOmd7iabhsbRo8MkqgRsAeC2kekDxd3h0/KIvyVntjj9nM6EYHhtE7P9gakayfRTek73Pg8RiD5O05L2nkZp2slBObn1dkRrPqzTTMD4xS1hCP6ckqBjBxbnacvIZ57GfN+jn31NrtvJ+V/IZSw= Received: by 10.54.145.19 with SMTP id s19mr1436624wrd; Fri, 04 Nov 2005 00:14:54 -0800 (PST) Received: from michelle.rndsoft.co.kr ( [211.32.202.217]) by mx.gmail.com with ESMTP id 8sm1062147wrl.2005.11.04.00.14.53; Fri, 04 Nov 2005 00:14:54 -0800 (PST) Received: from michelle.rndsoft.co.kr (localhost.rndsoft.co.kr [127.0.0.1]) by michelle.rndsoft.co.kr (8.13.1/8.13.1) with ESMTP id jA48ECS1018673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Nov 2005 17:14:12 +0900 (KST) (envelope-from yongari@gmail.com) Received: (from yongari@localhost) by michelle.rndsoft.co.kr (8.13.1/8.13.1/Submit) id jA48ECDj018672; Fri, 4 Nov 2005 17:14:12 +0900 (KST) (envelope-from yongari@gmail.com) Date: Fri, 4 Nov 2005 17:14:12 +0900 From: Pyun YongHyeon To: Ariff Abdullah Message-ID: <20051104081411.GB17139@rndsoft.co.kr> References: <20051103101614.GE8008@smelt.bkarp.co.uk> <20051103184157.1e434bd9.skywizard@MyBSD.org.my> <20051103112704.GA669@smelt.bkarp.co.uk> <20051104055040.GA17139@rndsoft.co.kr> <20051104155408.144141aa.skywizard@MyBSD.org.my> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051104155408.144141aa.skywizard@MyBSD.org.my> User-Agent: Mutt/1.4.2.1i Cc: freebsd-multimedia@freebsd.org, bkarp@cs.ucl.ac.uk Subject: Re: ICH7 audio support? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2005 08:14:55 -0000 On Fri, Nov 04, 2005 at 03:54:08PM +0800, Ariff Abdullah wrote: > On Fri, 4 Nov 2005 14:50:40 +0900 > Pyun YongHyeon wrote: > > > > Ok. Would you try attached patch? > > It basically adds a new 80801GB AC97 audio id. to conventional ICH > > driver. As the driver now supports so many variants I'd like to make > > a table to ease of maintenance. The patch was generated against > > CURRENT. I don't have these hardwares so it's just guess work. > > > Much better, thanks. > Oops. It seems that I omitted nForce4 support code. Sorry. You should add a entry for that case. -- Regards, Pyun YongHyeon From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 08:17:59 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC1DD16A41F for ; Fri, 4 Nov 2005 08:17:59 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C41143D4C for ; Fri, 4 Nov 2005 08:17:59 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 0B9946CC23; Fri, 4 Nov 2005 16:19:56 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 34415-05; Fri, 4 Nov 2005 16:19:54 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 57BE26CC22; Fri, 4 Nov 2005 16:19:54 +0800 (MYT) Date: Fri, 4 Nov 2005 16:18:11 +0800 From: Ariff Abdullah To: "M. Warner Losh" Message-Id: <20051104161811.4ca68aac.skywizard@MyBSD.org.my> In-Reply-To: <20051104.000842.51856780.imp@bsdimp.com> References: <20051104.000842.51856780.imp@bsdimp.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: multimedia@freebsd.org Subject: Re: Sound driver weirdness 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: Fri, 04 Nov 2005 08:17:59 -0000 On Fri, 04 Nov 2005 00:08:42 -0700 (MST) "M. Warner Losh" wrote: > I recently upgraded my only sony 505TS. >From .. to .. ? > Sound stopped working. > xmms gives an error that the operation isn't supported by my device. > I > wonder what this means? From looking at the open to /dev/dsp, it > appears that the channel reset isn't succeeding. Any pointers on > tracking this down? > > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on > isa0 unknown: can't assign resources (memory) > unknown: can't assign resources (port) > sbc0: at port 0x220-0x22f,0x388-0x38b,0x320-0x321 irq 5 > drq 1,5 pnpid ESS1879 on isa0 sbc0: [GIANT-LOCKED] > pcm0: on sbc0 > pcm0: [GIANT-LOCKED] > cbb1: Cannot allocate I/O > unknown: can't assign resources (port) > unknown: can't assign resources (port) > unknown: can't assign resources (port) > unknown: can't assign resources (irq) > unknown: can't assign resources (port) > unknown: can't assign resources (irq) > Timecounter "TSC" frequency 298422284 Hz quality 800 > > is the relevant bit of dmesg, I think. > what is the output of sysctl hw.snd ? -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 08:23:19 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 863EE16A41F for ; Fri, 4 Nov 2005 08:23:19 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3D6243D49 for ; Fri, 4 Nov 2005 08:23:18 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 443266CC2D; Fri, 4 Nov 2005 16:25:16 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 34415-06; Fri, 4 Nov 2005 16:25:14 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 9B2706CC25; Fri, 4 Nov 2005 16:25:14 +0800 (MYT) Date: Fri, 4 Nov 2005 16:23:32 +0800 From: Ariff Abdullah To: pyunyh@gmail.com Message-Id: <20051104162332.61449dc5.skywizard@MyBSD.org.my> In-Reply-To: <20051104081411.GB17139@rndsoft.co.kr> References: <20051103101614.GE8008@smelt.bkarp.co.uk> <20051103184157.1e434bd9.skywizard@MyBSD.org.my> <20051103112704.GA669@smelt.bkarp.co.uk> <20051104055040.GA17139@rndsoft.co.kr> <20051104155408.144141aa.skywizard@MyBSD.org.my> <20051104081411.GB17139@rndsoft.co.kr> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: ICH7 audio support? 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: Fri, 04 Nov 2005 08:23:19 -0000 On Fri, 4 Nov 2005 17:14:12 +0900 Pyun YongHyeon wrote: > On Fri, Nov 04, 2005 at 03:54:08PM +0800, Ariff Abdullah wrote: > > On Fri, 4 Nov 2005 14:50:40 +0900 > > Pyun YongHyeon wrote: > > > > > > Ok. Would you try attached patch? > > > It basically adds a new 80801GB AC97 audio id. to conventional > > > ICH driver. As the driver now supports so many variants I'd > > > like to make a table to ease of maintenance. The patch was > > > generated against CURRENT. I don't have these hardwares so it's > > > just guess work. > > > > > Much better, thanks. > > > > Oops. It seems that I omitted nForce4 support code. Sorry. > You should add a entry for that case. > Woah, nice catch :) -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 08:26:58 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C32A16A41F for ; Fri, 4 Nov 2005 08:26:58 +0000 (GMT) (envelope-from joel@FreeBSD.org) Received: from av9-1-sn3.vrr.skanova.net (av9-1-sn3.vrr.skanova.net [81.228.9.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id D818543D55 for ; Fri, 4 Nov 2005 08:26:56 +0000 (GMT) (envelope-from joel@FreeBSD.org) Received: by av9-1-sn3.vrr.skanova.net (Postfix, from userid 502) id B0E2738248; Fri, 4 Nov 2005 09:26:55 +0100 (CET) Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av9-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 90BEC37F79; Fri, 4 Nov 2005 09:26:55 +0100 (CET) Received: from t5o55p74.telia.com (t5o55p74.telia.com [212.181.194.74]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 8193A37E42; Fri, 4 Nov 2005 09:26:53 +0100 (CET) From: Joel Dahl To: pyunyh@gmail.com In-Reply-To: <20051104055040.GA17139@rndsoft.co.kr> References: <20051103101614.GE8008@smelt.bkarp.co.uk> <20051103184157.1e434bd9.skywizard@MyBSD.org.my> <20051103112704.GA669@smelt.bkarp.co.uk> <20051104055040.GA17139@rndsoft.co.kr> Content-Type: text/plain Date: Fri, 04 Nov 2005 09:24:52 +0100 Message-Id: <1131092692.664.13.camel@dude.automatvapen.se> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, Brad Karp , Ariff Abdullah Subject: Re: ICH7 audio support? 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: Fri, 04 Nov 2005 08:26:58 -0000 On Fri, 2005-11-04 at 14:50 +0900, Pyun YongHyeon wrote: > On Thu, Nov 03, 2005 at 11:27:04AM +0000, Brad Karp wrote: > > Thanks, Ariff. > > > > When I received your reply, I was already done hacking the device ID > > for the ICH7 into /sys/dev/sound/pci/ich.c. :-) > > > > I'm happy to report that with this hack, snd_ich appears to support > > the ICH7 just fine for both audio input and output! > > > > Ok. Would you try attached patch? > It basically adds a new 80801GB AC97 audio id. to conventional ICH > driver. As the driver now supports so many variants I'd like to make > a table to ease of maintenance. The patch was generated against CURRENT. > I don't have these hardwares so it's just guess work. |+ { NVIDIA_VENDORID, NVIDIA_NFORCE3_250, 0, |+ "nVidia nForce3 250" }, |+ { AMD_VENDORID, AMD_768, 0, |+ "AMD-768" }, |- case 0x00ea10de: |- device_set_desc(dev, "nVidia nForce3 250"); |- return BUS_PROBE_DEFAULT; |- |- case 0x005910de: |- device_set_desc(dev, "nVidia nForce4"); |- return BUS_PROBE_DEFAULT; |- |- case 0x74451022: |- device_set_desc(dev, "AMD-768"); |- return BUS_PROBE_DEFAULT; Hey Pyun, you forgot about nForce4. -- Joel - joel at FreeBSD dot org From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 08:45:46 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD1F516A426 for ; Fri, 4 Nov 2005 08:45:46 +0000 (GMT) (envelope-from jakemsr@jakemsr.com) Received: from mail231.csoft.net (resin.csoft.net [63.111.22.86]) by mx1.FreeBSD.org (Postfix) with SMTP id 15C0A43D4C for ; Fri, 4 Nov 2005 08:45:45 +0000 (GMT) (envelope-from jakemsr@jakemsr.com) Received: (qmail 13964 invoked from network); 4 Nov 2005 08:45:44 -0000 Received: from unknown (HELO puff.jakemsr.gom) (63.111.27.87) by mail231.csoft.net with SMTP; 4 Nov 2005 08:45:44 -0000 Received: (from jakemsr@jakemsr.com) by puff.jakemsr.gom (mini_sendmail/1.3.5 16nov2003); Fri, 04 Nov 2005 00:45:44 PST (sender jakemsr@puff.jakemsr.gom) Date: Fri, 4 Nov 2005 00:45:44 -0800 From: Jacob Meuser To: freebsd-multimedia@freebsd.org Message-ID: <20051104084544.GA20757@puff.jakemsr.gom> Mail-Followup-To: freebsd-multimedia@freebsd.org References: <200511010103.21307.danny@ricin.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200511010103.21307.danny@ricin.com> User-Agent: Mutt/1.4.2i Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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: Fri, 04 Nov 2005 08:45:46 -0000 On Tue, Nov 01, 2005 at 01:03:21AM +0000, Danny Pansters wrote: > Hi all, > > If you have a bktr based TV or capture card and are using KDE on FreeBSD 5, 6, > or 7 I'd like to invite you to try out Kbtv. It is a small and simple TV > viewing app written mostly in python. Uses PyKDE for GUI and mplayer for > rendering. "small and simple" with mplayer + KDE + python? is that a joke? http://www.jakemsr.com/bsdav/ is what I call small and simple ;) although, tunerctl probably doesn't work right on FreeBSD because bktr does some stupid stuff (unnecessarily mute/unmute and reset internal variables on open()/close()). that was changed in OpenBSD: http://www.openbsd.org/cgi-bin/cvsweb.cgi/src/sys/dev/pci/bktr/bktr_core.c.diff?r1=1.15&r2=1.16 notes on btcontrol: - channels can go above 99. often TVs in US go to 128 or so. - frequency range is more like 608-14240, not 0-999 - BT848_SATUMAX != BT848_SATVMAX, and these don't really scale to 0-100. look at how fxtv (or tunerctl) does these. - BT848_(S,G)AUDIO is both AUDIO_[UN]MUTE and AUDIO_(TUNER,EXTERN,INTERN) at the same time. - missing some headers, like sys/ioctl.h, stdio.h, unistd.h ... - perror() takes a const char *, not a format string. - you really shouldn't let it segfault with "btcontrol get". - OpenBSD uses the same bt8xx.h as NetBSD, but /dev/tuner0 instead of /dev/tuner, which is hardcoded. - "btcontrol get " prints nothing? even if it did print something, it would probably be incorrect, due to the above mentioned silly behaviour of bktr. - why in the world is it allowed to (attempt to) set the pixel format? this surely either does not work or will cause a crash! this should only be done by the program that is reading the data, and it _CANNOT_ be done in the middle of a capture!!! oh, and the mplayer port/package for OpenBSD does not include the bsdbt848 "driver" because, well, it sucks royal eggs. -- From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 08:48:36 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4927116A41F; Fri, 4 Nov 2005 08:48:36 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6366643D48; Fri, 4 Nov 2005 08:48:35 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 448876CC2D; Fri, 4 Nov 2005 16:50:32 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 34415-08; Fri, 4 Nov 2005 16:50:30 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id B60286CC25; Fri, 4 Nov 2005 16:50:30 +0800 (MYT) Date: Fri, 4 Nov 2005 16:48:47 +0800 From: Ariff Abdullah To: Joel Dahl Message-Id: <20051104164847.00707c00.skywizard@MyBSD.org.my> In-Reply-To: <1131092692.664.13.camel@dude.automatvapen.se> References: <20051103101614.GE8008@smelt.bkarp.co.uk> <20051103184157.1e434bd9.skywizard@MyBSD.org.my> <20051103112704.GA669@smelt.bkarp.co.uk> <20051104055040.GA17139@rndsoft.co.kr> <1131092692.664.13.camel@dude.automatvapen.se> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: freebsd-multimedia@freebsd.org Subject: Re: ICH7 audio support? 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: Fri, 04 Nov 2005 08:48:36 -0000 On Fri, 04 Nov 2005 09:24:52 +0100 Joel Dahl wrote: > > Hey Pyun, you forgot about nForce4. > Fixed. http://people.freebsd.org/~ariff/test/ for both RELENG5/CURRENT. -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 09:36:25 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 617B416A41F for ; Fri, 4 Nov 2005 09:36:25 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: from relay.rdsnet.ro (gimli.rdsnet.ro [193.231.236.70]) by mx1.FreeBSD.org (Postfix) with SMTP id 539E943D45 for ; Fri, 4 Nov 2005 09:36:23 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 14903 invoked from network); 4 Nov 2005 09:36:19 -0000 Received: from unknown (HELO smtp.rdsnet.ro) (62.231.74.130) by smtp1-133.rdsnet.ro with SMTP; 4 Nov 2005 09:36:19 -0000 Received: (qmail 29549 invoked by uid 89); 4 Nov 2005 09:36:19 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 4 Nov 2005 09:36:19 -0000 Received: from it.buh.tecnik93.com (localhost [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with ESMTP id B3AA0B8E6; Fri, 4 Nov 2005 11:36:12 +0200 (EET) Date: Fri, 4 Nov 2005 11:36:12 +0200 From: Ion-Mihai Tetcu To: Jacob Meuser Message-ID: <20051104113612.441f86fa@it.buh.tecnik93.com> In-Reply-To: <20051104084544.GA20757@puff.jakemsr.gom> References: <200511010103.21307.danny@ricin.com> <20051104084544.GA20757@puff.jakemsr.gom> X-Mailer: Sylpheed-Claws 1.9.15 (GTK+ 2.6.10; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: Available for testing: Kbtv -- KDE TV viewer for bktr 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: Fri, 04 Nov 2005 09:36:25 -0000 On Fri, 4 Nov 2005 00:45:44 -0800 Jacob Meuser wrote: > On Tue, Nov 01, 2005 at 01:03:21AM +0000, Danny Pansters wrote: > > Hi all, > > > > If you have a bktr based TV or capture card and are using KDE on > > FreeBSD 5, 6, or 7 I'd like to invite you to try out Kbtv. It is a > > small and simple TV viewing app written mostly in python. Uses > > PyKDE for GUI and mplayer for rendering. > > "small and simple" with mplayer + KDE + python? > > is that a joke? I suppose that if you already have kde ans py\* installed it is small :) > http://www.jakemsr.com/bsdav/ is what I call small and simple ;) Port for it ? > although, tunerctl probably doesn't work right on FreeBSD because > bktr does some stupid stuff (unnecessarily mute/unmute and reset > internal variables on open()/close()). that was changed in OpenBSD: > > http://www.openbsd.org/cgi-bin/cvsweb.cgi/src/sys/dev/pci/bktr/bktr_core.c.diff?r1=1.15&r2=1.16 And what a nice idea this is. [ ... ] -- IOnut Unregistered ;) FreeBSD "user" "Intellectual Property" is nowhere near as valuable as "Intellect" From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 15:53:45 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09FAE16A41F for ; Fri, 4 Nov 2005 15:53:45 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B08843D48 for ; Fri, 4 Nov 2005 15:53:44 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jA4FrSvL027178; Fri, 4 Nov 2005 08:53:29 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 04 Nov 2005 08:53:48 -0700 (MST) Message-Id: <20051104.085348.89043521.imp@bsdimp.com> To: skywizard@MyBSD.org.my From: "M. Warner Losh" In-Reply-To: <20051104161811.4ca68aac.skywizard@MyBSD.org.my> References: <20051104.000842.51856780.imp@bsdimp.com> <20051104161811.4ca68aac.skywizard@MyBSD.org.my> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 04 Nov 2005 08:53:29 -0700 (MST) Cc: multimedia@freebsd.org Subject: Re: Sound driver weirdness 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: Fri, 04 Nov 2005 15:53:45 -0000 In message: <20051104161811.4ca68aac.skywizard@MyBSD.org.my> Ariff Abdullah writes: : On Fri, 04 Nov 2005 00:08:42 -0700 (MST) : "M. Warner Losh" wrote: : > I recently upgraded my only sony 505TS. : >From .. to .. ? : : > Sound stopped working. : > xmms gives an error that the operation isn't supported by my device. : > I : > wonder what this means? From looking at the open to /dev/dsp, it : > appears that the channel reset isn't succeeding. Any pointers on : > tracking this down? : > : > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on : > isa0 unknown: can't assign resources (memory) : > unknown: can't assign resources (port) : > sbc0: at port 0x220-0x22f,0x388-0x38b,0x320-0x321 irq 5 : > drq 1,5 pnpid ESS1879 on isa0 sbc0: [GIANT-LOCKED] : > pcm0: on sbc0 : > pcm0: [GIANT-LOCKED] : > cbb1: Cannot allocate I/O : > unknown: can't assign resources (port) : > unknown: can't assign resources (port) : > unknown: can't assign resources (port) : > unknown: can't assign resources (irq) : > unknown: can't assign resources (port) : > unknown: can't assign resources (irq) : > Timecounter "TSC" frequency 298422284 Hz quality 800 : > : > is the relevant bit of dmesg, I think. : > : what is the output of sysctl hw.snd ? % cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at io 0x220 irq 5 drq 1:5 bufsz 4096 kld snd_ess (1p/1r/0v channels default) % sysctl hw.snd hw.snd.report_soft_formats: 1 hw.snd.targetirqrate: 32 hw.snd.feeder_rate_buffersize: 8192 hw.snd.feeder_rate_scaling: 5 hw.snd.feeder_rate_ratemax: 1102500 hw.snd.feeder_rate_ratemin: 4000 hw.snd.verbose: 1 hw.snd.maxautovchans: 0 hw.snd.unit: 0 hw.snd.pcm0.buffersize: 4096 hw.snd.pcm0.vchans: 0 % From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 18:01:55 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02D9A16A420 for ; Fri, 4 Nov 2005 18:01:55 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id A291143D4C for ; Fri, 4 Nov 2005 18:01:54 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jA4I1e020174; Fri, 4 Nov 2005 10:01:40 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id SAA23109; Fri, 4 Nov 2005 18:01:09 GMT Message-Id: <200511041801.SAA23109@sopwith.solgatos.com> To: "Arne " W rner "" In-reply-to: Your message of "Thu, 03 Nov 2005 15:51:02 PST." <20051103235102.76911.qmail@web30314.mail.mud.yahoo.com> Date: Fri, 04 Nov 2005 10:01:09 +0000 From: Dieter Cc: freebsd-multimedia@freebsd.org Subject: Re: trying to convert mpeg2 to dv 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: Fri, 04 Nov 2005 18:01:55 -0000 > > Are there alternatives to transcode I should be looking at? > > > I personally like mencoder/mplayer... But I do not know, if it > knows DV format... Mencoder seems to use free MS Windows > executables (DLLs or so?), if I understood that right... mplayer can input DV but I don't see any way to get mplayer to output DV? mencoder looks more promising: mencoder -oac copy -vf scale=720:480 -vc mpeg12 -ovc libdv /tmp/test.mpeg2 /tmp/test_output.dv MEncoder 1.0pre7-3.4.4 (C) 2000-2005 MPlayer Team CPU: Advanced Micro Devices (Family: 8, Stepping: 0) Detected cache-line size is 64 bytes CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 File not found: 'frameno.avi' Failed to open frameno.avi success: format: 0 data: 0x0 - 0xa00000 TS file format detected. DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1, PROBING UP TO 2000000, PROG: 0 VIDEO MPEG2(pid=65)AUDIO A52(pid=68) NO SUBS (yet)! PROGRAM N. 0 Opened TS demuxer, audio: 2000(pid 68), video: 10000002(pid 65)...POS=15040 VIDEO: MPEG2 704x480 (aspect 2) 29.970 fps 15000.0 kbps (1875.0 kbyte/s) [V] filefmt:29 fourcc:0x10000002 size:704x480 fps:29.97 ftime:=0.0334 ========================================================================== Opening audio decoder: [liba52] AC3 decoding with liba52 No accelerated IMDCT transform found AC3: 2.0 (stereo) 48000 Hz 384.0 kbit/s No accelerated resampler found AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [a52] afm:liba52 (AC3-liba52) ========================================================================== Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1 Opening video filter: [scale w=720 h=480] ========================================================================== Forced video codec: mpeg12 Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2)) ========================================================================== audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 bps=48000 sample-1) Writing AVI header... ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. VDec: vo config request - 704 x 480 (preferred csp: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. SwScaler: reducing / aligning filtersize 5 -> 4 SwScaler: reducing / aligning filtersize 5 -> 4 SwScaler: reducing / aligning filtersize 1 -> 1 SwScaler: reducing / aligning filtersize 5 -> 4 SwScaler: BICUBIC scaler, from Planar YV12 to Packed YUY2 using MMX2 Pos: 0.0s 1f ( 6%) 0fps Trem: 0min 0mb A-V:0.000 [0:0] 1 duplicate frame(s)! ODML: vprp aspect is 4:3. Segmentation fault: 11 (core dumped)m: 0min 0mb A-V:-0.003 [0:0] I don't know what this frameno.avi file is supposed to be? I'm not sure if "-oac copy" is the right thing to specify? Once again I get a seg fault. :-( From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 18:38:28 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D0E216A41F for ; Fri, 4 Nov 2005 18:38:28 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F8DF43D6E for ; Fri, 4 Nov 2005 18:38:20 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 70B4E6CC24; Sat, 5 Nov 2005 02:40:18 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36837-04; Sat, 5 Nov 2005 02:40:17 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id C9FB66CC22; Sat, 5 Nov 2005 02:40:16 +0800 (MYT) Date: Sat, 5 Nov 2005 02:38:34 +0800 From: Ariff Abdullah To: "M. Warner Losh" Message-Id: <20051105023834.5da2a41b.skywizard@MyBSD.org.my> In-Reply-To: <20051104.085348.89043521.imp@bsdimp.com> References: <20051104.000842.51856780.imp@bsdimp.com> <20051104161811.4ca68aac.skywizard@MyBSD.org.my> <20051104.085348.89043521.imp@bsdimp.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: multimedia@freebsd.org Subject: Re: Sound driver weirdness 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: Fri, 04 Nov 2005 18:38:28 -0000 Urhh.. sorry. Few parts of my post seems gone.. On Fri, 04 Nov 2005 08:53:48 -0700 (MST) "M. Warner Losh" wrote: > In message: <20051104161811.4ca68aac.skywizard@MyBSD.org.my> > Ariff Abdullah writes: > : On Fri, 04 Nov 2005 00:08:42 -0700 (MST) > : "M. Warner Losh" wrote: > : > I recently upgraded my only sony 505TS. > : >From .. to .. ? > : Upgraded from what (FreeBSD?) version to what (I guess it is -CURRENT)? > : > Sound stopped working. > : > xmms gives an error that the operation isn't supported by my > device. : > I > : > wonder what this means? From looking at the open to /dev/dsp, > it : > appears that the channel reset isn't succeeding. What makes you think channel reset isn't succeeding? Any other error or diagnostic messages from syslog/console? > : > [...] > : what is the output of sysctl hw.snd ? > > % cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: at io 0x220 irq 5 drq 1:5 bufsz 4096 kld > snd_ess (1p/1r/0v channels default) % sysctl hw.snd > hw.snd.report_soft_formats: 1 > hw.snd.targetirqrate: 32 > hw.snd.feeder_rate_buffersize: 8192 > hw.snd.feeder_rate_scaling: 5 > hw.snd.feeder_rate_ratemax: 1102500 > hw.snd.feeder_rate_ratemin: 4000 > hw.snd.verbose: 1 > hw.snd.maxautovchans: 0 > hw.snd.unit: 0 > hw.snd.pcm0.buffersize: 4096 > hw.snd.pcm0.vchans: 0 > % > Perhaps /dev/dsp has been acquired by something else (since your vchans disabled). fstat | grep dsp. How about enabling vchans? -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 18:45:57 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A54BB16A421 for ; Fri, 4 Nov 2005 18:45:57 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: from web30301.mail.mud.yahoo.com (web30301.mail.mud.yahoo.com [68.142.200.94]) by mx1.FreeBSD.org (Postfix) with SMTP id E94AB43D53 for ; Fri, 4 Nov 2005 18:45:55 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 28110 invoked by uid 60001); 4 Nov 2005 18:45:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=t8d+fVBV1/k3+QM2L9niBU55efr73k8jrcRPGhyJQeHkXh714DyWkyiFKJbcg575JNGOrO7C7LkPJ9Px21j88qFHwvW2QVVWVGaRP1jREsSJXly8NZx7wYllpRu0DeVmiL0T20MXP7OgQ0kIsc7wnsZu2iqXroOIPyqYuJDSmRw= ; Message-ID: <20051104184555.28108.qmail@web30301.mail.mud.yahoo.com> Received: from [213.54.75.190] by web30301.mail.mud.yahoo.com via HTTP; Fri, 04 Nov 2005 10:45:55 PST Date: Fri, 4 Nov 2005 10:45:55 -0800 (PST) From: Arne "Wörner" To: Dieter In-Reply-To: <200511041801.SAA23109@sopwith.solgatos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org Subject: Re: trying to convert mpeg2 to dv 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: Fri, 04 Nov 2005 18:45:57 -0000 --- Dieter wrote: > > I personally like mencoder/mplayer... But I do not know, if it > > knows DV format... Mencoder seems to use free MS Windows > > executables (DLLs or so?), if I understood that right... > > mplayer can input DV but I don't see any way to get mplayer > to output DV? > The package name is mplayer, so that I added it... > mencoder looks more promising: > [...] > I don't know what this frameno.avi file is supposed to be? > I dont know either... > I'm not sure if "-oac copy" is the right thing to specify? > I usually use "-oac mp3lame"... But copy should be fine, too... > Once again I get a seg fault. :-( > *oops* I just executed % mencoder -endpos 5 -oac mp3lame -ovc libdv -o /tmp/f+ck.dv dvd://1 and % mencoder -endpos 5 -oac mp3lame -ovc libdv -o /tmp/f_ck.dv /tmp/f+ck.dv successfully... Maybe your source file is evil or from a parallel world, where DV format is somehow evil (take from Futurama/Farnsworth's Parabox)? Bye Arne --- Farnsworth: "Professy will help you." (taken from Futurama/When The World Stood Stupid) __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 18:50:46 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A72516A41F for ; Fri, 4 Nov 2005 18:50:46 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBACA43D46 for ; Fri, 4 Nov 2005 18:50:45 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jA4IlmIc029138; Fri, 4 Nov 2005 11:47:48 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 04 Nov 2005 11:47:48 -0700 (MST) Message-Id: <20051104.114748.71117327.imp@bsdimp.com> To: skywizard@MyBSD.org.my From: Warner Losh In-Reply-To: <20051105023834.5da2a41b.skywizard@MyBSD.org.my> References: <20051104161811.4ca68aac.skywizard@MyBSD.org.my> <20051104.085348.89043521.imp@bsdimp.com> <20051105023834.5da2a41b.skywizard@MyBSD.org.my> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 04 Nov 2005 11:47:48 -0700 (MST) Cc: multimedia@freebsd.org Subject: Re: Sound driver weirdness 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: Fri, 04 Nov 2005 18:50:46 -0000 > "M. Warner Losh" wrote: > > In message: <20051104161811.4ca68aac.skywizard@MyBSD.org.my> > > Ariff Abdullah writes: > > : On Fri, 04 Nov 2005 00:08:42 -0700 (MST) > > : "M. Warner Losh" wrote: > > : > I recently upgraded my only sony 505TS. > > : >From .. to .. ? > > : > Upgraded from what (FreeBSD?) version to what (I guess it is > -CURRENT)? current from 'a while' ago. I no longer have the old kernel to know what exact version it was. > > : > Sound stopped working. > > : > xmms gives an error that the operation isn't supported by my > > device. : > I > > : > wonder what this means? From looking at the open to /dev/dsp, > > it : > appears that the channel reset isn't succeeding. > What makes you think channel reset isn't succeeding? Any other error > or diagnostic messages from syslog/console? Nope. What makes me think this is purely code inspection for the operation not supported by device: if (flags & FREAD) { ... /* got a channel, already locked for us */ if (chn_reset(rdch, fmt)) { pcm_chnrelease(rdch); i_dev->si_drv1 = NULL; return ENODEV; } ... } if (flags & FWRITE) { /* open for write */ ... if (!wrch) error = EBUSY; /* XXX Right return code? */ else if (chn_reset(wrch, fmt)) error = ENODEV; ... > Perhaps /dev/dsp has been acquired by something else (since your > vchans disabled). fstat | grep dsp. How about enabling vchans? % fstat | grep dps % Why are my vchans disabled, what does that mean and what can I do about it? Warner From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 19:19:57 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E806616A41F for ; Fri, 4 Nov 2005 19:19:57 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from tomoyo.MyBSD.org.my (tomoyo.mybsd.org.my [202.157.186.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6133543D45 for ; Fri, 4 Nov 2005 19:19:57 +0000 (GMT) (envelope-from skywizard@MyBSD.org.my) Received: from localhost (localhost [127.0.0.1]) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id E937C6CC23; Sat, 5 Nov 2005 03:21:55 +0800 (MYT) Received: from tomoyo.MyBSD.org.my ([127.0.0.1]) by localhost (TOMOYO.MYBSD.ORG.MY [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 36958-03; Sat, 5 Nov 2005 03:21:54 +0800 (MYT) Received: from kasumi.MyBSD.org.my (kasumi.MyBSD.org.my [IPv6:2001:328:2002:aa2::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tomoyo.MyBSD.org.my (Postfix) with ESMTP id 337226CC22; Sat, 5 Nov 2005 03:21:50 +0800 (MYT) Date: Sat, 5 Nov 2005 03:20:08 +0800 From: Ariff Abdullah To: Warner Losh Message-Id: <20051105032008.384323ac.skywizard@MyBSD.org.my> In-Reply-To: <20051104.114748.71117327.imp@bsdimp.com> References: <20051104161811.4ca68aac.skywizard@MyBSD.org.my> <20051104.085348.89043521.imp@bsdimp.com> <20051105023834.5da2a41b.skywizard@MyBSD.org.my> <20051104.114748.71117327.imp@bsdimp.com> Organization: MyBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by Amavisd AntiVirus & AntiSpam Scanner running on FreeBSD mailserver at TOMOYO.MYBSD.ORG.MY Cc: multimedia@freebsd.org Subject: Re: Sound driver weirdness 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: Fri, 04 Nov 2005 19:19:58 -0000 On Fri, 04 Nov 2005 11:47:48 -0700 (MST) Warner Losh wrote: > > current from 'a while' ago. I no longer have the old kernel to know > what exact version it was. > > > What makes you think channel reset isn't succeeding? Any other > > error or diagnostic messages from syslog/console? > > Nope. What makes me think this is purely code inspection for the > operation not supported by device: > > if (flags & FREAD) { > ... > /* got a channel, already locked for us */ > if (chn_reset(rdch, fmt)) { > pcm_chnrelease(rdch); > i_dev->si_drv1 = NULL; > return ENODEV; > } > ... > } > if (flags & FWRITE) { > /* open for write */ > ... > if (!wrch) > error = EBUSY; /* XXX Right return code? */ > else if (chn_reset(wrch, fmt)) > error = ENODEV; > ... > > > > Perhaps /dev/dsp has been acquired by something else (since your > > vchans disabled). fstat | grep dsp. How about enabling vchans? > > % fstat | grep dps > % > "dsp" > Why are my vchans disabled, what does that mean and what can I do > about it? > That means at most, only single process (sound apps) can acquire the sound device (vchans = virtual channels). 1) Try enabling vchans by increasing the value of both hw.snd.maxautovchans and hw.snd.pcm0.vchans (4 is a good start). After that, you probably need to reduce the value of hw.snd.pcm0.vchanrate to 44100 (only if necessary). 2) Try to use other 'simpler' apps, such as mpg321 3) hm.. I don't think my recent commit against both dsp.c/mixer.c cause this problem (maybe?). Note that there was also a commit by DES, so you probably need to back off dsp.c down to rev. 1.85 -- Ariff Abdullah MyBSD http://www.MyBSD.org.my (IPv6/IPv4) http://staff.MyBSD.org.my (IPv6/IPv4) http://tomoyo.MyBSD.org.my (IPv6/IPv4) From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 19:29:56 2005 Return-Path: X-Original-To: multimedia@freebsd.org Delivered-To: freebsd-multimedia@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FF0D16A41F for ; Fri, 4 Nov 2005 19:29:56 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id E37D743D45 for ; Fri, 4 Nov 2005 19:29:55 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id jA4JS8JL029456; Fri, 4 Nov 2005 12:28:08 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 04 Nov 2005 12:28:08 -0700 (MST) Message-Id: <20051104.122808.104060873.imp@bsdimp.com> To: skywizard@MyBSD.org.my From: Warner Losh In-Reply-To: <20051105032008.384323ac.skywizard@MyBSD.org.my> References: <20051105023834.5da2a41b.skywizard@MyBSD.org.my> <20051104.114748.71117327.imp@bsdimp.com> <20051105032008.384323ac.skywizard@MyBSD.org.my> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 04 Nov 2005 12:28:08 -0700 (MST) Cc: multimedia@freebsd.org Subject: Re: Sound driver weirdness 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: Fri, 04 Nov 2005 19:29:56 -0000 > > % fstat | grep dps > "dsp" Same results. > > Why are my vchans disabled, what does that mean and what can I do > > about it? > That means at most, only single process (sound apps) can acquire the > sound device (vchans = virtual channels). > 1) Try enabling vchans by increasing the value of both > hw.snd.maxautovchans and hw.snd.pcm0.vchans (4 is a good start). > After that, you probably need to reduce the value of > hw.snd.pcm0.vchanrate to 44100 (only if necessary). same results. > 2) Try to use other 'simpler' apps, such as mpg321 cat > /dev/dsp gives the same results: cat > /dev/dsp /dev/dsp: Operation not supported by device. > 3) hm.. I don't think my recent commit against both dsp.c/mixer.c > cause this problem (maybe?). Note that there was also a commit by > DES, so you probably need to back off dsp.c down to rev. 1.85 I'll have to give that a spin... Warner From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 19:37:47 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 803CF16A424 for ; Fri, 4 Nov 2005 19:37:47 +0000 (GMT) (envelope-from bseib@purdue.edu) Received: from exchange.purdue.edu (1061exfe03.adpc.purdue.edu [128.210.63.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4850F43D68 for ; Fri, 4 Nov 2005 19:37:44 +0000 (GMT) (envelope-from bseib@purdue.edu) Received: from EXCH02.purdue.lcl ([128.210.63.235]) by exchange.purdue.edu with Microsoft SMTPSVC(6.0.3790.211); Fri, 4 Nov 2005 14:37:39 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 4 Nov 2005 14:37:37 -0500 Message-ID: <80021DB9CA5EA04C8A6FBB918788EBDD02AEC478@EXCH02.purdue.lcl> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Troubleshooting cxm driver with Hauppauge 250 Thread-Index: AcXhdu/IFxDXXgGySNCwBSpAiqqjyg== From: "Seib, Broc" To: X-OriginalArrivalTime: 04 Nov 2005 19:37:39.0209 (UTC) FILETIME=[371F6790:01C5E177] Cc: Subject: Troubleshooting cxm driver with Hauppauge 250 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: Fri, 04 Nov 2005 19:37:47 -0000 Hi all, I recently discovered the cxm driver, so I moved my Hauppauge 250 tuner card to my FreeBSD 5.3 box (yay!). I built and installed the driver parts and it *almost* works, but produces empty mpg files. (BTW, this card has worked under KnoppMyth and WinXP in the past.) The console logs show successful loading of things: cxm0: mem 0xf0000000-0xf3ffffff irq 21 at device 9.0 on pci1 cxm_iic0: on cxm0 iicbb0: on cxm_iic0 iicbus0: on iicbb0 master-only cxm0: Temic 4036 FY5 tuner cxm0: SAA7115 rev 1 video decoder cxm0: MSP4448G-A2 audio decoder cxm0: IR Remote cxm0: encoder firmware version 0x2050032 I can use 'setchannel -t ' to successfully tune in a channel. (I even added some debug lines to the driver to prove this is working. Plus setchannel correctly fails when I unhook my coax line...) But when I do a 'cat /dev/cxm0 > testit.mpg' I get a zero length file. And when I interrupt this process I get (after the expected 1000ms delay) a message "cxm0: missing encoder EOS". I have debugged this enough to think that the firmware command (0x81) to "begin capture" has been properly issued, but cxm_intr() is never called thereafter. So the driver patiently sits there in tsleep (as "cmxrd") waiting for its buffer to fill, but nothing ever comes. Anyone have any tips where/how to pursue debugging this? -broc From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 20:40:51 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 896F316A41F for ; Fri, 4 Nov 2005 20:40:51 +0000 (GMT) (envelope-from timbicio@hotmail.com) Received: from hotmail.com (bay101-f15.bay101.hotmail.com [64.4.56.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id E086443D45 for ; Fri, 4 Nov 2005 20:40:47 +0000 (GMT) (envelope-from timbicio@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 4 Nov 2005 12:40:47 -0800 Message-ID: Received: from 64.4.56.200 by by101fd.bay101.hotmail.msn.com with HTTP; Fri, 04 Nov 2005 20:40:46 GMT X-Originating-IP: [4.63.153.2] X-Originating-Email: [timbicio@hotmail.com] X-Sender: timbicio@hotmail.com In-Reply-To: <80021DB9CA5EA04C8A6FBB918788EBDD02AEC478@EXCH02.purdue.lcl> From: "Tim Bicio" To: bseib@purdue.edu, freebsd-multimedia@freebsd.org Date: Fri, 04 Nov 2005 12:40:46 -0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 04 Nov 2005 20:40:47.0279 (UTC) FILETIME=[08FD03F0:01C5E180] Cc: Subject: RE: Troubleshooting cxm driver with Hauppauge 250 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: Fri, 04 Nov 2005 20:40:51 -0000 I had a similar problem some time ago. Perhaps this will help. You need to have a proper video signal running to the card in order for it to work. T
>Hi all,
>
>I recently discovered the cxm driver, so I moved my Hauppauge 250 tuner
>card to my FreeBSD 5.3 box (yay!). I built and installed the driver
>parts and it *almost* works, but produces empty mpg files. (BTW, this
>card has worked under KnoppMyth and WinXP in the past.) The console logs
>show successful loading of things:
>
>cxm0: <Conexant iTVC16 MPEG Coder> mem 0xf0000000-0xf3ffffff irq 21 at
>device 9.0 on pci1
>cxm_iic0: <Conexant iTVC15 / iTVC16 I2C controller> on cxm0
>iicbb0: <I2C bit-banging driver> on cxm_iic0
>iicbus0: <Philips I2C bus> on iicbb0 master-only
>cxm0: Temic 4036 FY5 tuner
>cxm0: SAA7115 rev 1 video decoder
>cxm0: MSP4448G-A2 audio decoder
>cxm0: IR Remote
>cxm0: encoder firmware version 0x2050032
>
>I can use 'setchannel -t <x>' to successfully tune in a channel. (I even
>added some debug lines to the driver to prove this is working. Plus
>setchannel correctly fails when I unhook my coax line...)
>
>But when I do a 'cat /dev/cxm0 > testit.mpg' I get a zero length file.
>And when I interrupt this process I get (after the expected 1000ms
>delay) a message "cxm0: missing encoder EOS".
>
>I have debugged this enough to think that the firmware command (0x81) to
>"begin capture" has been properly issued, but cxm_intr() is never called
>thereafter. So the driver patiently sits there in tsleep (as "cmxrd")
>waiting for its buffer to fill, but nothing ever comes.
>
>Anyone have any tips where/how to pursue debugging this?
>
>-broc
>_______________________________________________
>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"
From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 4 22:32:17 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8D3416A41F for ; Fri, 4 Nov 2005 22:32:17 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58A9143D45 for ; Fri, 4 Nov 2005 22:32:17 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jA4MWCD21049; Fri, 4 Nov 2005 14:32:12 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id WAA29425; Fri, 4 Nov 2005 22:31:44 GMT Message-Id: <200511042231.WAA29425@sopwith.solgatos.com> To: "Arne " W rner "" In-reply-to: Your message of "Fri, 04 Nov 2005 10:45:55 PST." <20051104184555.28108.qmail@web30301.mail.mud.yahoo.com> Date: Fri, 04 Nov 2005 14:31:44 +0000 From: Dieter Cc: freebsd-multimedia@freebsd.org Subject: Re: trying to convert mpeg2 to dv 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: Fri, 04 Nov 2005 22:32:17 -0000 > > mencoder looks more promising: > > [...] > > I don't know what this frameno.avi file is supposed to be? > > > I dont know either... Do you get the File not found: 'frameno.avi' Failed to open frameno.avi complaint from mencoder? > > Once again I get a seg fault. :-( > > > *oops* > > I just executed > % mencoder -endpos 5 -oac mp3lame -ovc libdv -o /tmp/f+ck.dv > dvd://1 > and > % mencoder -endpos 5 -oac mp3lame -ovc libdv -o /tmp/f_ck.dv > /tmp/f+ck.dv > successfully... What kind of machine is this on? x86? I'm on amd64, I wonder if libdv isn't LP64 clean? > Maybe your source file is evil or from a parallel world, where DV > format is somehow evil (take from Futurama/Farnsworth's Parabox)? I'm not familiar with Futurama/Farnsworth's Parabox. I tried several source files. Most seg fault core dump, a couple did bus error core dump instead. They are from over-the-air digital TV, various networks. Mplayer will play them with default X11 output, but my X terminal isn't fast enough, (and audio would be nice) so I'm trying to convert them to DV so I can use my camcorder as a firewire-to-TV adapter. From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 5 00:53:24 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58EA116A41F for ; Sat, 5 Nov 2005 00:53:24 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: from web30304.mail.mud.yahoo.com (web30304.mail.mud.yahoo.com [68.142.200.97]) by mx1.FreeBSD.org (Postfix) with SMTP id 7752843D48 for ; Sat, 5 Nov 2005 00:53:23 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 12635 invoked by uid 60001); 5 Nov 2005 00:53:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=qiVtIZXtBzuCBUl8j01bWTtAXfZkZhxFdJ+r+e5tWCOPWqlc3zOPL0AL/dxThlQPa48WqHz0D9IqXy0FPgE9PICYfCLKxYV1+bC1pSnENqCli5j/oAQa3+qyt/ak+ReScGMGY3uPUV6vs5Sz/uYrVRv/1OfiDeFSw9u6i1uVj78= ; Message-ID: <20051105005322.12633.qmail@web30304.mail.mud.yahoo.com> Received: from [213.54.75.190] by web30304.mail.mud.yahoo.com via HTTP; Fri, 04 Nov 2005 16:53:22 PST Date: Fri, 4 Nov 2005 16:53:22 -0800 (PST) From: Arne "Wörner" To: Dieter In-Reply-To: <200511042231.WAA29425@sopwith.solgatos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-multimedia@freebsd.org Subject: Re: trying to convert mpeg2 to dv 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, 05 Nov 2005 00:53:24 -0000 --- Dieter wrote: > > > mencoder looks more promising: > > > [...] > > > I don't know what this frameno.avi file is supposed to be? > > > > > I dont know either... > > Do you get the > > File not found: 'frameno.avi' > Failed to open frameno.avi > > complaint from mencoder? > Yes. See: MEncoder 1.0pre6-3.4.2 (C) 2000-2004 MPlayer Team CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 1) Detected cache-line size is 64 bytes CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 Compiled with runtime CPU detection - WARNING - this is not optimal! To get best performance, recompile MPlayer with --disable-runtime-cpudetection. File not found: 'frameno.avi' Failed to open frameno.avi Reading disc structure, please wait... There are 10 titles on this DVD. There are 1 chapters in this DVD title. There are 1 angles in this DVD title. DVD successfully opened. success: format: 0 data: 0x0 - 0x303800 MPEG-PS file format detected. VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 9600.0 kbps (1200.0 kbyte/s) [V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.00 ftime:=0.0400 ========================================================================== Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform AC3: 2.0 (stereo) 48000 Hz 448.0 kbit/s Using MMX optimized resampler AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit) Selected audio codec: [a52] afm:liba52 (AC3-liba52) ========================================================================== Opening video filter: [expand osd=1] Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1 ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2)) ========================================================================== MP3 audio selected Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit... Writing AVI header... ODML: Aspect information not (yet?) available or unspecified, not writing vprp header. VDec: vo config request - 720 x 576 (preferred csp: Planar YV12) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 1 SwScaler: reducing / aligning filtersize 5 -> 4 SwScaler: BICUBIC scaler, from Planar YV12 to Packed YUY2 using MMX2 New_Face failed. Maybe the font path is wrong. 0mb A-V:0.004 [0:0] Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. ODML: vprp aspect is 16:9. 1 duplicate frame(s)! Pos: 0.8s 22f ( 5%) 0fps Trem: 0min 50mb A-V:0.084 [0:75] Skipping frame! Pos: 1.3s 34f ( 8%) 26fps Trem: 0min 51mb A-V:0.083 [27900:98] Skipping frame! Pos: 4.9s 126f (64%) 24fps Trem: 0min 26mb A-V:0.064 [28565:183] Flushing video frames Writing AVI index... Fixing AVI header... ODML: vprp aspect is 16:9. Video stream: 28565.854 kbit/s (3570731 bps) size: 17568000 bytes 4.920 secs 126 frames Audio stream: 183.751 kbit/s (22968 bps) size: 124032 bytes 5.400 secs > > I just executed > > % mencoder -endpos 5 -oac mp3lame -ovc libdv -o /tmp/f+ck.dv > > dvd://1 > > and > > % mencoder -endpos 5 -oac mp3lame -ovc libdv -o /tmp/f_ck.dv > > /tmp/f+ck.dv > > successfully... > > What kind of machine is this on? x86? I'm on amd64, I wonder > if libdv isn't LP64 clean? > See above... I do not know libdv... But I saw mencoder and mplayer crashing abnormaling quite often already... > > Maybe your source file is evil or from a parallel world, where > > DV format is somehow evil (taken from Futurama/Farnsworth's > > Parabox)? > > I'm not familiar with Futurama/Farnsworth's Parabox. > Hmm... That is an episode of the TV series Futurama... > I tried several source files. Most seg fault core dump, a > couple did bus error core dump instead. They are from > over-the-air digital TV, various networks. Mplayer will > play them with default X11 output, but my X terminal isn't > fast enough, (and audio would be nice) so I'm trying to > convert them to DV so I can use my camcorder as a > firewire-to-TV adapter. > Interesting project... Really looks like libdv does not work on your box so good... Maybe it helps to compile libdv on your box by % cd /usr/ports/multimedia/libdv % make deinstall % make clean % make install (but I am just guessing... I do not have so much experiences with libdv, camcorders, AMD64, ...) At least the kernel compiled on my big AMD i386 box (I686_CPU) does not work on my old Intel i386 box (I586_CPU) (if I recall it correctly)... -Arne __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 5 03:24:26 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C94216A41F for ; Sat, 5 Nov 2005 03:24:26 +0000 (GMT) (envelope-from jakemsr@jakemsr.com) Received: from mail231.csoft.net (resin.csoft.net [63.111.22.86]) by mx1.FreeBSD.org (Postfix) with SMTP id A8AC743D45 for ; Sat, 5 Nov 2005 03:24:25 +0000 (GMT) (envelope-from jakemsr@jakemsr.com) Received: (qmail 4575 invoked from network); 5 Nov 2005 03:24:19 -0000 Received: from unknown (HELO puff.jakemsr.gom) (63.111.27.87) by mail231.csoft.net with SMTP; 5 Nov 2005 03:24:19 -0000 Received: (from jakemsr@jakemsr.com) by puff.jakemsr.gom (mini_sendmail/1.3.5 16nov2003); Fri, 04 Nov 2005 19:24:19 PST (sender jakemsr@puff.jakemsr.gom) Date: Fri, 4 Nov 2005 19:24:19 -0800 From: Jacob Meuser To: freebsd-multimedia@freebsd.org Message-ID: <20051105032419.GA25096@puff.jakemsr.gom> Mail-Followup-To: freebsd-multimedia@freebsd.org References: <200511042231.WAA29425@sopwith.solgatos.com> <20051105005322.12633.qmail@web30304.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051105005322.12633.qmail@web30304.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2i Subject: Re: trying to convert mpeg2 to dv 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, 05 Nov 2005 03:24:26 -0000 sorry, I deleted original post. didn't notice it was about transcode. perhaps 'trying to convert mpeg2 to dv with transcode' would have been a better subject. first, definitely use transcode-1.0.1 (or wait until 1.0.2 comes out, probably this weekend). problems with both DV export and amd64 were fixed between 1.0.0rc1 and 1.0.1. second, yes, the libxio issue is known, but I will bet everything I own it's not your problem, unless you are using IBP. OTOH if you have a good solution for this, please send it to transcode-devel@exit1.org (I'm almost willing to bet everything I own this is not fixable without redesign of libxio/IBP. seen some patches, but no real fix so far). and if you are using IBP, please send a message to transcode-users@exit1.org describing your setup. third, please see the transcode wiki entry about DV. http://www.transcoding.org/cgi-bin/transcode?Export_Modules/Export_Dvraw particularly note that DV has strict rules about frame size, etc. fourth, you really, really don't want to use "transcode -y dv". DV in AVI _IS_ evil. fifth, the manpage is quite clear that "-y dv" creates DV in AVI and "-y dvraw" creates real DV output. that is the only difference. and finally, phreke:/home/portobj/transcode-1.0.1/build-amd64% make make all-recursive Making all in libtc Making all in libxio Making all in docs Making all in man Making all in html Making all in release-notes Making all in contrib Making all in pnmpvn Making all in libdldarwin Making all in libsupport Making all in libioaux Making all in aclib Making all in avilib Making all in libac3 Making all in libvo Making all in import Making all in nuv Making all in v4l Making all in export Making all in filter Making all in pp Making all in divxkey Making all in extsub Making all in yuvdenoise Making all in preview Making all in subtitler Making all in src Making all in tools Making all in testsuite phreke:/home/portobj/transcode-1.0.1/build-amd64% touch ../transcode-1.0.1/libxio/libxio.c phreke:/home/portobj/transcode-1.0.1/build-amd64% make make all-recursive Making all in libtc Making all in libxio if /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I/home/portobj/transcode-1.0.1/transcode-1.0.1/libxio -I.. -D_REENTRANT -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -Wall -MT libxio.lo -MD -MP -MF ".deps/libxio.Tpo" -c -o libxio.lo /home/portobj/transcode-1.0.1/transcode-1.0.1/libxio/libxio.c; then mv -f ".deps/libxio.Tpo" ".deps/libxio.Plo"; else rm -f ".deps/libxio.Tpo"; exit 1; fi cc -DHAVE_CONFIG_H -I. -I/home/portobj/transcode-1.0.1/transcode-1.0.1/libxio -I.. -D_REENTRANT -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -Wall -MT libxio.lo -MD -MP -MF .deps/libxio.Tpo -c /home/portobj/transcode-1.0.1/transcode-1.0.1/libxio/libxio.c -fPIC -DPIC -o .libs/libxio.o /home/portobj/transcode-1.0.1/transcode-1.0.1/libxio/libxio.c: In function `xio_open': /home/portobj/transcode-1.0.1/transcode-1.0.1/libxio/libxio.c:707: warning: cast to pointer from integer of different size /bin/sh ../libtool --mode=link cc -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -pipe -Wall -L/usr/local/lib -L/usr/X11R6/lib -o libxio.la libxio.lo -lm -lz rm -fr .libs/libxio.a .libs/libxio.la ar cru .libs/libxio.a .libs/libxio.o ranlib .libs/libxio.a creating libxio.la (cd .libs && rm -f libxio.la && ln -s ../libxio.la libxio.la) Making all in docs Making all in man Making all in html Making all in release-notes Making all in contrib Making all in pnmpvn Making all in libdldarwin Making all in libsupport Making all in libioaux Making all in aclib Making all in avilib Making all in libac3 Making all in libvo Making all in import Making all in nuv Making all in v4l Making all in export Making all in filter Making all in pp Making all in divxkey Making all in extsub Making all in yuvdenoise Making all in preview Making all in subtitler Making all in src Making all in tools Making all in testsuite phreke:/home/portobj/transcode-1.0.1/build-amd64% maybe there was a problem in the 1.0.0rc1 Makefile ... that _was_ the first candidate of a 1.0.0 release ... but then again, if you're not using IBP, libxio isn't used anyway. -- From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 5 17:20:04 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF10E16A41F for ; Sat, 5 Nov 2005 17:20:04 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from schitzo.solgatos.com (c-67-168-241-176.hsd1.or.comcast.net [67.168.241.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6C9843D6B for ; Sat, 5 Nov 2005 17:19:59 +0000 (GMT) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by schitzo.solgatos.com (8.11.6/8.11.6) with UUCP id jA5HK4e32613; Sat, 5 Nov 2005 09:20:04 -0800 Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id RAA00017; Sat, 5 Nov 2005 17:19:56 GMT Message-Id: <200511051719.RAA00017@sopwith.solgatos.com> To: jakemsr@jakemsr.com, freebsd-multimedia@freebsd.org Date: Sat, 05 Nov 2005 09:19:56 +0000 From: Dieter Cc: Subject: Re: trying to convert mpeg2 to dv (using transcode or mencoder or ???) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Nov 2005 17:20:05 -0000 > first, definitely use transcode-1.0.1 (or wait until 1.0.2 comes > out, probably this weekend). problems with both DV export and > amd64 were fixed between 1.0.0rc1 and 1.0.1. # transcode -c 10-50 -D 0 -x mpeg2 -y dvraw -i test.mpeg2 -o test_transcode.dv transcode v1.0.1 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg libdvdread: Using libdvdcss version 1.2.8 for DVD access libdvdread: Can't open file VIDEO_TS.IFO. [transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms [transcode] auto-probing source test.mpeg2 (ok) [transcode] V: import format | unknown (V=mpeg2|A=null) [transcode] V: import frame | disabled [transcode] V: bits/pixel | 0.000 (unknown) [transcode] V: decoding fps,frc | 25.000,0 [transcode] V: Y'CbCr | YV12/I420 [transcode] A: import | disabled [transcode] A: export | disabled [transcode] V: encoding fps,frc | 25.000,3 [transcode] A: bytes per frame | 0 (0.000000) [transcode] A: adjustment | 0@1000 [transcode] V: IA32/AMD64 accel | sse3 (sse3 sse2 sse 3dnowext 3dnow mmxext mmx asm C) tc_memcpy: using amd64 for memcpy [transcode] V: video buffer | 10 @ 0x0 [import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null [import_mpeg2.so] v0.4.0 (2003-10-02) (video) MPEG2 [export_null.so] v0.1.2 (2001-08-17) (video) null | (audio) null [export_dvraw.so] v0.4 (2003-10-14) (video) Digital Video | (audio) PCM [import_mpeg2.so] tcextract -x mpeg2 -i "test.mpeg2" -d 0 | tcdecode -x mpeg2 -d 0 -y yv12 tc_memcpy: using amd64 for memcpy [decode_mpeg2.c] libmpeg2 0.4.0b loop decoder [decode_mpeg2.c] libmpeg2 acceleration: none (plain C) encoding frame [49], 316.41 fps, 100.0%, ETA: 0:00:00, ( 0| 0| 0) clean up | frame threads | unload modules | cancel signal | internal threads | done [transcode] encoded 40 frames (0 dropped, 0 cloned), clip length 1.60 s # ll total 10256 -rw-r--r-- 1 root wheel 10485760 Nov 4 17:23 test.mpeg2 -rw-r--r-- 1 root wheel 0 Nov 5 16:55 test_transcode.dv # # find / -name VIDEO_TS.IFO # # transcode -c 10-50 -D 0 -x mpeg2,null -y dvraw -i test.mpeg2 -o test_transcode.dv transcode v1.0.1 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg libdvdread: Using libdvdcss version 1.2.8 for DVD access libdvdread: Can't open file VIDEO_TS.IFO. [transcode] (probe) suggested AV correction -D 0 (0 ms) | AV 0 ms | 0 ms [transcode] auto-probing source test.mpeg2 (ok) [transcode] V: import format | unknown (V=mpeg2|A=null) [transcode] V: import frame | disabled [transcode] V: bits/pixel | 0.000 (unknown) [transcode] V: decoding fps,frc | 25.000,0 [transcode] V: Y'CbCr | YV12/I420 [transcode] A: import format | 0x2000 AC3 [ 0,16,0] [transcode] A: export format | 0x55 MPEG layer-3 [ 0,16,0] 128 kbps [transcode] V: encoding fps,frc | 25.000,3 [transcode] A: bytes per frame | 0 (0.000000) [transcode] A: adjustment | 0@1000 [transcode] V: IA32/AMD64 accel | sse3 (sse3 sse2 sse 3dnowext 3dnow mmxext mmx asm C) tc_memcpy: using amd64 for memcpy [transcode] V: video buffer | 10 @ 0x0 [import_null.so] v0.2.0 (2002-01-19) (video) null | (audio) null [import_mpeg2.so] v0.4.0 (2003-10-02) (video) MPEG2 [export_dvraw.so] v0.4 (2003-10-14) (video) Digital Video | (audio) PCM [import_mpeg2.so] tcextract -x mpeg2 -i "test.mpeg2" -d 0 | tcdecode -x mpeg2 -d 0 -y yv12 tc_memcpy: using amd64 for memcpy [decode_mpeg2.c] libmpeg2 0.4.0b loop decoder [decode_mpeg2.c] libmpeg2 acceleration: none (plain C) Segmentation fault: 11 (core dumped) # Is "-x mpeg2" the correct thing to use for an over-the-air transport stream? From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 5 22:45:07 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C761816A41F for ; Sat, 5 Nov 2005 22:45:07 +0000 (GMT) (envelope-from danny@ricin.com) Received: from smtpq2.groni1.gr.home.nl (smtpq2.groni1.gr.home.nl [213.51.130.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 247B643D48 for ; Sat, 5 Nov 2005 22:45:06 +0000 (GMT) (envelope-from danny@ricin.com) Received: from [213.51.130.190] (port=48083 helo=smtp1.groni1.gr.home.nl) by smtpq2.groni1.gr.home.nl with esmtp (Exim 4.30) id 1EYWmX-0000ZD-DS for freebsd-multimedia@freebsd.org; Sat, 05 Nov 2005 23:45:05 +0100 Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:59885 helo=desktop.homenet) by smtp1.groni1.gr.home.nl with esmtp (Exim 4.30) id 1EYWmV-0006Jd-S9 for freebsd-multimedia@freebsd.org; Sat, 05 Nov 2005 23:45:03 +0100 From: Danny Pansters To: freebsd-multimedia@freebsd.org Date: Sat, 5 Nov 2005 23:43:05 +0000 User-Agent: KMail/1.8.2 X-Face: :N, f2_*44g[tRY8Y-gL2zi`G|<6SpFjTeHt|V5LO6Yl2E7yAfEh{E6-8pqxUFX"l)=?utf-8?q?Nm8y=7E=0A=09IWJSAWQ=7D+=3DpP=7CT=5D?=@sy1sz%h)*CW6gtbp]"fe@MjICtIUo.0, CH~{[R4PXSyL MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_KOUbDDCuo4BWdQN" Message-Id: <200511052343.06171.danny@ricin.com> X-AtHome-MailScanner-Information: Please contact support@home.nl for more information X-AtHome-MailScanner: Found to be clean Subject: Bktr on FreeBSD-6.0: Hauppauge WinCast/TV (Bt878) card detection is broken. 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, 05 Nov 2005 22:45:08 -0000 --Boundary-00=_KOUbDDCuo4BWdQN Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Card details: Hauppauge WinTV, year 2000 Tuner: WinTV PAL-B/G-I 44354 Rev A242 Capture: Conexant Bt878KHF This is when using the module (with or without setting sysctls) on 6.0, clearly the detection is wrong, tv apps fail: bktr_mem: memory holder loaded bktr0: mem 0xdfefe000-0xdfefefff irq 19 at device 3.0 on pci6 bktr0: [GIANT-LOCKED] bktr0: Warning - card vendor 0x0272 (model 0x13eb) unknown. bktr0: Pinnacle/Miro TV, Temic NTSC tuner, remote control. This is when card and tuner are overridden in kernel on 6.0, now the driver shows the correct things, but doesn't seem to use them because tv apps still fail: bktr0: mem 0xdfefe000-0xdfefefff irq 19 at device 3.0 on pci6 bktr0: [GIANT-LOCKED] bktr0: Hauppauge WinCast/TV, Philips FR1216 PAL FM tuner, msp3400c stereo, remote control. This is when using the module (no sysctls needed) on a 5.3-RELEASE test box (I know I've used this card succesfully on 5.3) it's correct: bktr_mem: memory holder loaded bktr0: mem 0xef000000-0xef000fff at device 13.0 on pci2 bktr0: [GIANT-LOCKED] bktr0: Hauppauge Model 44354 A242 bktr0: Detected a MSP3415D-B3 at 0x80 bktr0: Hauppauge WinCast/TV, Philips FR1216 PAL FM tuner, msp3400c stereo, remote control. So for my WinTV card bktr is (was) broken on 6.0. Anyone else seen this? I have the feeling that it's the EEPROM telling bktr unexpected things. There's no vendor 0x0272 in pci_vendors, it must be 0x0070, Hauppauge. In 5.3 could it be using PCI register, not EEPROM, for detection of this card? Dumb workaround I'm using now (with module, no sysctls set) attached. --Boundary-00=_KOUbDDCuo4BWdQN Content-Type: text/x-diff; charset="us-ascii"; name="bktr_card.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bktr_card.c.diff" --- bktr_card.c.orig Sat Nov 5 18:51:41 2005 +++ bktr_card.c Sat Nov 5 18:56:46 2005 @@ -593,6 +593,7 @@ #define PCI_VENDOR_IODATA 0x10fc #define PCI_VENDOR_PINNACLE_ALT 0xBD11 /* They got their own ID backwards? */ #define PCI_VENDOR_PINNACLE_NEW 0x11BD +#define PCI_VENDOR_HAUPPAUGE_ALT 0x0272 #define MODEL_IODATA_GV_BCTV3_PCI 0x4020 @@ -685,7 +686,8 @@ goto checkTuner; } - if (subsystem_vendor_id == PCI_VENDOR_HAUPPAUGE) { + if ((subsystem_vendor_id == PCI_VENDOR_HAUPPAUGE) + || (subsystem_vendor_id == PCI_VENDOR_HAUPPAUGE_ALT)) { bktr->card = cards[ (card = CARD_HAUPPAUGE) ]; bktr->card.eepromAddr = eeprom_i2c_address; bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE); --Boundary-00=_KOUbDDCuo4BWdQN--