From owner-freebsd-multimedia@FreeBSD.ORG Sun Apr 24 04:42:35 2005 Return-Path: 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 4093616A4CF for ; Sun, 24 Apr 2005 04:42:35 +0000 (GMT) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17CE043D54 for ; Sun, 24 Apr 2005 04:42:35 +0000 (GMT) (envelope-from julian@elischer.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id 0F5FC1F4605; Sat, 23 Apr 2005 21:42:35 -0700 (PDT) Received: from [192.168.2.3] (home.elischer.org [216.240.48.38]) by idiom.com (8.12.11/8.12.11) with ESMTP id j3O4gY1e018075; Sat, 23 Apr 2005 21:42:34 -0700 (PDT) (envelope-from julian@elischer.org) Message-ID: <426B23BA.6060206@elischer.org> Date: Sat, 23 Apr 2005 21:42:34 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050214 X-Accept-Language: en, hu MIME-Version: 1.0 To: Jacob Meuser References: <20050423225506.GA25461@puff.jakemsr.gom> In-Reply-To: <20050423225506.GA25461@puff.jakemsr.gom> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-multimedia@freebsd.org Subject: Re: patch for bktr(4): don't reset tuner on open/close X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 04:42:35 -0000 Jacob Meuser wrote: > the following is a patch that is in OpenBSD's bktr. > > the idea is to not reset the tuner device on open(2) and close(2). > > effects: > - don't need to hold /dev/tuner open to get audio. > - selected channelset won't get clobbered on open/close. IMO, the > current behaviour here is idiotic. the channelset has nothing to > do with the hardware. it is internally used by the driver. also, > this is IMO a much cleaner fix to the problems with V4L programs > not tuning properly because they never set the channelset. now > the correct channelset can be set at bootup with something like > bsdbktrtvtune or whatever, instead of rebuilding the kernel with > the default channelset hardcoded into the driver. > > BTW, I haven't tested this on FreeBSD at all. it might need some > tweaking. the diff is also set up so that BKTR_NO_OPEN_RESET must > be defined to enable it. ultimately, I think this should be the > default behaviour. > can you comment on what you mean by "V4L programs"? (since we don't have V4L on freeBSD (as such))