Lines Matching +full:0 +full:xfff7
62 { 0, 0x0097 },
63 { 1, 0x0097 },
64 { 2, 0x0079 },
65 { 3, 0x0079 },
66 { 4, 0x000a },
67 { 5, 0x0008 },
68 { 6, 0x009f },
69 { 7, 0x000a },
70 { 8, 0x0000 },
71 { 9, 0x0000 },
79 #define wm8731_reset(m) regmap_write(m, WM8731_RESET, 0)
86 static int wm8731_deemph[] = { 0, 32000, 44100, 48000 };
106 best = 0; in wm8731_set_deemph()
107 val = 0; in wm8731_set_deemph()
113 return snd_soc_component_update_bits(component, WM8731_APDIGI, 0x6, val); in wm8731_set_deemph()
122 ucontrol->value.integer.value[0] = wm8731->deemph; in wm8731_get_deemph()
124 return 0; in wm8731_get_deemph()
132 unsigned int deemph = ucontrol->value.integer.value[0]; in wm8731_put_deemph()
133 int ret = 0; in wm8731_put_deemph()
151 static const DECLARE_TLV_DB_SCALE(in_tlv, -3450, 150, 0);
152 static const DECLARE_TLV_DB_SCALE(sidetone_tlv, -1500, 300, 0);
154 static const DECLARE_TLV_DB_SCALE(mic_tlv, 0, 2000, 0);
159 0, 127, 0, out_tlv),
161 7, 1, 0),
163 SOC_DOUBLE_R_TLV("Capture Volume", WM8731_LINVOL, WM8731_RINVOL, 0, 31, 0,
167 SOC_SINGLE_TLV("Mic Boost Volume", WM8731_APANA, 0, 1, 0, mic_tlv),
173 SOC_SINGLE("ADC High Pass Filter Switch", WM8731_APDIGI, 0, 1, 1),
174 SOC_SINGLE("Store DC Offset Switch", WM8731_APDIGI, 4, 1, 0),
176 SOC_SINGLE_BOOL_EXT("Playback Deemphasis Switch", 0,
182 SOC_DAPM_SINGLE("Line Bypass Switch", WM8731_APANA, 3, 1, 0),
183 SOC_DAPM_SINGLE("Mic Sidetone Switch", WM8731_APANA, 5, 1, 0),
184 SOC_DAPM_SINGLE("HiFi Playback Switch", WM8731_APANA, 4, 1, 0),
192 SND_SOC_DAPM_SUPPLY("ACTIVE",WM8731_ACTIVE, 0, 0, NULL, 0),
193 SND_SOC_DAPM_SUPPLY("OSC", WM8731_PWR, 5, 1, NULL, 0),
195 &wm8731_output_mixer_controls[0],
203 SND_SOC_DAPM_MUX("Input Mux", SND_SOC_NOPM, 0, 0, &wm8731_input_mux_controls),
204 SND_SOC_DAPM_PGA("Line Input", WM8731_PWR, 0, 1, NULL, 0),
260 {12288000, 48000, 256, 0x0, 0x0, 0x0},
261 {18432000, 48000, 384, 0x0, 0x1, 0x0},
262 {12000000, 48000, 250, 0x0, 0x0, 0x1},
265 {12288000, 32000, 384, 0x6, 0x0, 0x0},
266 {18432000, 32000, 576, 0x6, 0x1, 0x0},
267 {12000000, 32000, 375, 0x6, 0x0, 0x1},
270 {12288000, 8000, 1536, 0x3, 0x0, 0x0},
271 {18432000, 8000, 2304, 0x3, 0x1, 0x0},
272 {11289600, 8000, 1408, 0xb, 0x0, 0x0},
273 {16934400, 8000, 2112, 0xb, 0x1, 0x0},
274 {12000000, 8000, 1500, 0x3, 0x0, 0x1},
277 {12288000, 96000, 128, 0x7, 0x0, 0x0},
278 {18432000, 96000, 192, 0x7, 0x1, 0x0},
279 {12000000, 96000, 125, 0x7, 0x0, 0x1},
282 {11289600, 44100, 256, 0x8, 0x0, 0x0},
283 {16934400, 44100, 384, 0x8, 0x1, 0x0},
284 {12000000, 44100, 272, 0x8, 0x1, 0x1},
287 {11289600, 88200, 128, 0xf, 0x0, 0x0},
288 {16934400, 88200, 192, 0xf, 0x1, 0x0},
289 {12000000, 88200, 136, 0xf, 0x1, 0x1},
326 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff()
330 return 0; in get_coeff()
339 u16 iface = snd_soc_component_read(component, WM8731_IFACE) & 0xfff3; in wm8731_hw_params()
353 iface |= 0x0004; in wm8731_hw_params()
356 iface |= 0x0008; in wm8731_hw_params()
359 iface |= 0x000c; in wm8731_hw_params()
366 return 0; in wm8731_hw_params()
372 u16 mute_reg = snd_soc_component_read(component, WM8731_APDIGI) & 0xfff7; in wm8731_mute()
375 snd_soc_component_write(component, WM8731_APDIGI, mute_reg | 0x8); in wm8731_mute()
378 return 0; in wm8731_mute()
400 case 0: in wm8731_set_dai_sysclk()
422 return 0; in wm8731_set_dai_sysclk()
430 u16 iface = 0; in wm8731_set_dai_fmt()
435 iface |= 0x0040; in wm8731_set_dai_fmt()
446 iface |= 0x0002; in wm8731_set_dai_fmt()
451 iface |= 0x0001; in wm8731_set_dai_fmt()
454 iface |= 0x0013; in wm8731_set_dai_fmt()
457 iface |= 0x0003; in wm8731_set_dai_fmt()
468 iface |= 0x0090; in wm8731_set_dai_fmt()
471 iface |= 0x0080; in wm8731_set_dai_fmt()
474 iface |= 0x0010; in wm8731_set_dai_fmt()
482 return 0; in wm8731_set_dai_fmt()
506 if (ret != 0) in wm8731_set_bias_level()
513 reg = snd_soc_component_read(component, WM8731_PWR) & 0xff7f; in wm8731_set_bias_level()
514 snd_soc_component_write(component, WM8731_PWR, reg | 0x0040); in wm8731_set_bias_level()
519 snd_soc_component_write(component, WM8731_PWR, 0xffff); in wm8731_set_bias_level()
525 return 0; in wm8731_set_bias_level()
534 snd_pcm_hw_constraint_list(substream->runtime, 0, in wm8731_startup()
538 return 0; in wm8731_startup()
576 int ret = 0, i; in wm8731_request_supplies()
578 for (i = 0; i < ARRAY_SIZE(wm8731->supplies); i++) in wm8731_request_supplies()
583 if (ret != 0) { in wm8731_request_supplies()
590 if (ret != 0) { in wm8731_request_supplies()
595 return 0; in wm8731_request_supplies()
600 int ret = 0; in wm8731_hw_init()
603 if (ret < 0) { in wm8731_hw_init()
609 regmap_write(wm8731->regmap, WM8731_PWR, 0x7f); in wm8731_hw_init()
612 regmap_update_bits(wm8731->regmap, WM8731_LOUT1V, 0x100, 0); in wm8731_hw_init()
613 regmap_update_bits(wm8731->regmap, WM8731_ROUT1V, 0x100, 0); in wm8731_hw_init()
614 regmap_update_bits(wm8731->regmap, WM8731_LINVOL, 0x100, 0); in wm8731_hw_init()
615 regmap_update_bits(wm8731->regmap, WM8731_RINVOL, 0x100, 0); in wm8731_hw_init()
618 regmap_update_bits(wm8731->regmap, WM8731_APANA, 0x8, 0); in wm8731_hw_init()
688 if (ret != 0) in wm8731_spi_probe()
700 if (ret != 0) in wm8731_spi_probe()
705 if (ret != 0) { in wm8731_spi_probe()
710 return 0; in wm8731_spi_probe()
715 return 0; in wm8731_spi_remove()
758 if (ret != 0) in wm8731_i2c_probe()
770 if (ret != 0) in wm8731_i2c_probe()
775 if (ret != 0) { in wm8731_i2c_probe()
780 return 0; in wm8731_i2c_probe()
791 return 0; in wm8731_i2c_remove()
795 { "wm8731", 0 },
813 int ret = 0; in wm8731_modinit()
816 if (ret != 0) { in wm8731_modinit()
823 if (ret != 0) { in wm8731_modinit()