From owner-freebsd-multimedia@FreeBSD.ORG Tue Aug 2 05:41:48 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 B7B5016A41F for ; Tue, 2 Aug 2005 05:41:48 +0000 (GMT) (envelope-from karel@inetis.com) Received: from inetis.com (cpe-212-18-40-64.adsl.amis.net [212.18.40.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id D794A43D45 for ; Tue, 2 Aug 2005 05:41:47 +0000 (GMT) (envelope-from karel@inetis.com) Received: from [192.168.0.14] ([192.168.0.14]) by inetis.com with MailEnable ESMTP; Tue, 02 Aug 2005 07:41:26 +0200 Message-ID: <42EF0787.7090800@inetis.com> Date: Tue, 02 Aug 2005 07:41:27 +0200 From: Karel Miklav User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ion-Mihai Tetcu , freebsd-multimedia@freebsd.org References: <20050729181650.27cd6f1c@it.buh.cameradicommercio.ro> <42EDB8F6.1090807@inetis.com> <20050801120559.68b055d2@it.buh.tecnik93.com> In-Reply-To: <20050801120559.68b055d2@it.buh.tecnik93.com> X-Enigmail-Version: 0.91.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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: Tue, 02 Aug 2005 05:41:48 -0000 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. The second ioctl is my fix - I explicitly assign audio channel. &audio_map[2] is for internal line, change this as appropriate. I didn't want to invest more time into this because what I really want is audio to work in mplayer. > > cat ~/.mplayer/input.conf > MOUSE_BTN0 tv_step_channel 1 > MOUSE_BTN2 tv_step_channel -1 > > Left button mouse click change one station down and right button one up. > (see: mplayer -input keylist, mplayer -input cmdlist) Wow, great. I only need to fix the audio channel in bktr now... -- Regards, Karel Miklav