From 3d2a06a38aecb19becfda796416b00f12cbb6385 Mon Sep 17 00:00:00 2001 From: Andy Walls Date: Thu, 23 Jul 2009 21:51:29 -0300 Subject: [PATCH] --- yaml --- r: 156753 b: refs/heads/master c: 225aeb1c5863bc92c6bb1f921e9a6cf4d15dbb2a h: refs/heads/master i: 156751: 9cad12a9e6220d132c8aa44b94a1f0ce63450d48 v: v3 --- [refs] | 2 +- trunk/drivers/media/video/cx18/cx18-controls.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 5501c30b384c..5e76726de039 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ed18d0c87ee0ab6e0985d83c19cd135b1bd54998 +refs/heads/master: 225aeb1c5863bc92c6bb1f921e9a6cf4d15dbb2a diff --git a/trunk/drivers/media/video/cx18/cx18-controls.c b/trunk/drivers/media/video/cx18/cx18-controls.c index 5136df198338..93f0dae01350 100644 --- a/trunk/drivers/media/video/cx18/cx18-controls.c +++ b/trunk/drivers/media/video/cx18/cx18-controls.c @@ -20,6 +20,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA */ +#include #include "cx18-driver.h" #include "cx18-cards.h" @@ -317,7 +318,7 @@ int cx18_s_ext_ctrls(struct file *file, void *fh, struct v4l2_ext_controls *c) idx = p.audio_properties & 0x03; /* The audio clock of the digitizer must match the codec sample rate otherwise you get some very strange effects. */ - if (idx < sizeof(freqs)) + if (idx < ARRAY_SIZE(freqs)) cx18_call_all(cx, audio, s_clock_freq, freqs[idx]); return err; }