The patch number 10917 was added via Hans Verkuil <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <[email protected]>

------

From: Hans Verkuil  <[email protected]>
cx88-alsa: fix compile warning for kernels <=2.6.20.


Priority: normal

Signed-off-by: Hans Verkuil <[email protected]>


---

 linux/drivers/media/video/cx88/cx88-alsa.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff -r 09564ea937fd -r 84e8ed264572 linux/drivers/media/video/cx88/cx88-alsa.c
--- a/linux/drivers/media/video/cx88/cx88-alsa.c        Fri Mar 06 14:35:27 
2009 +0100
+++ b/linux/drivers/media/video/cx88/cx88-alsa.c        Fri Mar 06 14:41:13 
2009 +0100
@@ -657,8 +657,12 @@ static int snd_cx88_volume_put(struct sn
        return changed;
 }
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 21)
 static const DECLARE_TLV_DB_SCALE(snd_cx88_db_scale, -6300, 100, 0);
+#else
+static DECLARE_TLV_DB_SCALE(snd_cx88_db_scale, -6300, 100, 0);
+#endif
 #endif
 
 static struct snd_kcontrol_new snd_cx88_volume = {


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/84e8ed2645724083d9b00166b8dc32bb8ad85cd2

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to