Lines Matching +full:dual +full:- +full:radio
1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * (c) 1997-2001 Gerd Knorr <kraxel@bytesex.org>
14 #include <media/v4l2-common.h>
15 #include <media/drv-intf/msp3400.h>
18 #include "msp3400-driver.h"
31 "4.5/4.72 M Dual FM-Stereo", V4L2_STD_MN },
33 "5.5/5.74 B/G Dual FM-Stereo", V4L2_STD_BG },
35 "6.5/6.25 D/K1 Dual FM-Stereo", V4L2_STD_DK },
37 "6.5/6.74 D/K2 Dual FM-Stereo", V4L2_STD_DK },
39 "6.5 D/K FM-Mono (HDEV3)", V4L2_STD_DK },
41 "6.5/5.74 D/K3 Dual FM-Stereo", V4L2_STD_DK },
55 "4.5 M BTSC-Stereo", V4L2_STD_MTS },
57 "4.5 M BTSC-Mono + SAP", V4L2_STD_MTS },
59 "4.5 M EIA-J Japan Stereo", V4L2_STD_NTSC_M_JP },
61 "10.7 FM-Stereo Radio", V4L2_STD_ALL },
63 "6.5 SAT-Mono", V4L2_STD_ALL },
65 "7.02/7.20 SAT-Stereo", V4L2_STD_ALL },
68 { -1, 0, 0, NULL, 0 }, /* EOF */
87 {-1, -1, -8, 2, 59, 126},
88 {-1, -1, -8, 2, 59, 126},
91 }, { /* FM Radio */
92 {-8, -8, 4, 6, 78, 107},
93 {-8, -8, 4, 6, 78, 107},
96 }, { /* Terrestrial FM-mono + FM-stereo */
101 }, { /* Sat FM-mono */
106 }, { /* NICAM/FM -- B/G (5.5/5.85), D/K (6.5/5.85) */
107 {-2, -8, -10, 10, 50, 86},
111 }, { /* NICAM/FM -- I (6.0/6.552) */
112 {2, 4, -6, -4, 40, 94},
116 }, { /* NICAM/AM -- L (6.5/5.85) */
117 {-2, -8, -10, 10, 50, 86},
118 {-4, -12, -9, 23, 79, 126},
139 { MSP_CARRIER(5.7421875), "5.742 PAL B/G FM-stereo" },
146 { MSP_CARRIER(6.2578125), "6.25 PAL D/K1 FM-stereo" },
147 { MSP_CARRIER(6.7421875), "6.74 PAL D/K2 FM-stereo" },
148 { MSP_CARRIER(7.02), "7.02 PAL SAT FM-stereo s/b" },
149 { MSP_CARRIER(7.20), "7.20 PAL SAT FM-stereo s" },
150 { MSP_CARRIER(7.38), "7.38 PAL SAT FM-stereo b" },
153 /* ------------------------------------------------------------------------ */
189 if (state->has_scart2_out) in msp_set_source()
206 int tuner = (state->route_in >> 3) & 1; in msp3400c_set_mode()
209 dev_dbg_lvl(&client->dev, 1, msp_debug, "set_mode: %d\n", mode); in msp3400c_set_mode()
210 state->mode = mode; in msp3400c_set_mode()
211 state->rxsubchans = V4L2_TUNER_SUB_MONO; in msp3400c_set_mode()
213 msp_write_dem(client, 0x00bb, data->ad_cv | (tuner ? 0x100 : 0)); in msp3400c_set_mode()
215 for (i = 5; i >= 0; i--) /* fir 1 */ in msp3400c_set_mode()
216 msp_write_dem(client, 0x0001, data->fir1[i]); in msp3400c_set_mode()
221 for (i = 5; i >= 0; i--) in msp3400c_set_mode()
222 msp_write_dem(client, 0x0005, data->fir2[i]); in msp3400c_set_mode()
224 msp_write_dem(client, 0x0083, data->mode_reg); in msp3400c_set_mode()
226 msp3400c_set_carrier(client, data->cdo1, data->cdo2); in msp3400c_set_mode()
228 msp_set_source(client, data->dsp_src); in msp3400c_set_mode()
233 msp_write_dsp(client, 0x000e, data->dsp_matrix); in msp3400c_set_mode()
234 if (state->has_nicam) /* nicam prescale */ in msp3400c_set_mode()
238 /* Set audio mode. Note that the pre-'G' models do not support BTSC+SAP,
246 char *modestr = (state->audmode >= 0 && state->audmode < 5) ? in msp3400c_set_audmode()
247 strmode[state->audmode] : "unknown"; in msp3400c_set_audmode()
249 int audmode = state->audmode; in msp3400c_set_audmode()
251 if (state->opmode == OPMODE_AUTOSELECT) { in msp3400c_set_audmode()
255 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_set_audmode()
257 state->audmode); in msp3400c_set_audmode()
265 if (state->mode != MSP_MODE_EXTERN) { in msp3400c_set_audmode()
267 if (state->rxsubchans == V4L2_TUNER_SUB_MONO) in msp3400c_set_audmode()
270 else if (state->rxsubchans & V4L2_TUNER_SUB_LANG2) { in msp3400c_set_audmode()
282 switch (state->mode) { in msp3400c_set_audmode()
284 dev_dbg_lvl(&client->dev, 1, msp_debug, "FM set_audmode: %s\n", modestr); in msp3400c_set_audmode()
298 dev_dbg_lvl(&client->dev, 1, msp_debug, "SAT set_audmode: %s\n", modestr); in msp3400c_set_audmode()
318 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_set_audmode()
320 if (state->nicam_on) in msp3400c_set_audmode()
324 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_set_audmode()
328 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_set_audmode()
333 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_set_audmode()
334 "FM-Radio set_audmode: %s\n", modestr); in msp3400c_set_audmode()
337 dev_dbg_lvl(&client->dev, 1, msp_debug, "mono set_audmode\n"); in msp3400c_set_audmode()
342 dev_dbg_lvl(&client->dev, 1, msp_debug, "set audmode %d\n", audmode); in msp3400c_set_audmode()
349 if (state->mode == MSP_MODE_AM_NICAM) { in msp3400c_set_audmode()
350 dev_dbg_lvl(&client->dev, 1, msp_debug, "switching to AM mono\n"); in msp3400c_set_audmode()
357 if (state->rxsubchans & V4L2_TUNER_SUB_STEREO) in msp3400c_set_audmode()
366 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_set_audmode()
376 if (state->main == state->second) in msp3400c_print_mode()
377 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_print_mode()
379 state->main / 910000, (state->main / 910) % 1000); in msp3400c_print_mode()
381 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_print_mode()
383 state->main / 910000, (state->main / 910) % 1000); in msp3400c_print_mode()
384 if (state->mode == MSP_MODE_FM_NICAM1 || state->mode == MSP_MODE_FM_NICAM2) in msp3400c_print_mode()
385 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_print_mode()
387 state->second / 910000, (state->second/910) % 1000); in msp3400c_print_mode()
388 if (state->mode == MSP_MODE_AM_NICAM) in msp3400c_print_mode()
389 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_print_mode()
391 state->second / 910000, (state->second / 910) % 1000); in msp3400c_print_mode()
392 if (state->mode == MSP_MODE_FM_TERRA && state->main != state->second) { in msp3400c_print_mode()
393 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_print_mode()
394 "FM-stereo carrier : %d.%03d MHz\n", in msp3400c_print_mode()
395 state->second / 910000, (state->second / 910) % 1000); in msp3400c_print_mode()
399 /* ----------------------------------------------------------------------- */
405 int rxsubchans = state->rxsubchans; in msp3400c_detect_stereo()
406 int newnicam = state->nicam_on; in msp3400c_detect_stereo()
409 switch (state->mode) { in msp3400c_detect_stereo()
413 val -= 65536; in msp3400c_detect_stereo()
414 dev_dbg_lvl(&client->dev, 2, msp_debug, in msp3400c_detect_stereo()
418 } else if (val < -4096) { in msp3400c_detect_stereo()
429 dev_dbg_lvl(&client->dev, 2, msp_debug, "nicam sync=%d, mode=%d\n", in msp3400c_detect_stereo()
458 if (rxsubchans != state->rxsubchans) { in msp3400c_detect_stereo()
460 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_detect_stereo()
462 state->rxsubchans, rxsubchans); in msp3400c_detect_stereo()
463 state->rxsubchans = rxsubchans; in msp3400c_detect_stereo()
465 if (newnicam != state->nicam_on) { in msp3400c_detect_stereo()
467 dev_dbg_lvl(&client->dev, 1, msp_debug, "watch: nicam %d => %d\n", in msp3400c_detect_stereo()
468 state->nicam_on, newnicam); in msp3400c_detect_stereo()
469 state->nicam_on = newnicam; in msp3400c_detect_stereo()
475 * A kernel thread for msp3400 control -- we don't want to block the
487 state->watch_stereo = 0; in watch_stereo()
497 dev_dbg_lvl(&client->dev, 1, msp_debug, "msp3400 daemon started\n"); in msp3400c_thread()
498 state->detected_std = V4L2_STD_ALL; in msp3400c_thread()
501 dev_dbg_lvl(&client->dev, 2, msp_debug, "msp3400 thread: sleep\n"); in msp3400c_thread()
502 msp_sleep(state, -1); in msp3400c_thread()
503 dev_dbg_lvl(&client->dev, 2, msp_debug, "msp3400 thread: wakeup\n"); in msp3400c_thread()
506 dev_dbg_lvl(&client->dev, 2, msp_debug, "thread: restart scan\n"); in msp3400c_thread()
507 state->restart = 0; in msp3400c_thread()
511 if (state->radio || MSP_MODE_EXTERN == state->mode) { in msp3400c_thread()
513 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_thread()
515 state->scan_in_progress = 0; in msp3400c_thread()
521 state->scan_in_progress = 1; in msp3400c_thread()
526 max1 = max2 = -1; in msp3400c_thread()
527 state->watch_stereo = 0; in msp3400c_thread()
528 state->nicam_on = 0; in msp3400c_thread()
534 /* carrier detect pass #1 -- main carrier */ in msp3400c_thread()
538 if (msp_amsound && (state->v4l2_std & V4L2_STD_SECAM)) { in msp3400c_thread()
542 dev_dbg_lvl(&client->dev, 1, msp_debug, "AM sound override\n"); in msp3400c_thread()
551 val -= 65536; in msp3400c_thread()
556 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_thread()
560 /* carrier detect pass #2 -- second (stereo) carrier */ in msp3400c_thread()
578 if (msp_amsound && (state->v4l2_std & V4L2_STD_SECAM)) { in msp3400c_thread()
590 val -= 65536; in msp3400c_thread()
595 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3400c_thread()
600 state->main = msp3400c_carrier_detect_main[max1].cdo; in msp3400c_thread()
603 state->detected_std = V4L2_STD_BG | V4L2_STD_PAL_H; in msp3400c_thread()
605 /* B/G FM-stereo */ in msp3400c_thread()
606 state->second = msp3400c_carrier_detect_55[max2].cdo; in msp3400c_thread()
608 state->watch_stereo = 1; in msp3400c_thread()
609 } else if (max2 == 1 && state->has_nicam) { in msp3400c_thread()
611 state->second = msp3400c_carrier_detect_55[max2].cdo; in msp3400c_thread()
613 state->nicam_on = 1; in msp3400c_thread()
614 state->watch_stereo = 1; in msp3400c_thread()
621 state->detected_std = V4L2_STD_PAL_I; in msp3400c_thread()
622 state->second = MSP_CARRIER(6.552); in msp3400c_thread()
624 state->nicam_on = 1; in msp3400c_thread()
625 state->watch_stereo = 1; in msp3400c_thread()
629 /* D/K FM-stereo */ in msp3400c_thread()
630 state->second = msp3400c_carrier_detect_65[max2].cdo; in msp3400c_thread()
632 state->watch_stereo = 1; in msp3400c_thread()
633 state->detected_std = V4L2_STD_DK; in msp3400c_thread()
634 } else if (max2 == 0 && (state->v4l2_std & V4L2_STD_SECAM)) { in msp3400c_thread()
635 /* L NICAM or AM-mono */ in msp3400c_thread()
636 state->second = msp3400c_carrier_detect_65[max2].cdo; in msp3400c_thread()
638 state->watch_stereo = 1; in msp3400c_thread()
639 state->detected_std = V4L2_STD_L; in msp3400c_thread()
640 } else if (max2 == 0 && state->has_nicam) { in msp3400c_thread()
642 state->second = msp3400c_carrier_detect_65[max2].cdo; in msp3400c_thread()
644 state->nicam_on = 1; in msp3400c_thread()
645 state->watch_stereo = 1; in msp3400c_thread()
646 state->detected_std = V4L2_STD_DK; in msp3400c_thread()
652 state->detected_std = V4L2_STD_MN; in msp3400c_thread()
656 state->second = msp3400c_carrier_detect_main[max1].cdo; in msp3400c_thread()
660 msp3400c_set_carrier(client, state->second, state->main); in msp3400c_thread()
663 state->scan_in_progress = 0; in msp3400c_thread()
673 while (state->watch_stereo) { in msp3400c_thread()
677 count--; in msp3400c_thread()
681 dev_dbg_lvl(&client->dev, 1, msp_debug, "thread: exit\n"); in msp3400c_thread()
692 dev_dbg_lvl(&client->dev, 1, msp_debug, "msp3410 daemon started\n"); in msp3410d_thread()
693 state->detected_std = V4L2_STD_ALL; in msp3410d_thread()
696 dev_dbg_lvl(&client->dev, 2, msp_debug, "msp3410 thread: sleep\n"); in msp3410d_thread()
697 msp_sleep(state, -1); in msp3410d_thread()
698 dev_dbg_lvl(&client->dev, 2, msp_debug, "msp3410 thread: wakeup\n"); in msp3410d_thread()
701 dev_dbg_lvl(&client->dev, 2, msp_debug, "thread: restart scan\n"); in msp3410d_thread()
702 state->restart = 0; in msp3410d_thread()
706 if (state->mode == MSP_MODE_EXTERN) { in msp3410d_thread()
708 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp3410d_thread()
710 state->scan_in_progress = 0; in msp3410d_thread()
716 state->scan_in_progress = 1; in msp3410d_thread()
720 NTSC-M and radio, hence we force the standard in those in msp3410d_thread()
722 if (state->radio) in msp3410d_thread()
725 std = (state->v4l2_std & V4L2_STD_NTSC) ? 0x20 : 1; in msp3410d_thread()
726 state->watch_stereo = 0; in msp3410d_thread()
727 state->nicam_on = 0; in msp3410d_thread()
734 dev_dbg_lvl(&client->dev, 2, msp_debug, in msp3410d_thread()
752 dev_dbg_lvl(&client->dev, 2, msp_debug, in msp3410d_thread()
759 dev_dbg_lvl(&client->dev, 1, msp_debug, "current standard: %s (0x%04x)\n", in msp3410d_thread()
761 state->main = msp_stdlist[i].main; in msp3410d_thread()
762 state->second = msp_stdlist[i].second; in msp3410d_thread()
763 state->std = val; in msp3410d_thread()
764 state->rxsubchans = V4L2_TUNER_SUB_MONO; in msp3410d_thread()
766 if (msp_amsound && !state->radio && in msp3410d_thread()
767 (state->v4l2_std & V4L2_STD_SECAM) && (val != 0x0009)) { in msp3410d_thread()
769 …dev_dbg_lvl(&client->dev, 1, msp_debug, "autodetection failed, switching to backup standard: %s (0… in msp3410d_thread()
772 state->std = val = 0x0009; in msp3410d_thread()
775 state->detected_std = msp_standard_std(state->std); in msp3410d_thread()
784 state->mode = MSP_MODE_FM_NICAM2; in msp3410d_thread()
786 state->mode = MSP_MODE_FM_NICAM1; in msp3410d_thread()
788 state->nicam_on = 1; in msp3410d_thread()
789 state->watch_stereo = 1; in msp3410d_thread()
792 state->mode = MSP_MODE_AM_NICAM; in msp3410d_thread()
793 state->nicam_on = 1; in msp3410d_thread()
794 state->watch_stereo = 1; in msp3410d_thread()
797 /* The pre-'G' models only have BTSC-mono */ in msp3410d_thread()
798 state->mode = MSP_MODE_BTSC; in msp3410d_thread()
800 case 0x0040: /* FM radio */ in msp3410d_thread()
801 state->mode = MSP_MODE_FM_RADIO; in msp3410d_thread()
802 state->rxsubchans = V4L2_TUNER_SUB_STEREO; in msp3410d_thread()
803 /* not needed in theory if we have radio, but in msp3410d_thread()
813 state->mode = MSP_MODE_FM_TERRA; in msp3410d_thread()
814 state->watch_stereo = 1; in msp3410d_thread()
821 if (state->has_nicam) in msp3410d_thread()
824 if (state->has_i2s_conf) in msp3410d_thread()
825 msp_write_dem(client, 0x40, state->i2s_mode); in msp3410d_thread()
829 state->scan_in_progress = 0; in msp3410d_thread()
835 while (state->watch_stereo) { in msp3410d_thread()
839 count--; in msp3410d_thread()
843 dev_dbg_lvl(&client->dev, 1, msp_debug, "thread: exit\n"); in msp3410d_thread()
847 /* ----------------------------------------------------------------------- */
849 /* msp34xxG + (autoselect no-thread)
859 if (state->radio) { in msp34xxg_modus()
860 dev_dbg_lvl(&client->dev, 1, msp_debug, "selected radio modus\n"); in msp34xxg_modus()
863 if (state->v4l2_std == V4L2_STD_NTSC_M_JP) { in msp34xxg_modus()
864 dev_dbg_lvl(&client->dev, 1, msp_debug, "selected M (EIA-J) modus\n"); in msp34xxg_modus()
867 if (state->v4l2_std == V4L2_STD_NTSC_M_KR) { in msp34xxg_modus()
868 dev_dbg_lvl(&client->dev, 1, msp_debug, "selected M (A2) modus\n"); in msp34xxg_modus()
871 if (state->v4l2_std == V4L2_STD_SECAM_L) { in msp34xxg_modus()
872 dev_dbg_lvl(&client->dev, 1, msp_debug, "selected SECAM-L modus\n"); in msp34xxg_modus()
875 if (state->v4l2_std & V4L2_STD_MN) { in msp34xxg_modus()
876 dev_dbg_lvl(&client->dev, 1, msp_debug, "selected M (BTSC) modus\n"); in msp34xxg_modus()
887 switch (state->audmode) { in msp34xxg_set_source()
915 else if (in >= MSP_DSP_IN_MAIN_AVC && state->has_dolby_pro_logic) in msp34xxg_set_source()
920 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp34xxg_set_source()
928 u32 in = state->route_in; in msp34xxg_set_sources()
931 /* quasi-peak detector is set to same input as the loudspeaker (MAIN) */ in msp34xxg_set_sources()
935 if (state->has_scart2_out) in msp34xxg_set_sources()
940 /* (re-)initialize the msp34xxg */
944 int tuner = (state->route_in >> 3) & 1; in msp34xxg_reset()
949 state->std = 1; in msp34xxg_reset()
953 if (state->has_i2s_conf) in msp34xxg_reset()
954 msp_write_dem(client, 0x40, state->i2s_mode); in msp34xxg_reset()
956 /* step-by-step initialisation, as described in the manual */ in msp34xxg_reset()
967 if (state->has_nicam) in msp34xxg_reset()
973 * this needs tuning. (recommended range 0x00a0-0x03c0) in msp34xxg_reset()
978 * It is supported by all 'G'-family chips. in msp34xxg_reset()
989 dev_dbg_lvl(&client->dev, 1, msp_debug, "msp34xxg daemon started\n"); in msp34xxg_thread()
990 state->detected_std = V4L2_STD_ALL; in msp34xxg_thread()
993 dev_dbg_lvl(&client->dev, 2, msp_debug, "msp34xxg thread: sleep\n"); in msp34xxg_thread()
994 msp_sleep(state, -1); in msp34xxg_thread()
995 dev_dbg_lvl(&client->dev, 2, msp_debug, "msp34xxg thread: wakeup\n"); in msp34xxg_thread()
998 dev_dbg_lvl(&client->dev, 1, msp_debug, "thread: restart scan\n"); in msp34xxg_thread()
999 state->restart = 0; in msp34xxg_thread()
1003 if (state->mode == MSP_MODE_EXTERN) { in msp34xxg_thread()
1005 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp34xxg_thread()
1007 state->scan_in_progress = 0; in msp34xxg_thread()
1014 state->std = state->radio ? 0x40 : in msp34xxg_thread()
1015 (state->force_btsc && msp_standard == 1) ? 32 : msp_standard; in msp34xxg_thread()
1016 msp_write_dem(client, 0x20, state->std); in msp34xxg_thread()
1018 if (state->std != 1) in msp34xxg_thread()
1022 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp34xxg_thread()
1031 state->std = val; in msp34xxg_thread()
1034 dev_dbg_lvl(&client->dev, 2, msp_debug, in msp34xxg_thread()
1037 if (state->std == 1) { in msp34xxg_thread()
1038 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp34xxg_thread()
1044 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp34xxg_thread()
1046 msp_standard_std_name(state->std), state->std); in msp34xxg_thread()
1047 state->detected_std = msp_standard_std(state->std); in msp34xxg_thread()
1049 if (state->std == 9) { in msp34xxg_thread()
1058 if (msp_write_dsp(client, 0x13, state->acb)) in msp34xxg_thread()
1059 return -1; in msp34xxg_thread()
1063 if (state->std != 0x20) in msp34xxg_thread()
1066 state->watch_stereo = 1; in msp34xxg_thread()
1071 while (state->watch_stereo) { in msp34xxg_thread()
1077 dev_dbg_lvl(&client->dev, 1, msp_debug, "thread: exit\n"); in msp34xxg_thread()
1087 int oldrx = state->rxsubchans; in msp34xxg_detect_stereo()
1089 if (state->mode == MSP_MODE_EXTERN) in msp34xxg_detect_stereo()
1092 state->rxsubchans = 0; in msp34xxg_detect_stereo()
1094 state->rxsubchans = V4L2_TUNER_SUB_STEREO; in msp34xxg_detect_stereo()
1096 state->rxsubchans = V4L2_TUNER_SUB_MONO; in msp34xxg_detect_stereo()
1098 if (state->std == 0x20) in msp34xxg_detect_stereo()
1099 state->rxsubchans |= V4L2_TUNER_SUB_SAP; in msp34xxg_detect_stereo()
1101 state->rxsubchans = in msp34xxg_detect_stereo()
1104 dev_dbg_lvl(&client->dev, 1, msp_debug, in msp34xxg_detect_stereo()
1105 "status=0x%x, stereo=%d, bilingual=%d -> rxsubchans=%d\n", in msp34xxg_detect_stereo()
1106 status, is_stereo, is_bilingual, state->rxsubchans); in msp34xxg_detect_stereo()
1107 return (oldrx != state->rxsubchans); in msp34xxg_detect_stereo()
1114 if (state->std == 0x20) { in msp34xxg_set_audmode()
1115 if ((state->rxsubchans & V4L2_TUNER_SUB_SAP) && in msp34xxg_set_audmode()
1116 (state->audmode == V4L2_TUNER_MODE_LANG1_LANG2 || in msp34xxg_set_audmode()
1117 state->audmode == V4L2_TUNER_MODE_LANG2)) { in msp34xxg_set_audmode()
1131 switch (state->opmode) { in msp_set_audmode()
1146 switch (state->opmode) { in msp_detect_stereo()