Re: Close tzap and cannot lock frequency anymore?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Montag, den 16.10.2006, 10:27 +0800 schrieb Chun Chung Lo:
> Hi all,
> 
> I wonder during I am capturing TS stream by using a DVB-T card (Compro
> Videomate T300) in a Linux PC (2.6.16-18), I followed the instructions
> shown in linuxtv-dvb-apps and run tzap and capture TS.
> 
> Because I think all the parameters are written into the hardware of the
> tuner, and the tzap also shown FE_HAS_LOCKED, so I think I have no need
> to keep polling the tuner and I switched off tzap.
> 
> But when I switched off tzap, I found that my TS capturing is stoped! (I
> found that some TS data is missing in the captured TS file.) But when I
> keep tzap running, no such problem occur.
> 
> Please help. Thanks.
> 
> Best regards,
> Lo Chun Chung
> 
> This message (including any attachments) is for the named addressee(s)'s use only. It may contain
> sensitive, confidential, private proprietary or legally privileged information intended for a
> specific individual and purpose, and is protected by law. If you are not the intended recipient,
> please immediately delete it and all copies of it from your system, destroy any hard copies of it
> and notify the sender. Any use, disclosure, copying, or distribution of this message and/or any
> attachments is strictly prohibited.
> 
> 
> 
> _______________________________________________
> linux-dvb mailing list
> linux-dvb@xxxxxxxxxxx
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


saa7134-dvb.c

/*
 *
 * (c) 2004 Gerd Knorr <kraxel@xxxxxxxxxxx> [SuSE Labs]
 *
 *  Extended 3 / 2005 by Hartmut Hackmann to support various
 *  cards with the tda10046 DVB-T channel decoder
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */


> 	case SAA7134_BOARD_VIDEOMATE_DVBT_300:
> 		dev->dvb.frontend = dvb_attach(tda10046_attach,
> 					       &philips_europa_config,
> 					       &dev->i2c_adap);
> 		if (dev->dvb.frontend) {
> 			dev->dvb.frontend->ops.tuner_ops.init = philips_europa_tuner_init;
> 			dev->dvb.frontend->ops.tuner_ops.sleep = philips_europa_tuner_sleep;
> 			dev->dvb.frontend->ops.tuner_ops.set_params = philips_td1316_tuner_set_params;
> 		}
> 		break;


> static int philips_europa_tuner_sleep(struct dvb_frontend *fe)
> {
> 	struct saa7134_dev *dev = fe->dvb->priv;
> 	/* this message actually turns the tuner back to analog mode */
> 	static u8 msg[] = { 0x0b, 0xdc, 0x86, 0xa4 };
> 	struct i2c_msg analog_msg = {.addr = 0x61,.flags = 0,.buf = msg,.len = sizeof(msg) };
> 
> 	i2c_transfer(&dev->i2c_adap, &analog_msg, 1);
> 	msleep(1);
> 
> 	/* switch the board to analog mode */
> 	analog_msg.addr = 0x43;
> 	analog_msg.len  = 0x02;
> 	msg[0] = 0x00;
> 	msg[1] = 0x14;
> 	if (fe->ops.i2c_gate_ctrl)
> 		fe->ops.i2c_gate_ctrl(fe, 1);
> 	i2c_transfer(&dev->i2c_adap, &analog_msg, 1);
> 	return 0;
> }

Maybe here?

This message (including any attachments) is not for the named addressee(s)'s use only. It may not contain
sensitive, confidential, private proprietary or legally privileged information intended for a
specific individual and purpose, but is protected by law. If you are not the intended recipient,
feel free to immediately delete it and all copies of it from your system, destroy any hard copies of it,
but do not notify the sender. Any use, disclosure, copying, or distribution of this message and/or any
attachments is not prohibited.

Cheers,
Hermann



_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux