Lines Matching +full:0 +full:xfff7

36 	{  0, 0x0097 },
37 { 1, 0x0097 },
38 { 2, 0x0079 },
39 { 3, 0x0079 },
40 { 4, 0x0000 },
41 { 5, 0x0008 },
42 { 6, 0x0000 },
43 { 7, 0x000a },
44 { 8, 0x0000 },
45 { 9, 0x0000 },
46 { 10, 0x00ff },
47 { 11, 0x00ff },
48 { 12, 0x000f },
49 { 13, 0x000f },
50 { 14, 0x0000 },
51 { 15, 0x0000 },
52 { 16, 0x0000 },
53 { 17, 0x007b },
54 { 18, 0x0000 },
55 { 19, 0x0032 },
56 { 20, 0x0000 },
57 { 21, 0x00c3 },
58 { 22, 0x00c3 },
59 { 23, 0x00c0 },
60 { 24, 0x0000 },
61 { 25, 0x0000 },
62 { 26, 0x0000 },
63 { 27, 0x0000 },
64 { 28, 0x0000 },
65 { 29, 0x0000 },
66 { 30, 0x0000 },
67 { 31, 0x0000 },
68 { 32, 0x0000 },
69 { 33, 0x0000 },
70 { 34, 0x0050 },
71 { 35, 0x0050 },
72 { 36, 0x0050 },
73 { 37, 0x0050 },
74 { 38, 0x0050 },
75 { 39, 0x0050 },
76 { 40, 0x0079 },
77 { 41, 0x0079 },
78 { 42, 0x0079 },
86 #define wm8750_reset(c) snd_soc_component_write(c, WM8750_RESET, 0)
122 SOC_ENUM_SINGLE(WM8750_LOUTM1, 0, 5, wm8750_line_mux),
123 SOC_ENUM_SINGLE(WM8750_ROUTM1, 0, 5, wm8750_line_mux),
136 SOC_DOUBLE_R("Capture Volume", WM8750_LINVOL, WM8750_RINVOL, 0, 63, 0),
137 SOC_DOUBLE_R("Capture ZC Switch", WM8750_LINVOL, WM8750_RINVOL, 6, 1, 0),
141 WM8750_ROUT1V, 7, 1, 0),
143 WM8750_ROUT2V, 7, 1, 0),
148 SOC_SINGLE("Playback 6dB Attenuate", WM8750_ADCDAC, 7, 1, 0),
149 SOC_SINGLE("Capture 6dB Attenuate", WM8750_ADCDAC, 8, 1, 0),
151 SOC_DOUBLE_R("PCM Volume", WM8750_LDAC, WM8750_RDAC, 0, 255, 0),
153 SOC_ENUM("Bass Boost", wm8750_enum[0]),
155 SOC_SINGLE("Bass Volume", WM8750_BASS, 0, 15, 1),
157 SOC_SINGLE("Treble Volume", WM8750_TREBLE, 0, 15, 1),
160 SOC_SINGLE("3D Switch", WM8750_3D, 0, 1, 0),
161 SOC_SINGLE("3D Volume", WM8750_3D, 1, 15, 0),
166 SOC_SINGLE("ALC Capture Target Volume", WM8750_ALC1, 0, 7, 0),
167 SOC_SINGLE("ALC Capture Max Volume", WM8750_ALC1, 4, 7, 0),
169 SOC_SINGLE("ALC Capture ZC Switch", WM8750_ALC2, 7, 1, 0),
170 SOC_SINGLE("ALC Capture Hold Time", WM8750_ALC2, 0, 15, 0),
171 SOC_SINGLE("ALC Capture Decay Time", WM8750_ALC3, 4, 15, 0),
172 SOC_SINGLE("ALC Capture Attack Time", WM8750_ALC3, 0, 15, 0),
173 SOC_SINGLE("ALC Capture NG Threshold", WM8750_NGATE, 3, 31, 0),
175 SOC_SINGLE("ALC Capture NG Switch", WM8750_NGATE, 0, 1, 0),
177 SOC_SINGLE("Left ADC Capture Volume", WM8750_LADC, 0, 255, 0),
178 SOC_SINGLE("Right ADC Capture Volume", WM8750_RADC, 0, 255, 0),
180 SOC_SINGLE("ZC Timeout Switch", WM8750_ADCTL1, 0, 1, 0),
181 SOC_SINGLE("Playback Invert Switch", WM8750_ADCTL1, 1, 1, 0),
183 SOC_SINGLE("Right Speaker Playback Invert Switch", WM8750_ADCTL2, 4, 1, 0),
186 /* ADCDAC Bit 0 - ADCHPD */
199 SOC_DOUBLE_R("Mic Boost", WM8750_LADCIN, WM8750_RADCIN, 4, 3, 0),
208 SOC_SINGLE("Mono Playback ZC Switch", WM8750_MOUTV, 7, 1, 0),
211 0, 127, 0),
213 0, 127, 0),
215 SOC_SINGLE("Mono Playback Volume", WM8750_MOUTV, 0, 127, 0),
225 SOC_DAPM_SINGLE("Playback Switch", WM8750_LOUTM1, 8, 1, 0),
226 SOC_DAPM_SINGLE("Left Bypass Switch", WM8750_LOUTM1, 7, 1, 0),
227 SOC_DAPM_SINGLE("Right Playback Switch", WM8750_LOUTM2, 8, 1, 0),
228 SOC_DAPM_SINGLE("Right Bypass Switch", WM8750_LOUTM2, 7, 1, 0),
233 SOC_DAPM_SINGLE("Left Playback Switch", WM8750_ROUTM1, 8, 1, 0),
234 SOC_DAPM_SINGLE("Left Bypass Switch", WM8750_ROUTM1, 7, 1, 0),
235 SOC_DAPM_SINGLE("Playback Switch", WM8750_ROUTM2, 8, 1, 0),
236 SOC_DAPM_SINGLE("Right Bypass Switch", WM8750_ROUTM2, 7, 1, 0),
241 SOC_DAPM_SINGLE("Left Playback Switch", WM8750_MOUTM1, 8, 1, 0),
242 SOC_DAPM_SINGLE("Left Bypass Switch", WM8750_MOUTM1, 7, 1, 0),
243 SOC_DAPM_SINGLE("Right Playback Switch", WM8750_MOUTM2, 8, 1, 0),
244 SOC_DAPM_SINGLE("Right Bypass Switch", WM8750_MOUTM2, 7, 1, 0),
276 SND_SOC_DAPM_MIXER("Left Mixer", SND_SOC_NOPM, 0, 0,
277 &wm8750_left_mixer_controls[0],
279 SND_SOC_DAPM_MIXER("Right Mixer", SND_SOC_NOPM, 0, 0,
280 &wm8750_right_mixer_controls[0],
282 SND_SOC_DAPM_MIXER("Mono Mixer", WM8750_PWR2, 2, 0,
283 &wm8750_mono_mixer_controls[0],
286 SND_SOC_DAPM_PGA("Right Out 2", WM8750_PWR2, 3, 0, NULL, 0),
287 SND_SOC_DAPM_PGA("Left Out 2", WM8750_PWR2, 4, 0, NULL, 0),
288 SND_SOC_DAPM_PGA("Right Out 1", WM8750_PWR2, 5, 0, NULL, 0),
289 SND_SOC_DAPM_PGA("Left Out 1", WM8750_PWR2, 6, 0, NULL, 0),
290 SND_SOC_DAPM_DAC("Right DAC", "Right Playback", WM8750_PWR2, 7, 0),
291 SND_SOC_DAPM_DAC("Left DAC", "Left Playback", WM8750_PWR2, 8, 0),
293 SND_SOC_DAPM_MICBIAS("Mic Bias", WM8750_PWR1, 1, 0),
294 SND_SOC_DAPM_ADC("Right ADC", "Right Capture", WM8750_PWR1, 2, 0),
295 SND_SOC_DAPM_ADC("Left ADC", "Left Capture", WM8750_PWR1, 3, 0),
297 SND_SOC_DAPM_MUX("Left PGA Mux", WM8750_PWR1, 5, 0,
299 SND_SOC_DAPM_MUX("Right PGA Mux", WM8750_PWR1, 4, 0,
301 SND_SOC_DAPM_MUX("Left Line Mux", SND_SOC_NOPM, 0, 0,
303 SND_SOC_DAPM_MUX("Right Line Mux", SND_SOC_NOPM, 0, 0,
306 SND_SOC_DAPM_MUX("Out3 Mux", SND_SOC_NOPM, 0, 0, &wm8750_out3_controls),
307 SND_SOC_DAPM_PGA("Out 3", WM8750_PWR2, 1, 0, NULL, 0),
308 SND_SOC_DAPM_PGA("Mono Out 1", WM8750_PWR2, 2, 0, NULL, 0),
310 SND_SOC_DAPM_MUX("Differential Mux", SND_SOC_NOPM, 0, 0,
312 SND_SOC_DAPM_MUX("Left ADC Mux", SND_SOC_NOPM, 0, 0,
314 SND_SOC_DAPM_MUX("Right ADC Mux", SND_SOC_NOPM, 0, 0,
438 {12288000, 8000, 1536, 0x6, 0x0},
439 {11289600, 8000, 1408, 0x16, 0x0},
440 {18432000, 8000, 2304, 0x7, 0x0},
441 {16934400, 8000, 2112, 0x17, 0x0},
442 {12000000, 8000, 1500, 0x6, 0x1},
445 {11289600, 11025, 1024, 0x18, 0x0},
446 {16934400, 11025, 1536, 0x19, 0x0},
447 {12000000, 11025, 1088, 0x19, 0x1},
450 {12288000, 16000, 768, 0xa, 0x0},
451 {18432000, 16000, 1152, 0xb, 0x0},
452 {12000000, 16000, 750, 0xa, 0x1},
455 {11289600, 22050, 512, 0x1a, 0x0},
456 {16934400, 22050, 768, 0x1b, 0x0},
457 {12000000, 22050, 544, 0x1b, 0x1},
460 {12288000, 32000, 384, 0xc, 0x0},
461 {18432000, 32000, 576, 0xd, 0x0},
462 {12000000, 32000, 375, 0xa, 0x1},
465 {11289600, 44100, 256, 0x10, 0x0},
466 {16934400, 44100, 384, 0x11, 0x0},
467 {12000000, 44100, 272, 0x11, 0x1},
470 {12288000, 48000, 256, 0x0, 0x0},
471 {18432000, 48000, 384, 0x1, 0x0},
472 {12000000, 48000, 250, 0x0, 0x1},
475 {11289600, 88200, 128, 0x1e, 0x0},
476 {16934400, 88200, 192, 0x1f, 0x0},
477 {12000000, 88200, 136, 0x1f, 0x1},
480 {12288000, 96000, 128, 0xe, 0x0},
481 {18432000, 96000, 192, 0xf, 0x0},
482 {12000000, 96000, 125, 0xe, 0x1},
489 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff()
512 return 0; in wm8750_set_dai_sysclk()
521 u16 iface = 0; in wm8750_set_dai_fmt()
526 iface = 0x0040; in wm8750_set_dai_fmt()
537 iface |= 0x0002; in wm8750_set_dai_fmt()
542 iface |= 0x0001; in wm8750_set_dai_fmt()
545 iface |= 0x0003; in wm8750_set_dai_fmt()
548 iface |= 0x0013; in wm8750_set_dai_fmt()
559 iface |= 0x0090; in wm8750_set_dai_fmt()
562 iface |= 0x0080; in wm8750_set_dai_fmt()
565 iface |= 0x0010; in wm8750_set_dai_fmt()
572 return 0; in wm8750_set_dai_fmt()
581 u16 iface = snd_soc_component_read(component, WM8750_IFACE) & 0x1f3; in wm8750_pcm_hw_params()
582 u16 srate = snd_soc_component_read(component, WM8750_SRATE) & 0x1c0; in wm8750_pcm_hw_params()
590 iface |= 0x0004; in wm8750_pcm_hw_params()
593 iface |= 0x0008; in wm8750_pcm_hw_params()
596 iface |= 0x000c; in wm8750_pcm_hw_params()
602 if (coeff >= 0) in wm8750_pcm_hw_params()
606 return 0; in wm8750_pcm_hw_params()
612 u16 mute_reg = snd_soc_component_read(component, WM8750_ADCDAC) & 0xfff7; in wm8750_mute()
615 snd_soc_component_write(component, WM8750_ADCDAC, mute_reg | 0x8); in wm8750_mute()
618 return 0; in wm8750_mute()
624 u16 pwr_reg = snd_soc_component_read(component, WM8750_PWR1) & 0xfe3e; in wm8750_set_bias_level()
629 snd_soc_component_write(component, WM8750_PWR1, pwr_reg | 0x00c0); in wm8750_set_bias_level()
638 snd_soc_component_write(component, WM8750_PWR1, pwr_reg | 0x01c1); in wm8750_set_bias_level()
645 snd_soc_component_write(component, WM8750_PWR1, pwr_reg | 0x0141); in wm8750_set_bias_level()
648 snd_soc_component_write(component, WM8750_PWR1, 0x0001); in wm8750_set_bias_level()
651 return 0; in wm8750_set_bias_level()
691 if (ret < 0) { in wm8750_probe()
697 snd_soc_component_update_bits(component, WM8750_LDAC, 0x0100, 0x0100); in wm8750_probe()
698 snd_soc_component_update_bits(component, WM8750_RDAC, 0x0100, 0x0100); in wm8750_probe()
699 snd_soc_component_update_bits(component, WM8750_LOUT1V, 0x0100, 0x0100); in wm8750_probe()
700 snd_soc_component_update_bits(component, WM8750_ROUT1V, 0x0100, 0x0100); in wm8750_probe()
701 snd_soc_component_update_bits(component, WM8750_LOUT2V, 0x0100, 0x0100); in wm8750_probe()
702 snd_soc_component_update_bits(component, WM8750_ROUT2V, 0x0100, 0x0100); in wm8750_probe()
703 snd_soc_component_update_bits(component, WM8750_LINVOL, 0x0100, 0x0100); in wm8750_probe()
704 snd_soc_component_update_bits(component, WM8750_RINVOL, 0x0100, 0x0100); in wm8750_probe()
765 { "wm8750", 0 },
766 { "wm8987", 0 },
823 int ret = 0; in wm8750_modinit()
826 if (ret != 0) { in wm8750_modinit()
833 if (ret != 0) { in wm8750_modinit()