Lines Matching refs:mode
67 typedef void (*setaudmode)(struct CHIPSTATE*, int mode);
314 int mode, selected; in chip_thread() local
333 mode = desc->getrxsubchans(chip); in chip_thread()
334 if (mode == chip->prevmode) in chip_thread()
340 chip->prevmode = mode; in chip_thread()
345 if (mode & V4L2_TUNER_SUB_LANG1) in chip_thread()
350 if (mode & V4L2_TUNER_SUB_LANG1) in chip_thread()
352 else if (mode & V4L2_TUNER_SUB_STEREO) in chip_thread()
356 if (mode & V4L2_TUNER_SUB_LANG2) in chip_thread()
358 else if (mode & V4L2_TUNER_SUB_STEREO) in chip_thread()
362 if (mode & V4L2_TUNER_SUB_LANG2) in chip_thread()
364 else if (mode & V4L2_TUNER_SUB_STEREO) in chip_thread()
403 int val, mode; in tda9840_getrxsubchans() local
406 mode = V4L2_TUNER_SUB_MONO; in tda9840_getrxsubchans()
408 mode |= V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2; in tda9840_getrxsubchans()
410 mode = V4L2_TUNER_SUB_STEREO; in tda9840_getrxsubchans()
414 val, mode); in tda9840_getrxsubchans()
415 return mode; in tda9840_getrxsubchans()
418 static void tda9840_setaudmode(struct CHIPSTATE *chip, int mode) in tda9840_setaudmode() argument
423 switch (mode) { in tda9840_setaudmode()
562 int mode, val; in tda985x_getrxsubchans() local
566 mode = V4L2_TUNER_SUB_MONO; in tda985x_getrxsubchans()
569 mode = V4L2_TUNER_SUB_STEREO; in tda985x_getrxsubchans()
571 mode |= V4L2_TUNER_SUB_SAP; in tda985x_getrxsubchans()
572 return mode; in tda985x_getrxsubchans()
575 static void tda985x_setaudmode(struct CHIPSTATE *chip, int mode) in tda985x_setaudmode() argument
580 switch (mode) { in tda985x_setaudmode()
723 int val,mode; in tda9873_getrxsubchans() local
726 mode = V4L2_TUNER_SUB_MONO; in tda9873_getrxsubchans()
728 mode = V4L2_TUNER_SUB_STEREO; in tda9873_getrxsubchans()
730 mode |= V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2; in tda9873_getrxsubchans()
733 val, mode); in tda9873_getrxsubchans()
734 return mode; in tda9873_getrxsubchans()
737 static void tda9873_setaudmode(struct CHIPSTATE *chip, int mode) in tda9873_setaudmode() argument
755 switch (mode) { in tda9873_setaudmode()
778 mode, sw_data); in tda9873_setaudmode()
926 int dsr,nsr,mode; in tda9874a_getrxsubchans() local
929 mode = V4L2_TUNER_SUB_MONO; in tda9874a_getrxsubchans()
932 return mode; in tda9874a_getrxsubchans()
934 return mode; in tda9874a_getrxsubchans()
936 return mode; in tda9874a_getrxsubchans()
952 mode = V4L2_TUNER_SUB_STEREO; in tda9874a_getrxsubchans()
954 mode |= V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2; in tda9874a_getrxsubchans()
957 mode = V4L2_TUNER_SUB_STEREO; in tda9874a_getrxsubchans()
959 mode |= V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2; in tda9874a_getrxsubchans()
964 dsr, nsr, necr, mode); in tda9874a_getrxsubchans()
965 return mode; in tda9874a_getrxsubchans()
968 static void tda9874a_setaudmode(struct CHIPSTATE *chip, int mode) in tda9874a_setaudmode() argument
992 switch(mode) { in tda9874a_setaudmode()
1016 mode, aosr, mdacosr); in tda9874a_setaudmode()
1021 switch(mode) { in tda9874a_setaudmode()
1055 mode, fmmr, aosr); in tda9874a_setaudmode()
1299 static void tda8425_setaudmode(struct CHIPSTATE *chip, int mode) in tda8425_setaudmode() argument
1303 switch (mode) { in tda8425_setaudmode()
1380 int val, mode; in ta8874z_getrxsubchans() local
1383 mode = V4L2_TUNER_SUB_MONO; in ta8874z_getrxsubchans()
1385 mode |= V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2; in ta8874z_getrxsubchans()
1387 mode = V4L2_TUNER_SUB_STEREO; in ta8874z_getrxsubchans()
1392 return mode; in ta8874z_getrxsubchans()
1401 static void ta8874z_setaudmode(struct CHIPSTATE *chip, int mode) in ta8874z_setaudmode() argument
1407 v4l2_dbg(1, debug, sd, "ta8874z_setaudmode(): mode: 0x%02x\n", mode); in ta8874z_setaudmode()
1409 switch(mode){ in ta8874z_setaudmode()