[linux-dvb] [PATCH] for compatibility with software suspend

Johannes Stezenbach js at linuxtv.org
Tue Feb 22 17:19:13 CET 2005


Dietrich Rothe wrote:
> This makes DVB modules Software Suspend 2 compatible. I corrected a
> lack of initialization bug which let tuning fail after resume.
> 
> I now adjusted my changes for the current cvs version. Here, again,
> is the patch:
> 
> Index: linux/drivers/media/dvb/dvb-core/dvb_frontend.c
> ===================================================================
> RCS 
> file: /cvs/linuxtv/dvb-kernel/linux/drivers/media/dvb/dvb-core/dvb_frontend.c,v
> retrieving revision 1.104
> diff -u -r1.104 dvb_frontend.c
> --- linux/drivers/media/dvb/dvb-core/dvb_frontend.c 24 Jan 2005 22:43:47 -0000 
> 1.104
> +++ linux/drivers/media/dvb/dvb-core/dvb_frontend.c 21 Feb 2005 17:20:42 -0000
> @@ -882,6 +882,9 @@
>   init_MUTEX (&fepriv->events.sem);
>   fe->dvb = dvb;
>   fepriv->inversion = INVERSION_OFF;
> + 
> + fepriv->thread_pid = 0;
> + fepriv->exit = 1;
>  
>   printk ("DVB: registering frontend %i (%s)...\n",
>    fe->dvb->num,

fepriv is memset to zero just a few lines above, and fepriv->exit
is then initialized in dvb_frontend_start().

Whatever your problem is, it must be elsewhere.

Johannes




More information about the linux-dvb mailing list