Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 103) sorted by relevance

12345

/sound/soc/
Dsoc-dapm.c146 static bool dapm_dirty_widget(struct snd_soc_dapm_widget *w) in dapm_dirty_widget() argument
148 return !list_empty(&w->dirty); in dapm_dirty_widget()
151 static void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason) in dapm_mark_dirty() argument
153 dapm_assert_locked(w->dapm); in dapm_mark_dirty()
155 if (!dapm_dirty_widget(w)) { in dapm_mark_dirty()
156 dev_vdbg(w->dapm->dev, "Marking %s dirty due to %s\n", in dapm_mark_dirty()
157 w->name, reason); in dapm_mark_dirty()
158 list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty); in dapm_mark_dirty()
165 struct snd_soc_dapm_widget *w; in dapm_mark_io_dirty() local
169 list_for_each_entry(w, &card->widgets, list) { in dapm_mark_io_dirty()
[all …]
/sound/soc/davinci/
Ddavinci-vcif.c59 u32 w; in davinci_vcif_start() local
62 w = readl(davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_start()
65 MOD_REG_BIT(w, DAVINCI_VC_CTRL_RSTDAC, 0); in davinci_vcif_start()
67 MOD_REG_BIT(w, DAVINCI_VC_CTRL_RSTADC, 0); in davinci_vcif_start()
69 writel(w, davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_start()
78 u32 w; in davinci_vcif_stop() local
81 w = readl(davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_stop()
83 MOD_REG_BIT(w, DAVINCI_VC_CTRL_RSTDAC, 1); in davinci_vcif_stop()
85 MOD_REG_BIT(w, DAVINCI_VC_CTRL_RSTADC, 1); in davinci_vcif_stop()
87 writel(w, davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_stop()
[all …]
/sound/mips/
Dad1843.c189 int w; in ad1843_read_bits() local
191 w = ad1843->read(ad1843->chip, field->reg); in ad1843_read_bits()
192 return w >> field->lo_bit & ((1 << field->nbits) - 1); in ad1843_read_bits()
203 int w, mask, oldval, newbits; in ad1843_write_bits() local
205 w = ad1843->read(ad1843->chip, field->reg); in ad1843_write_bits()
207 oldval = (w & mask) >> field->lo_bit; in ad1843_write_bits()
209 w = (w & ~mask) | newbits; in ad1843_write_bits()
210 ad1843->write(ad1843->chip, field->reg, w); in ad1843_write_bits()
232 int w = 0, mask, *value, reg = -1; in ad1843_read_multi() local
240 w = ad1843->read(ad1843->chip, reg); in ad1843_read_multi()
[all …]
/sound/soc/omap/
Dmcbsp.c258 unsigned int w; in omap_st_on() local
264 w = MCBSP_READ(mcbsp, SSELCR); in omap_st_on()
265 MCBSP_WRITE(mcbsp, SSELCR, w | SIDETONEEN); in omap_st_on()
268 w = MCBSP_ST_READ(mcbsp, SSELCR); in omap_st_on()
269 MCBSP_ST_WRITE(mcbsp, SSELCR, w | ST_SIDETONEEN); in omap_st_on()
274 unsigned int w; in omap_st_off() local
276 w = MCBSP_ST_READ(mcbsp, SSELCR); in omap_st_off()
277 MCBSP_ST_WRITE(mcbsp, SSELCR, w & ~(ST_SIDETONEEN)); in omap_st_off()
279 w = MCBSP_READ(mcbsp, SSELCR); in omap_st_off()
280 MCBSP_WRITE(mcbsp, SSELCR, w & ~(SIDETONEEN)); in omap_st_off()
[all …]
Domap3pandora.c79 static int omap3pandora_dac_event(struct snd_soc_dapm_widget *w, in omap3pandora_dac_event() argument
91 dev_err(w->dapm->dev, "Failed to power DAC: %d\n", ret); in omap3pandora_dac_event()
105 static int omap3pandora_hp_event(struct snd_soc_dapm_widget *w, in omap3pandora_hp_event() argument
/sound/soc/codecs/
Dwm9712.c164 static int mixer_event(struct snd_soc_dapm_widget *w, in mixer_event() argument
169 l = ac97_read(w->codec, HPL_MIXER); in mixer_event()
170 r = ac97_read(w->codec, HPR_MIXER); in mixer_event()
171 beep = ac97_read(w->codec, AC97_PC_BEEP); in mixer_event()
172 mic = ac97_read(w->codec, AC97_VIDEO); in mixer_event()
173 phone = ac97_read(w->codec, AC97_PHONE); in mixer_event()
174 line = ac97_read(w->codec, AC97_LINE); in mixer_event()
175 pcm = ac97_read(w->codec, AC97_PCM); in mixer_event()
176 aux = ac97_read(w->codec, AC97_CD); in mixer_event()
179 ac97_write(w->codec, AC97_VIDEO, mic & 0x7fff); in mixer_event()
[all …]
Dsn95031.c233 static int sn95031_vhs_event(struct snd_soc_dapm_widget *w, in sn95031_vhs_event() argument
239 snd_soc_write(w->codec, SN95031_VHSP, 0x3D); in sn95031_vhs_event()
240 snd_soc_write(w->codec, SN95031_VHSN, 0x3F); in sn95031_vhs_event()
244 snd_soc_write(w->codec, SN95031_VHSP, 0xC4); in sn95031_vhs_event()
245 snd_soc_write(w->codec, SN95031_VHSN, 0x04); in sn95031_vhs_event()
250 static int sn95031_vihf_event(struct snd_soc_dapm_widget *w, in sn95031_vihf_event() argument
256 snd_soc_write(w->codec, SN95031_VIHF, 0x27); in sn95031_vihf_event()
260 snd_soc_write(w->codec, SN95031_VIHF, 0x24); in sn95031_vihf_event()
265 static int sn95031_dmic12_event(struct snd_soc_dapm_widget *w, in sn95031_dmic12_event() argument
276 snd_soc_update_bits(w->codec, SN95031_MICBIAS, BIT(5)|BIT(4), ldo); in sn95031_dmic12_event()
[all …]
Dwm9713.c217 static int wm9713_voice_shutdown(struct snd_soc_dapm_widget *w, in wm9713_voice_shutdown() argument
220 struct snd_soc_codec *codec = w->codec; in wm9713_voice_shutdown()
244 static int mixer_event(struct snd_soc_dapm_widget *w, in mixer_event() argument
249 l = ac97_read(w->codec, HPL_MIXER); in mixer_event()
250 r = ac97_read(w->codec, HPR_MIXER); in mixer_event()
251 beep = ac97_read(w->codec, AC97_PC_BEEP); in mixer_event()
252 tone = ac97_read(w->codec, AC97_MASTER_TONE); in mixer_event()
253 phone = ac97_read(w->codec, AC97_PHONE); in mixer_event()
254 rec = ac97_read(w->codec, AC97_REC_SEL); in mixer_event()
255 pcm = ac97_read(w->codec, AC97_PCM); in mixer_event()
[all …]
Dtwl4030.c569 static int pin_name##pga_event(struct snd_soc_dapm_widget *w, \
572 struct twl4030_priv *twl4030 = snd_soc_codec_get_drvdata(w->codec); \
577 twl4030_write(w->codec, reg, twl4030_read(w->codec, reg)); \
623 static int handsfreelpga_event(struct snd_soc_dapm_widget *w, in handsfreelpga_event() argument
628 handsfree_ramp(w->codec, TWL4030_REG_HFL_CTL, 1); in handsfreelpga_event()
631 handsfree_ramp(w->codec, TWL4030_REG_HFL_CTL, 0); in handsfreelpga_event()
637 static int handsfreerpga_event(struct snd_soc_dapm_widget *w, in handsfreerpga_event() argument
642 handsfree_ramp(w->codec, TWL4030_REG_HFR_CTL, 1); in handsfreerpga_event()
645 handsfree_ramp(w->codec, TWL4030_REG_HFR_CTL, 0); in handsfreerpga_event()
651 static int vibramux_event(struct snd_soc_dapm_widget *w, in vibramux_event() argument
[all …]
Dmax98088.h203 #define M98088_BYTE1(w) ((w >> 8) & 0xff) argument
204 #define M98088_BYTE0(w) (w & 0xff) argument
Dpcm3008.c31 static int pcm3008_dac_ev(struct snd_soc_dapm_widget *w, in pcm3008_dac_ev() argument
35 struct snd_soc_codec *codec = w->codec; in pcm3008_dac_ev()
44 static int pcm3008_adc_ev(struct snd_soc_dapm_widget *w, in pcm3008_adc_ev() argument
48 struct snd_soc_codec *codec = w->codec; in pcm3008_adc_ev()
Dmax98088.c875 static int max98088_mic_event(struct snd_soc_dapm_widget *w, in max98088_mic_event() argument
878 struct snd_soc_codec *codec = w->codec; in max98088_mic_event()
883 if (w->reg == M98088_REG_35_LVL_MIC1) { in max98088_mic_event()
884 snd_soc_update_bits(codec, w->reg, M98088_MICPRE_MASK, in max98088_mic_event()
887 snd_soc_update_bits(codec, w->reg, M98088_MICPRE_MASK, in max98088_mic_event()
892 snd_soc_update_bits(codec, w->reg, M98088_MICPRE_MASK, 0); in max98088_mic_event()
905 static int max98088_line_pga(struct snd_soc_dapm_widget *w, in max98088_line_pga() argument
908 struct snd_soc_codec *codec = w->codec; in max98088_line_pga()
929 snd_soc_update_bits(codec, w->reg, in max98088_line_pga()
930 (1 << w->shift), (1 << w->shift)); in max98088_line_pga()
[all …]
Dwm_adsp.h83 int wm_adsp1_event(struct snd_soc_dapm_widget *w,
85 int wm_adsp2_early_event(struct snd_soc_dapm_widget *w,
87 int wm_adsp2_event(struct snd_soc_dapm_widget *w,
Dmax98095.c864 static int max98095_mic_event(struct snd_soc_dapm_widget *w, in max98095_mic_event() argument
867 struct snd_soc_codec *codec = w->codec; in max98095_mic_event()
872 if (w->reg == M98095_05F_LVL_MIC1) { in max98095_mic_event()
873 snd_soc_update_bits(codec, w->reg, M98095_MICPRE_MASK, in max98095_mic_event()
876 snd_soc_update_bits(codec, w->reg, M98095_MICPRE_MASK, in max98095_mic_event()
881 snd_soc_update_bits(codec, w->reg, M98095_MICPRE_MASK, 0); in max98095_mic_event()
894 static int max98095_line_pga(struct snd_soc_dapm_widget *w, in max98095_line_pga() argument
897 struct snd_soc_codec *codec = w->codec; in max98095_line_pga()
909 snd_soc_update_bits(codec, w->reg, in max98095_line_pga()
910 (1 << w->shift), (1 << w->shift)); in max98095_line_pga()
[all …]
Dmax98095.h304 #define M98095_BYTE1(w) ((w >> 8) & 0xff) argument
305 #define M98095_BYTE0(w) (w & 0xff) argument
Darizona.c78 static int arizona_spk_ev(struct snd_soc_dapm_widget *w, in arizona_spk_ev() argument
82 struct snd_soc_codec *codec = w->codec; in arizona_spk_ev()
118 1 << w->shift, 1 << w->shift); in arizona_spk_ev()
137 1 << w->shift, 0); in arizona_spk_ev()
687 int arizona_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, in arizona_in_ev() argument
690 struct arizona_priv *priv = snd_soc_codec_get_drvdata(w->codec); in arizona_in_ev()
693 if (w->shift % 2) in arizona_in_ev()
694 reg = ARIZONA_ADC_DIGITAL_VOLUME_1L + ((w->shift / 2) * 8); in arizona_in_ev()
696 reg = ARIZONA_ADC_DIGITAL_VOLUME_1R + ((w->shift / 2) * 8); in arizona_in_ev()
703 snd_soc_update_bits(w->codec, reg, ARIZONA_IN1L_MUTE, 0); in arizona_in_ev()
[all …]
Dda732x.c609 static int da732x_adc_event(struct snd_soc_dapm_widget *w, in da732x_adc_event() argument
612 struct snd_soc_codec *codec = w->codec; in da732x_adc_event()
616 switch (w->reg) { in da732x_adc_event()
631 snd_soc_update_bits(codec, w->reg, DA732X_ADC_RST_MASK, in da732x_adc_event()
633 snd_soc_update_bits(codec, w->reg, DA732X_ADC_PD_MASK, in da732x_adc_event()
637 snd_soc_update_bits(codec, w->reg, DA732X_ADC_PD_MASK, in da732x_adc_event()
639 snd_soc_update_bits(codec, w->reg, DA732X_ADC_RST_MASK, in da732x_adc_event()
642 switch (w->reg) { in da732x_adc_event()
663 static int da732x_out_pga_event(struct snd_soc_dapm_widget *w, in da732x_out_pga_event() argument
666 struct snd_soc_codec *codec = w->codec; in da732x_out_pga_event()
[all …]
Dwm_hubs.c500 static int hp_supply_event(struct snd_soc_dapm_widget *w, in hp_supply_event() argument
503 struct snd_soc_codec *codec = w->codec; in hp_supply_event()
542 static int hp_event(struct snd_soc_dapm_widget *w, in hp_event() argument
545 struct snd_soc_codec *codec = w->codec; in hp_event()
594 static int earpiece_event(struct snd_soc_dapm_widget *w, in earpiece_event() argument
597 struct snd_soc_codec *codec = w->codec; in earpiece_event()
619 static int lineout_event(struct snd_soc_dapm_widget *w, in lineout_event() argument
622 struct snd_soc_codec *codec = w->codec; in lineout_event()
626 switch (w->shift) { in lineout_event()
649 static int micbias_event(struct snd_soc_dapm_widget *w, in micbias_event() argument
[all …]
Dwm8960.c446 struct snd_soc_dapm_widget *w; in wm8960_add_widgets() local
475 list_for_each_entry(w, &codec->component.card->widgets, list) { in wm8960_add_widgets()
476 if (w->dapm != &codec->dapm) in wm8960_add_widgets()
478 if (strcmp(w->name, "LOUT1 PGA") == 0) in wm8960_add_widgets()
479 wm8960->lout1 = w; in wm8960_add_widgets()
480 if (strcmp(w->name, "ROUT1 PGA") == 0) in wm8960_add_widgets()
481 wm8960->rout1 = w; in wm8960_add_widgets()
482 if (strcmp(w->name, "OUT3 VMID") == 0) in wm8960_add_widgets()
483 wm8960->out3 = w; in wm8960_add_widgets()
Drt5651.c376 static int set_dmic_clk(struct snd_soc_dapm_widget *w, in set_dmic_clk() argument
379 struct snd_soc_codec *codec = w->codec; in set_dmic_clk()
731 static int rt5651_amp_power_event(struct snd_soc_dapm_widget *w, in rt5651_amp_power_event() argument
734 struct snd_soc_codec *codec = w->codec; in rt5651_amp_power_event()
769 static int rt5651_hp_event(struct snd_soc_dapm_widget *w, in rt5651_hp_event() argument
772 struct snd_soc_codec *codec = w->codec; in rt5651_hp_event()
813 static int rt5651_hp_post_event(struct snd_soc_dapm_widget *w, in rt5651_hp_post_event() argument
816 struct snd_soc_codec *codec = w->codec; in rt5651_hp_post_event()
833 static int rt5651_bst1_event(struct snd_soc_dapm_widget *w, in rt5651_bst1_event() argument
836 struct snd_soc_codec *codec = w->codec; in rt5651_bst1_event()
[all …]
Dwm8770.c91 static int vout12supply_event(struct snd_soc_dapm_widget *w,
93 static int vout34supply_event(struct snd_soc_dapm_widget *w,
308 static int vout12supply_event(struct snd_soc_dapm_widget *w, in vout12supply_event() argument
313 codec = w->codec; in vout12supply_event()
327 static int vout34supply_event(struct snd_soc_dapm_widget *w, in vout34supply_event() argument
332 codec = w->codec; in vout34supply_event()
/sound/oss/
Dmsnd.h145 #define HIBYTE(w) ((BYTE)(((WORD)(w) >> 8) & 0xFF)) argument
146 #define LOBYTE(w) ((BYTE)(w)) argument
150 #define PCTODSP_OFFSET(w) (USHORT)((w)/2) argument
151 #define PCTODSP_BASED(w) (USHORT)(((w)/2) + DSP_BASE_ADDR) argument
152 #define DSPTOPC_BASED(w) (((w) - DSP_BASE_ADDR) * 2) argument
/sound/isa/msnd/
Dmsnd.h184 #define HIBYTE(w) ((u8)(((u16)(w) >> 8) & 0xFF)) argument
185 #define LOBYTE(w) ((u8)(w)) argument
189 #define PCTODSP_OFFSET(w) (u16)((w)/2) argument
190 #define PCTODSP_BASED(w) (u16)(((w)/2) + DSP_BASE_ADDR) argument
191 #define DSPTOPC_BASED(w) (((w) - DSP_BASE_ADDR) * 2) argument
/sound/pci/
Des1968.c2070 unsigned short w; in snd_es1968_ac97_reset() local
2084 pci_read_config_word(chip->pci, 0x58, &w); /* something magical with gpio and bus arb. */ in snd_es1968_ac97_reset()
2086 if (w & 1) in snd_es1968_ac97_reset()
2118 for (w = 0;; w++) { in snd_es1968_ac97_reset()
2133 if (w > 10000) { in snd_es1968_ac97_reset()
2140 for (w = 0; w < 10000; w++) { in snd_es1968_ac97_reset()
2187 u16 w; in snd_es1968_chip_init() local
2202 pci_read_config_word(pci, ESM_CONFIG_A, &w); in snd_es1968_chip_init()
2204 w &= ~DMA_CLEAR; /* Clear DMA bits */ in snd_es1968_chip_init()
2205 w &= ~(PIC_SNOOP1 | PIC_SNOOP2); /* Clear Pic Snoop Mode Bits */ in snd_es1968_chip_init()
[all …]
/sound/soc/sirf/
Dsirf-audio.c23 static int sirf_audio_hp_event(struct snd_soc_dapm_widget *w, in sirf_audio_hp_event() argument
26 struct snd_soc_dapm_context *dapm = w->dapm; in sirf_audio_hp_event()
35 static int sirf_audio_spk_event(struct snd_soc_dapm_widget *w, in sirf_audio_spk_event() argument
38 struct snd_soc_dapm_context *dapm = w->dapm; in sirf_audio_spk_event()

12345