Explorar el Código

V4L/DVB (10832): tvaudio: Avoid breakage with tda9874a

The 'bytes' array is 64 bytes large but the easy standard programming
    (TDA9874A_ESP) has a number of 255, outside the shadow array size.

This patch increases the size of the shadow array in order to accomodate
this register.

Signed-off-by: Vitaly Wool <vital@embeddedalley.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Vitaly Wool hace 16 años
padre
commit
4c6c390eb8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      drivers/media/video/tvaudio.c

+ 1 - 1
drivers/media/video/tvaudio.c

@@ -54,7 +54,7 @@ MODULE_LICENSE("GPL");
 /* ---------------------------------------------------------------------- */
 /* our structs                                                            */
 
-#define MAXREGS 64
+#define MAXREGS 256
 
 struct CHIPSTATE;
 typedef int  (*getvalue)(int);