Lines Matching +full:0 +full:xfff7
43 { 0, 0x0097 },
44 { 1, 0x0097 },
45 { 2, 0x0079 },
46 { 3, 0x0079 },
47 { 4, 0x0000 },
48 { 5, 0x0008 },
49 { 6, 0x0000 },
50 { 7, 0x000a },
51 { 8, 0x0000 },
52 { 9, 0x0000 },
53 { 10, 0x00ff },
54 { 11, 0x00ff },
55 { 12, 0x000f },
56 { 13, 0x000f },
57 { 14, 0x0000 },
58 { 15, 0x0000 },
59 { 16, 0x0000 },
60 { 17, 0x007b },
61 { 18, 0x0000 },
62 { 19, 0x0032 },
63 { 20, 0x0000 },
64 { 21, 0x00c3 },
65 { 22, 0x00c3 },
66 { 23, 0x00c0 },
67 { 24, 0x0000 },
68 { 25, 0x0000 },
69 { 26, 0x0000 },
70 { 27, 0x0000 },
71 { 28, 0x0000 },
72 { 29, 0x0000 },
73 { 30, 0x0000 },
74 { 31, 0x0000 },
75 { 32, 0x0000 },
76 { 33, 0x0000 },
77 { 34, 0x0050 },
78 { 35, 0x0050 },
79 { 36, 0x0050 },
80 { 37, 0x0050 },
81 { 38, 0x0050 },
82 { 39, 0x0050 },
83 { 40, 0x0079 },
84 { 41, 0x0079 },
85 { 42, 0x0079 },
88 #define wm8971_reset(c) snd_soc_component_write(c, WM8971_RESET, 0)
112 SOC_ENUM_SINGLE(WM8971_BASS, 7, 2, wm8971_bass), /* 0 */
120 SOC_ENUM_SINGLE(WM8971_LOUTM1, 0, 5, wm8971_lline_mux), /* 8 */
121 SOC_ENUM_SINGLE(WM8971_ROUTM1, 0, 5, wm8971_rline_mux),
129 SOC_DOUBLE_R("Capture Volume", WM8971_LINVOL, WM8971_RINVOL, 0, 63, 0),
131 6, 1, 0),
135 WM8971_ROUT1V, 7, 1, 0),
137 WM8971_ROUT2V, 7, 1, 0),
138 SOC_SINGLE("Mono Playback ZC Switch", WM8971_MOUTV, 7, 1, 0),
140 SOC_DOUBLE_R("PCM Volume", WM8971_LDAC, WM8971_RDAC, 0, 255, 0),
150 WM8971_ROUT1V, 0, 127, 0),
152 WM8971_ROUT2V, 0, 127, 0),
154 SOC_ENUM("Bass Boost", wm8971_enum[0]),
156 SOC_SINGLE("Bass Volume", WM8971_BASS, 0, 7, 1),
158 SOC_SINGLE("Treble Volume", WM8971_TREBLE, 0, 7, 0),
161 SOC_SINGLE("Capture Filter Switch", WM8971_ADCDAC, 0, 1, 1),
163 SOC_SINGLE("ALC Target Volume", WM8971_ALC1, 0, 7, 0),
164 SOC_SINGLE("ALC Max Volume", WM8971_ALC1, 4, 7, 0),
166 SOC_SINGLE("ALC Capture Target Volume", WM8971_ALC1, 0, 7, 0),
167 SOC_SINGLE("ALC Capture Max Volume", WM8971_ALC1, 4, 7, 0),
169 SOC_SINGLE("ALC Capture ZC Switch", WM8971_ALC2, 7, 1, 0),
170 SOC_SINGLE("ALC Capture Hold Time", WM8971_ALC2, 0, 15, 0),
171 SOC_SINGLE("ALC Capture Decay Time", WM8971_ALC3, 4, 15, 0),
172 SOC_SINGLE("ALC Capture Attack Time", WM8971_ALC3, 0, 15, 0),
173 SOC_SINGLE("ALC Capture NG Threshold", WM8971_NGATE, 3, 31, 0),
175 SOC_SINGLE("ALC Capture NG Switch", WM8971_NGATE, 0, 1, 0),
177 SOC_SINGLE("Capture 6dB Attenuate", WM8971_ADCDAC, 8, 1, 0),
178 SOC_SINGLE("Playback 6dB Attenuate", WM8971_ADCDAC, 7, 1, 0),
184 SOC_DOUBLE_R("Mic Boost", WM8971_LADCIN, WM8971_RADCIN, 4, 3, 0),
193 SOC_DAPM_SINGLE("Playback Switch", WM8971_LOUTM1, 8, 1, 0),
194 SOC_DAPM_SINGLE("Left Bypass Switch", WM8971_LOUTM1, 7, 1, 0),
195 SOC_DAPM_SINGLE("Right Playback Switch", WM8971_LOUTM2, 8, 1, 0),
196 SOC_DAPM_SINGLE("Right Bypass Switch", WM8971_LOUTM2, 7, 1, 0),
201 SOC_DAPM_SINGLE("Left Playback Switch", WM8971_ROUTM1, 8, 1, 0),
202 SOC_DAPM_SINGLE("Left Bypass Switch", WM8971_ROUTM1, 7, 1, 0),
203 SOC_DAPM_SINGLE("Playback Switch", WM8971_ROUTM2, 8, 1, 0),
204 SOC_DAPM_SINGLE("Right Bypass Switch", WM8971_ROUTM2, 7, 1, 0),
209 SOC_DAPM_SINGLE("Left Playback Switch", WM8971_MOUTM1, 8, 1, 0),
210 SOC_DAPM_SINGLE("Left Bypass Switch", WM8971_MOUTM1, 7, 1, 0),
211 SOC_DAPM_SINGLE("Right Playback Switch", WM8971_MOUTM2, 8, 1, 0),
212 SOC_DAPM_SINGLE("Right Bypass Switch", WM8971_MOUTM2, 7, 1, 0),
236 SND_SOC_DAPM_MIXER("Left Mixer", SND_SOC_NOPM, 0, 0,
237 &wm8971_left_mixer_controls[0],
239 SND_SOC_DAPM_MIXER("Right Mixer", SND_SOC_NOPM, 0, 0,
240 &wm8971_right_mixer_controls[0],
242 SND_SOC_DAPM_MIXER("Mono Mixer", WM8971_PWR2, 2, 0,
243 &wm8971_mono_mixer_controls[0],
246 SND_SOC_DAPM_PGA("Right Out 2", WM8971_PWR2, 3, 0, NULL, 0),
247 SND_SOC_DAPM_PGA("Left Out 2", WM8971_PWR2, 4, 0, NULL, 0),
248 SND_SOC_DAPM_PGA("Right Out 1", WM8971_PWR2, 5, 0, NULL, 0),
249 SND_SOC_DAPM_PGA("Left Out 1", WM8971_PWR2, 6, 0, NULL, 0),
250 SND_SOC_DAPM_DAC("Right DAC", "Right Playback", WM8971_PWR2, 7, 0),
251 SND_SOC_DAPM_DAC("Left DAC", "Left Playback", WM8971_PWR2, 8, 0),
252 SND_SOC_DAPM_PGA("Mono Out 1", WM8971_PWR2, 2, 0, NULL, 0),
254 SND_SOC_DAPM_SUPPLY("Mic Bias", WM8971_PWR1, 1, 0, NULL, 0),
255 SND_SOC_DAPM_ADC("Right ADC", "Right Capture", WM8971_PWR1, 2, 0),
256 SND_SOC_DAPM_ADC("Left ADC", "Left Capture", WM8971_PWR1, 3, 0),
258 SND_SOC_DAPM_MUX("Left PGA Mux", WM8971_PWR1, 5, 0,
260 SND_SOC_DAPM_MUX("Right PGA Mux", WM8971_PWR1, 4, 0,
262 SND_SOC_DAPM_MUX("Left Line Mux", SND_SOC_NOPM, 0, 0,
264 SND_SOC_DAPM_MUX("Right Line Mux", SND_SOC_NOPM, 0, 0,
267 SND_SOC_DAPM_MUX("Left ADC Mux", SND_SOC_NOPM, 0, 0,
269 SND_SOC_DAPM_MUX("Right ADC Mux", SND_SOC_NOPM, 0, 0,
371 {12288000, 8000, 1536, 0x6, 0x0},
372 {11289600, 8000, 1408, 0x16, 0x0},
373 {18432000, 8000, 2304, 0x7, 0x0},
374 {16934400, 8000, 2112, 0x17, 0x0},
375 {12000000, 8000, 1500, 0x6, 0x1},
378 {11289600, 11025, 1024, 0x18, 0x0},
379 {16934400, 11025, 1536, 0x19, 0x0},
380 {12000000, 11025, 1088, 0x19, 0x1},
383 {12288000, 16000, 768, 0xa, 0x0},
384 {18432000, 16000, 1152, 0xb, 0x0},
385 {12000000, 16000, 750, 0xa, 0x1},
388 {11289600, 22050, 512, 0x1a, 0x0},
389 {16934400, 22050, 768, 0x1b, 0x0},
390 {12000000, 22050, 544, 0x1b, 0x1},
393 {12288000, 32000, 384, 0xc, 0x0},
394 {18432000, 32000, 576, 0xd, 0x0},
395 {12000000, 32000, 375, 0xa, 0x1},
398 {11289600, 44100, 256, 0x10, 0x0},
399 {16934400, 44100, 384, 0x11, 0x0},
400 {12000000, 44100, 272, 0x11, 0x1},
403 {12288000, 48000, 256, 0x0, 0x0},
404 {18432000, 48000, 384, 0x1, 0x0},
405 {12000000, 48000, 250, 0x0, 0x1},
408 {11289600, 88200, 128, 0x1e, 0x0},
409 {16934400, 88200, 192, 0x1f, 0x0},
410 {12000000, 88200, 136, 0x1f, 0x1},
413 {12288000, 96000, 128, 0xe, 0x0},
414 {18432000, 96000, 192, 0xf, 0x0},
415 {12000000, 96000, 125, 0xe, 0x1},
422 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff()
442 return 0; in wm8971_set_dai_sysclk()
451 u16 iface = 0; in wm8971_set_dai_fmt()
456 iface = 0x0040; in wm8971_set_dai_fmt()
467 iface |= 0x0002; in wm8971_set_dai_fmt()
472 iface |= 0x0001; in wm8971_set_dai_fmt()
475 iface |= 0x0003; in wm8971_set_dai_fmt()
478 iface |= 0x0013; in wm8971_set_dai_fmt()
489 iface |= 0x0090; in wm8971_set_dai_fmt()
492 iface |= 0x0080; in wm8971_set_dai_fmt()
495 iface |= 0x0010; in wm8971_set_dai_fmt()
502 return 0; in wm8971_set_dai_fmt()
511 u16 iface = snd_soc_component_read(component, WM8971_IFACE) & 0x1f3; in wm8971_pcm_hw_params()
512 u16 srate = snd_soc_component_read(component, WM8971_SRATE) & 0x1c0; in wm8971_pcm_hw_params()
520 iface |= 0x0004; in wm8971_pcm_hw_params()
523 iface |= 0x0008; in wm8971_pcm_hw_params()
526 iface |= 0x000c; in wm8971_pcm_hw_params()
532 if (coeff >= 0) in wm8971_pcm_hw_params()
536 return 0; in wm8971_pcm_hw_params()
542 u16 mute_reg = snd_soc_component_read(component, WM8971_ADCDAC) & 0xfff7; in wm8971_mute()
545 snd_soc_component_write(component, WM8971_ADCDAC, mute_reg | 0x8); in wm8971_mute()
548 return 0; in wm8971_mute()
557 regmap_update_bits(wm8971->regmap, WM8971_PWR1, 0x0180, 0x0100); in wm8971_charge_work()
564 u16 pwr_reg = snd_soc_component_read(component, WM8971_PWR1) & 0xfe3e; in wm8971_set_bias_level()
569 snd_soc_component_write(component, WM8971_PWR1, pwr_reg | 0x00c1); in wm8971_set_bias_level()
579 snd_soc_component_write(component, WM8971_PWR1, pwr_reg | 0x01c0); in wm8971_set_bias_level()
584 snd_soc_component_write(component, WM8971_PWR1, pwr_reg | 0x0140); in wm8971_set_bias_level()
590 snd_soc_component_write(component, WM8971_PWR1, 0x0001); in wm8971_set_bias_level()
593 return 0; in wm8971_set_bias_level()
637 snd_soc_component_update_bits(component, WM8971_LDAC, 0x0100, 0x0100); in wm8971_probe()
638 snd_soc_component_update_bits(component, WM8971_RDAC, 0x0100, 0x0100); in wm8971_probe()
639 snd_soc_component_update_bits(component, WM8971_LOUT1V, 0x0100, 0x0100); in wm8971_probe()
640 snd_soc_component_update_bits(component, WM8971_ROUT1V, 0x0100, 0x0100); in wm8971_probe()
641 snd_soc_component_update_bits(component, WM8971_LOUT2V, 0x0100, 0x0100); in wm8971_probe()
642 snd_soc_component_update_bits(component, WM8971_ROUT2V, 0x0100, 0x0100); in wm8971_probe()
643 snd_soc_component_update_bits(component, WM8971_LINVOL, 0x0100, 0x0100); in wm8971_probe()
644 snd_soc_component_update_bits(component, WM8971_RINVOL, 0x0100, 0x0100); in wm8971_probe()
646 return 0; in wm8971_probe()