From owner-freebsd-multimedia@FreeBSD.ORG Wed Aug 3 07:05:08 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 8C16216A41F for ; Wed, 3 Aug 2005 07:05:08 +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 F3EE743D48 for ; Wed, 3 Aug 2005 07:05:07 +0000 (GMT) (envelope-from jakemsr@jakemsr.com) Received: (qmail 19554 invoked from network); 3 Aug 2005 07:05:06 -0000 Received: from unknown (HELO puff.jakemsr.gom) (63.111.27.87) by mail231.csoft.net with SMTP; 3 Aug 2005 07:05:06 -0000 Received: (from jakemsr@jakemsr.com) by puff.jakemsr.gom (mini_sendmail/1.3.5 16nov2003); Wed, 03 Aug 2005 00:05:06 PDT (sender jakemsr@puff.jakemsr.gom) Date: Wed, 3 Aug 2005 00:05:06 -0700 From: Jacob Meuser To: freebsd-multimedia@freebsd.org Message-ID: <20050803070506.GD1823@puff.jakemsr.gom> Mail-Followup-To: freebsd-multimedia@freebsd.org References: <20050729181650.27cd6f1c@it.buh.cameradicommercio.ro> <42EDB8F6.1090807@inetis.com> <20050801120559.68b055d2@it.buh.tecnik93.com> <42EF0787.7090800@inetis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42EF0787.7090800@inetis.com> User-Agent: Mutt/1.4.2i Subject: Re: xawtv questions 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, 03 Aug 2005 07:05:08 -0000 On Tue, Aug 02, 2005 at 07:41:27AM +0200, Karel Miklav wrote: > Ion-Mihai Tetcu wrote: > >>> - I have to select select each time the sound source > >>> (internal/external since tuner doesn't seem to provide anything); > >>> I haven't found a way to set the sound source in xawtv docs. > >> > >> There's nothing in the docs, I guess it just works for some cards. > >> I made a little change in the sources, if you want to see it I can > >> send it later. > > > > Please do. I start looking in the sources, both motv and bktr, but > > I'm still missing something (actually I know how to force audio > > source modifying bktr sources, which "strangely" are easier to > > understand but that isn't the right solution). > > When input on bktr driver is changed, audio on some cards seem to be > reset. I'm not shure whether this is intentional or not as I didn't > threw my eyes on the driver itself yet. Anyway, a small change in > file drv0-bsd.c at function bsd_write_attr() helps: > > case ATTR_ID_INPUT: > xioctl(h->fd,METEORSINPUT,&inputs_map[value]); > xioctl(h->tfd, BT848_SAUDIO, &audio_map[2]); // fix > break; > > First ioctl changes video input and does something undefined to the > audio channel. look in bktr_core.c. METEORSINPUT sets the audio channel as well. I never noticed that before. it strikes me as curious behaviour, since METEORSINPUT is for setting the video source, and there is a separate ioctl for setting the audio source. maybe I do want to continue with audio from the tuner and switch to audio from the RCA input without a break in the audio ... --