adv7183.c (e12771100c93e101a7a8b302b6c5d57cff7b1551) adv7183.c (7dd8fbbe50c01ead78483bc42f744d115afec96b)
1/*
2 * adv7183.c Analog Devices ADV7183 video decoder driver
3 *
4 * Copyright (c) 2011 Analog Devices Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 360 unchanged lines hidden (view full) ---

369
370 /* wait autodetection switch */
371 mdelay(10);
372
373 /* get autodetection result */
374 reg = adv7183_read(sd, ADV7183_STATUS_1);
375 switch ((reg >> 0x4) & 0x7) {
376 case 0:
1/*
2 * adv7183.c Analog Devices ADV7183 video decoder driver
3 *
4 * Copyright (c) 2011 Analog Devices Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

--- 360 unchanged lines hidden (view full) ---

369
370 /* wait autodetection switch */
371 mdelay(10);
372
373 /* get autodetection result */
374 reg = adv7183_read(sd, ADV7183_STATUS_1);
375 switch ((reg >> 0x4) & 0x7) {
376 case 0:
377 *std = V4L2_STD_NTSC;
377 *std &= V4L2_STD_NTSC;
378 break;
379 case 1:
378 break;
379 case 1:
380 *std = V4L2_STD_NTSC_443;
380 *std &= V4L2_STD_NTSC_443;
381 break;
382 case 2:
381 break;
382 case 2:
383 *std = V4L2_STD_PAL_M;
383 *std &= V4L2_STD_PAL_M;
384 break;
385 case 3:
384 break;
385 case 3:
386 *std = V4L2_STD_PAL_60;
386 *std &= V4L2_STD_PAL_60;
387 break;
388 case 4:
387 break;
388 case 4:
389 *std = V4L2_STD_PAL;
389 *std &= V4L2_STD_PAL;
390 break;
391 case 5:
390 break;
391 case 5:
392 *std = V4L2_STD_SECAM;
392 *std &= V4L2_STD_SECAM;
393 break;
394 case 6:
393 break;
394 case 6:
395 *std = V4L2_STD_PAL_Nc;
395 *std &= V4L2_STD_PAL_Nc;
396 break;
397 case 7:
396 break;
397 case 7:
398 *std = V4L2_STD_SECAM;
398 *std &= V4L2_STD_SECAM;
399 break;
400 default:
401 *std = V4L2_STD_UNKNOWN;
402 break;
403 }
404
405 /* after std detection, write back user set std */
406 adv7183_s_std(sd, decoder->std);

--- 244 unchanged lines hidden ---
399 break;
400 default:
401 *std = V4L2_STD_UNKNOWN;
402 break;
403 }
404
405 /* after std detection, write back user set std */
406 adv7183_s_std(sd, decoder->std);

--- 244 unchanged lines hidden ---