Lines Matching +full:0 +full:xfff7

42 	{ 0, 0x0097 },
43 { 1, 0x0097 },
44 { 2, 0x0079 },
45 { 3, 0x0079 },
46 { 4, 0x000a },
47 { 5, 0x0008 },
48 { 6, 0x009f },
49 { 7, 0x000a },
50 { 8, 0x0000 },
51 { 9, 0x0000 },
59 #define wm8731_reset(m) regmap_write(m, WM8731_RESET, 0)
66 static int wm8731_deemph[] = { 0, 32000, 44100, 48000 };
86 best = 0; in wm8731_set_deemph()
87 val = 0; in wm8731_set_deemph()
93 return snd_soc_component_update_bits(component, WM8731_APDIGI, 0x6, val); in wm8731_set_deemph()
102 ucontrol->value.integer.value[0] = wm8731->deemph; in wm8731_get_deemph()
104 return 0; in wm8731_get_deemph()
112 unsigned int deemph = ucontrol->value.integer.value[0]; in wm8731_put_deemph()
113 int ret = 0; in wm8731_put_deemph()
131 static const DECLARE_TLV_DB_SCALE(in_tlv, -3450, 150, 0);
132 static const DECLARE_TLV_DB_SCALE(sidetone_tlv, -1500, 300, 0);
134 static const DECLARE_TLV_DB_SCALE(mic_tlv, 0, 2000, 0);
139 0, 127, 0, out_tlv),
141 7, 1, 0),
143 SOC_DOUBLE_R_TLV("Capture Volume", WM8731_LINVOL, WM8731_RINVOL, 0, 31, 0,
147 SOC_SINGLE_TLV("Mic Boost Volume", WM8731_APANA, 0, 1, 0, mic_tlv),
153 SOC_SINGLE("ADC High Pass Filter Switch", WM8731_APDIGI, 0, 1, 1),
154 SOC_SINGLE("Store DC Offset Switch", WM8731_APDIGI, 4, 1, 0),
156 SOC_SINGLE_BOOL_EXT("Playback Deemphasis Switch", 0,
162 SOC_DAPM_SINGLE("Line Bypass Switch", WM8731_APANA, 3, 1, 0),
163 SOC_DAPM_SINGLE("Mic Sidetone Switch", WM8731_APANA, 5, 1, 0),
164 SOC_DAPM_SINGLE("HiFi Playback Switch", WM8731_APANA, 4, 1, 0),
172 SND_SOC_DAPM_SUPPLY("ACTIVE",WM8731_ACTIVE, 0, 0, NULL, 0),
173 SND_SOC_DAPM_SUPPLY("OSC", WM8731_PWR, 5, 1, NULL, 0),
175 &wm8731_output_mixer_controls[0],
183 SND_SOC_DAPM_MUX("Input Mux", SND_SOC_NOPM, 0, 0, &wm8731_input_mux_controls),
184 SND_SOC_DAPM_PGA("Line Input", WM8731_PWR, 0, 1, NULL, 0),
240 {12288000, 48000, 256, 0x0, 0x0, 0x0},
241 {18432000, 48000, 384, 0x0, 0x1, 0x0},
242 {12000000, 48000, 250, 0x0, 0x0, 0x1},
245 {12288000, 32000, 384, 0x6, 0x0, 0x0},
246 {18432000, 32000, 576, 0x6, 0x1, 0x0},
247 {12000000, 32000, 375, 0x6, 0x0, 0x1},
250 {12288000, 8000, 1536, 0x3, 0x0, 0x0},
251 {18432000, 8000, 2304, 0x3, 0x1, 0x0},
252 {11289600, 8000, 1408, 0xb, 0x0, 0x0},
253 {16934400, 8000, 2112, 0xb, 0x1, 0x0},
254 {12000000, 8000, 1500, 0x3, 0x0, 0x1},
257 {12288000, 96000, 128, 0x7, 0x0, 0x0},
258 {18432000, 96000, 192, 0x7, 0x1, 0x0},
259 {12000000, 96000, 125, 0x7, 0x0, 0x1},
262 {11289600, 44100, 256, 0x8, 0x0, 0x0},
263 {16934400, 44100, 384, 0x8, 0x1, 0x0},
264 {12000000, 44100, 272, 0x8, 0x1, 0x1},
267 {11289600, 88200, 128, 0xf, 0x0, 0x0},
268 {16934400, 88200, 192, 0xf, 0x1, 0x0},
269 {12000000, 88200, 136, 0xf, 0x1, 0x1},
306 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff()
310 return 0; in get_coeff()
319 u16 iface = snd_soc_component_read(component, WM8731_IFACE) & 0xfff3; in wm8731_hw_params()
333 iface |= 0x0004; in wm8731_hw_params()
336 iface |= 0x0008; in wm8731_hw_params()
339 iface |= 0x000c; in wm8731_hw_params()
346 return 0; in wm8731_hw_params()
352 u16 mute_reg = snd_soc_component_read(component, WM8731_APDIGI) & 0xfff7; in wm8731_mute()
355 snd_soc_component_write(component, WM8731_APDIGI, mute_reg | 0x8); in wm8731_mute()
358 return 0; in wm8731_mute()
380 case 0: in wm8731_set_dai_sysclk()
402 return 0; in wm8731_set_dai_sysclk()
410 u16 iface = 0; in wm8731_set_dai_fmt()
414 iface |= 0x0040; in wm8731_set_dai_fmt()
425 iface |= 0x0002; in wm8731_set_dai_fmt()
430 iface |= 0x0001; in wm8731_set_dai_fmt()
433 iface |= 0x0013; in wm8731_set_dai_fmt()
436 iface |= 0x0003; in wm8731_set_dai_fmt()
447 iface |= 0x0090; in wm8731_set_dai_fmt()
450 iface |= 0x0080; in wm8731_set_dai_fmt()
453 iface |= 0x0010; in wm8731_set_dai_fmt()
461 return 0; in wm8731_set_dai_fmt()
485 if (ret != 0) in wm8731_set_bias_level()
492 reg = snd_soc_component_read(component, WM8731_PWR) & 0xff7f; in wm8731_set_bias_level()
493 snd_soc_component_write(component, WM8731_PWR, reg | 0x0040); in wm8731_set_bias_level()
498 snd_soc_component_write(component, WM8731_PWR, 0xffff); in wm8731_set_bias_level()
504 return 0; in wm8731_set_bias_level()
513 snd_pcm_hw_constraint_list(substream->runtime, 0, in wm8731_startup()
517 return 0; in wm8731_startup()
568 int ret = 0, i; in wm8731_init()
584 for (i = 0; i < ARRAY_SIZE(wm8731->supplies); i++) in wm8731_init()
589 if (ret != 0) { in wm8731_init()
596 if (ret != 0) { in wm8731_init()
602 if (ret < 0) { in wm8731_init()
608 regmap_write(wm8731->regmap, WM8731_PWR, 0x7f); in wm8731_init()
611 regmap_update_bits(wm8731->regmap, WM8731_LOUT1V, 0x100, 0); in wm8731_init()
612 regmap_update_bits(wm8731->regmap, WM8731_ROUT1V, 0x100, 0); in wm8731_init()
613 regmap_update_bits(wm8731->regmap, WM8731_LINVOL, 0x100, 0); in wm8731_init()
614 regmap_update_bits(wm8731->regmap, WM8731_RINVOL, 0x100, 0); in wm8731_init()
617 regmap_update_bits(wm8731->regmap, WM8731_APANA, 0x8, 0); in wm8731_init()
623 if (ret != 0) { in wm8731_init()
628 return 0; in wm8731_init()