Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156752
b: refs/heads/master
c: ed18d0c
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Mauro Carvalho Chehab committed Aug 13, 2009
1 parent 9cad12a commit a41845e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5b766182a110311fbf618f736bc8a8f2f7ce3f4c
refs/heads/master: ed18d0c87ee0ab6e0985d83c19cd135b1bd54998
3 changes: 2 additions & 1 deletion trunk/drivers/media/video/ivtv/ivtv-controls.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <linux/kernel.h>

#include "ivtv-driver.h"
#include "ivtv-cards.h"
Expand Down Expand Up @@ -281,7 +282,7 @@ int ivtv_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))
ivtv_call_all(itv, audio, s_clock_freq, freqs[idx]);
return err;
}
Expand Down

0 comments on commit a41845e

Please sign in to comment.