linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] bttv-cards.c: #if 0 function bttv_reset_audio
@ 2004-12-16 22:18 Adrian Bunk
  2004-12-17 15:30 ` Bill Davidsen
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2004-12-16 22:18 UTC (permalink / raw)
  To: Gerd Knorr; +Cc: video4linux-list, linux-kernel

The function bttv_reset_audio in drivers/media/video/bttv-cards.c is
completely unused.


Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc3-mm1-full/drivers/media/video/bttv-cards.c.old	2004-12-16 22:20:07.000000000 +0100
+++ linux-2.6.10-rc3-mm1-full/drivers/media/video/bttv-cards.c	2004-12-16 22:20:30.000000000 +0100
@@ -2498,7 +2498,7 @@
 }
 
 /* ----------------------------------------------------------------------- */
-
+#if 0
 void bttv_reset_audio(struct bttv *btv)
 {
 	/*
@@ -2519,6 +2519,7 @@
 	udelay(10);
 	btwrite(     0, 0x058);
 }
+#endif  /*  0  */
 
 /* initialization part one -- before registering i2c bus */
 void __devinit bttv_init_card1(struct bttv *btv)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6 patch] bttv-cards.c: #if 0 function bttv_reset_audio
  2004-12-16 22:18 [2.6 patch] bttv-cards.c: #if 0 function bttv_reset_audio Adrian Bunk
@ 2004-12-17 15:30 ` Bill Davidsen
  0 siblings, 0 replies; 2+ messages in thread
From: Bill Davidsen @ 2004-12-17 15:30 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Gerd Knorr, video4linux-list, linux-kernel

Adrian Bunk wrote:
> The function bttv_reset_audio in drivers/media/video/bttv-cards.c is
> completely unused.

Looking at the comments and some old posts on the topic, are you sure 
this is the right fix? It is uncalled, and has been since 2.6.0 (oldest 
thing I have handy), but I think the actual bug may be that someone 
forget to call it, possibly from bttv_init_card2?

It would appear to not be needed because a reset clears it, but in the 
event that resume starts working, it might be useful.

> 
> 
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
> 
> --- linux-2.6.10-rc3-mm1-full/drivers/media/video/bttv-cards.c.old	2004-12-16 22:20:07.000000000 +0100
> +++ linux-2.6.10-rc3-mm1-full/drivers/media/video/bttv-cards.c	2004-12-16 22:20:30.000000000 +0100
> @@ -2498,7 +2498,7 @@
>  }
>  
>  /* ----------------------------------------------------------------------- */
> -
> +#if 0
>  void bttv_reset_audio(struct bttv *btv)
>  {
>  	/*
> @@ -2519,6 +2519,7 @@
>  	udelay(10);
>  	btwrite(     0, 0x058);
>  }
> +#endif  /*  0  */
>  
>  /* initialization part one -- before registering i2c bus */
>  void __devinit bttv_init_card1(struct bttv *btv)
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


-- 
    -bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
  last possible moment - but no longer"  -me

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-17 15:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-16 22:18 [2.6 patch] bttv-cards.c: #if 0 function bttv_reset_audio Adrian Bunk
2004-12-17 15:30 ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).