• Home
  • Raw
  • Download

Lines Matching +full:out +full:- +full:volume +full:- +full:limit

2  * wm8940.c  --  WM8940 ALSA Soc Audio driver
117 { 0xb, 0x00FF }, /* DAC Volume */
120 { 0xf, 0x00FF }, /* ADC Volume */
129 { 0x18, 0x0032 }, /* DAC Limit Control 1 */
130 { 0x19, 0x0000 }, /* DAC Limit Control 2 */
151 { 0x36, 0x0079 }, /* Speaker Volume */
156 static const char *wm8940_companding[] = { "Off", "NC", "u-law", "A-law" };
174 static DECLARE_TLV_DB_SCALE(wm8940_spk_vol_tlv, -5700, 100, 1);
175 static DECLARE_TLV_DB_SCALE(wm8940_att_tlv, -1000, 1000, 0);
176 static DECLARE_TLV_DB_SCALE(wm8940_pga_vol_tlv, -1200, 75, 0);
177 static DECLARE_TLV_DB_SCALE(wm8940_alc_min_tlv, -1200, 600, 0);
179 static DECLARE_TLV_DB_SCALE(wm8940_alc_tar_tlv, -2250, 50, 0);
181 static DECLARE_TLV_DB_SCALE(wm8940_lim_thresh_tlv, -600, 100, 0);
182 static DECLARE_TLV_DB_SCALE(wm8940_adc_tlv, -12750, 50, 1);
217 SOC_SINGLE_TLV("Capture PGA Volume", WM8940_PGAGAIN,
219 SOC_SINGLE_TLV("Digital Playback Volume", WM8940_DACVOL,
221 SOC_SINGLE_TLV("Digital Capture Volume", WM8940_ADCVOL,
226 SOC_SINGLE_TLV("Speaker Playback Volume", WM8940_SPKVOL,
230 SOC_SINGLE_TLV("Speaker Mixer Line Bypass Volume", WM8940_SPKVOL,
234 SOC_SINGLE("Mono Out Switch", WM8940_MONOMIX, 6, 1, 1),
235 SOC_SINGLE_TLV("Mono Mixer Line Bypass Volume", WM8940_MONOMIX,
259 static DECLARE_TLV_DB_SCALE(wm8940_boost_vol_tlv, -1500, 300, 1);
262 SOC_DAPM_SINGLE_TLV("Aux Volume", WM8940_ADCBOOST,
264 SOC_DAPM_SINGLE_TLV("Mic Volume", WM8940_ADCBOOST,
283 SND_SOC_DAPM_PGA("SpkN Out", WM8940_POWER3, 5, 0, NULL, 0),
284 SND_SOC_DAPM_PGA("SpkP Out", WM8940_POWER3, 6, 0, NULL, 0),
285 SND_SOC_DAPM_PGA("Mono Out", WM8940_POWER3, 7, 0, NULL, 0),
317 {"Mono Out", NULL, "Mono Mixer"},
318 {"MONOOUT", NULL, "Mono Out"},
319 {"SpkN Out", NULL, "Speaker Mixer"},
320 {"SpkP Out", NULL, "Speaker Mixer"},
321 {"SPKOUTN", NULL, "SpkN Out"},
322 {"SPKOUTP", NULL, "SpkP Out"},
331 {"Boost Mixer", "Mic Volume", "MICP"},
332 {"Boost Mixer", "Aux Volume", "Aux Input"},
342 struct snd_soc_component *component = codec_dai->component; in wm8940_set_dai_fmt()
353 return -EINVAL; in wm8940_set_dai_fmt()
397 struct snd_soc_component *component = dai->component; in wm8940_i2s_hw_params()
405 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE in wm8940_i2s_hw_params()
460 struct snd_soc_component *component = dai->component; in wm8940_mute()
496 ret = regcache_sync(wm8940->regmap); in wm8940_set_bias_level()
498 dev_err(component->dev, "Failed to sync cache: %d\n", ret); in wm8940_set_bias_level()
579 struct snd_soc_component *component = codec_dai->component; in wm8940_set_dai_pll()
620 struct snd_soc_component *component = codec_dai->component; in wm8940_set_dai_sysclk()
629 wm8940->sysclk = freq; in wm8940_set_dai_sysclk()
632 return -EINVAL; in wm8940_set_dai_sysclk()
638 struct snd_soc_component *component = codec_dai->component; in wm8940_set_dai_clkdiv()
677 .name = "wm8940-hifi",
698 struct wm8940_setup_data *pdata = component->dev->platform_data; in wm8940_probe()
704 dev_err(component->dev, "Failed to issue reset\n"); in wm8940_probe()
715 dev_warn(component->dev, "No platform data supplied\n"); in wm8940_probe()
718 ret = snd_soc_component_write(component, WM8940_OUTPUTCTL, reg | pdata->vroi); in wm8940_probe()
761 wm8940 = devm_kzalloc(&i2c->dev, sizeof(struct wm8940_priv), in wm8940_i2c_probe()
764 return -ENOMEM; in wm8940_i2c_probe()
766 wm8940->regmap = devm_regmap_init_i2c(i2c, &wm8940_regmap); in wm8940_i2c_probe()
767 if (IS_ERR(wm8940->regmap)) in wm8940_i2c_probe()
768 return PTR_ERR(wm8940->regmap); in wm8940_i2c_probe()
772 ret = devm_snd_soc_register_component(&i2c->dev, in wm8940_i2c_probe()