Home
last modified time | relevance | path

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

123456789

/sound/soc/
Dsoc-dapm.c181 static bool dapm_dirty_widget(struct snd_soc_dapm_widget *w) in dapm_dirty_widget() argument
183 return !list_empty(&w->dirty); in dapm_dirty_widget()
186 static void dapm_mark_dirty(struct snd_soc_dapm_widget *w, const char *reason) in dapm_mark_dirty() argument
188 dapm_assert_locked(w->dapm); in dapm_mark_dirty()
190 if (!dapm_dirty_widget(w)) { in dapm_mark_dirty()
191 dev_vdbg(w->dapm->dev, "Marking %s dirty due to %s\n", in dapm_mark_dirty()
192 w->name, reason); in dapm_mark_dirty()
193 list_add_tail(&w->dirty, &w->dapm->card->dapm_dirty); in dapm_mark_dirty()
205 struct snd_soc_dapm_widget *w, enum snd_soc_dapm_direction dir) in dapm_widget_invalidate_paths() argument
212 dapm_assert_locked(w->dapm); in dapm_widget_invalidate_paths()
[all …]
Dsoc-topology.c284 struct snd_soc_dapm_widget *w, struct snd_soc_tplg_dapm_widget *tplg_w) in soc_tplg_widget_load() argument
287 return tplg->ops->widget_load(tplg->comp, tplg->index, w, in soc_tplg_widget_load()
296 struct snd_soc_dapm_widget *w, struct snd_soc_tplg_dapm_widget *tplg_w) in soc_tplg_widget_ready() argument
299 return tplg->ops->widget_ready(tplg->comp, tplg->index, w, in soc_tplg_widget_ready()
453 struct snd_soc_dapm_widget *w = in remove_widget() local
463 if (!w->kcontrols) in remove_widget()
472 for (i = 0; w->kcontrols != NULL && i < w->num_kcontrols; i++) { in remove_widget()
473 struct snd_kcontrol *kcontrol = w->kcontrols[i]; in remove_widget()
484 kfree(w->kcontrol_news[i].name); in remove_widget()
488 for (i = 0; w->kcontrols != NULL && i < w->num_kcontrols; i++) { in remove_widget()
[all …]
/sound/soc/ti/
Ddavinci-vcif.c48 u32 w; in davinci_vcif_start() local
51 w = readl(davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_start()
54 MOD_REG_BIT(w, DAVINCI_VC_CTRL_RSTDAC, 0); in davinci_vcif_start()
56 MOD_REG_BIT(w, DAVINCI_VC_CTRL_RSTADC, 0); in davinci_vcif_start()
58 writel(w, davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_start()
67 u32 w; in davinci_vcif_stop() local
70 w = readl(davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_stop()
72 MOD_REG_BIT(w, DAVINCI_VC_CTRL_RSTDAC, 1); in davinci_vcif_stop()
74 MOD_REG_BIT(w, DAVINCI_VC_CTRL_RSTADC, 1); in davinci_vcif_stop()
76 writel(w, davinci_vc->base + DAVINCI_VC_CTRL); in davinci_vcif_stop()
[all …]
Domap-mcbsp-st.c81 unsigned int w; in omap_mcbsp_st_on() local
87 w = MCBSP_ST_READ(mcbsp, SYSCONFIG); in omap_mcbsp_st_on()
88 MCBSP_ST_WRITE(mcbsp, SYSCONFIG, w & ~(ST_AUTOIDLE)); in omap_mcbsp_st_on()
91 w = MCBSP_READ(mcbsp, SSELCR); in omap_mcbsp_st_on()
92 MCBSP_WRITE(mcbsp, SSELCR, w | SIDETONEEN); in omap_mcbsp_st_on()
95 w = MCBSP_ST_READ(mcbsp, SSELCR); in omap_mcbsp_st_on()
96 MCBSP_ST_WRITE(mcbsp, SSELCR, w | ST_SIDETONEEN); in omap_mcbsp_st_on()
101 unsigned int w; in omap_mcbsp_st_off() local
103 w = MCBSP_ST_READ(mcbsp, SSELCR); in omap_mcbsp_st_off()
104 MCBSP_ST_WRITE(mcbsp, SSELCR, w & ~(ST_SIDETONEEN)); in omap_mcbsp_st_off()
[all …]
Domap-mcbsp.c422 u16 w; in omap_mcbsp_start() local
428 w = MCBSP_READ_CACHE(mcbsp, PCR0); in omap_mcbsp_start()
429 if (w & (FSXM | FSRM | CLKXM | CLKRM)) in omap_mcbsp_start()
435 w = MCBSP_READ_CACHE(mcbsp, SPCR2); in omap_mcbsp_start()
436 MCBSP_WRITE(mcbsp, SPCR2, w | (1 << 6)); in omap_mcbsp_start()
441 w = MCBSP_READ_CACHE(mcbsp, SPCR2); in omap_mcbsp_start()
442 MCBSP_WRITE(mcbsp, SPCR2, w | tx); in omap_mcbsp_start()
445 w = MCBSP_READ_CACHE(mcbsp, SPCR1); in omap_mcbsp_start()
446 MCBSP_WRITE(mcbsp, SPCR1, w | rx); in omap_mcbsp_start()
458 w = MCBSP_READ_CACHE(mcbsp, SPCR2); in omap_mcbsp_start()
[all …]
/sound/soc/intel/atom/
Dsst-atom-controls.c188 if (e->w && e->w->power) in sst_check_and_send_slot_map()
190 else if (!e->w) in sst_check_and_send_slot_map()
358 if (bc->w && bc->w->power) in sst_algo_control_set()
491 if (mc->w && mc->w->power) in sst_gain_put()
502 static int sst_send_pipe_module_params(struct snd_soc_dapm_widget *w, in sst_send_pipe_module_params() argument
505 struct snd_soc_component *c = snd_soc_dapm_to_component(w->dapm); in sst_send_pipe_module_params()
507 struct sst_ids *ids = w->priv; in sst_send_pipe_module_params()
510 sst_find_and_send_pipe_algo(drv, w->name, ids); in sst_send_pipe_module_params()
517 static int sst_generic_modules_event(struct snd_soc_dapm_widget *w, in sst_generic_modules_event() argument
521 return sst_send_pipe_module_params(w, k); in sst_generic_modules_event()
[all …]
/sound/soc/intel/skylake/
Dskl-topology.c91 static int is_skl_dsp_widget_type(struct snd_soc_dapm_widget *w, in is_skl_dsp_widget_type() argument
94 if (w->dapm->dev != dev) in is_skl_dsp_widget_type()
97 switch (w->id) { in is_skl_dsp_widget_type()
282 static int skl_tplg_update_be_blob(struct snd_soc_dapm_widget *w, in skl_tplg_update_be_blob() argument
285 struct skl_module_cfg *m_cfg = w->priv; in skl_tplg_update_be_blob()
343 static void skl_tplg_update_module_params(struct snd_soc_dapm_widget *w, in skl_tplg_update_module_params() argument
346 struct skl_module_cfg *m_cfg = w->priv; in skl_tplg_update_module_params()
355 w->name); in skl_tplg_update_module_params()
368 w->name); in skl_tplg_update_module_params()
378 static int skl_tplg_set_module_params(struct snd_soc_dapm_widget *w, in skl_tplg_set_module_params() argument
[all …]
/sound/soc/codecs/
Dmt6351.c578 static int mt_reg_set_clr_event(struct snd_soc_dapm_widget *w, in mt_reg_set_clr_event() argument
582 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mt_reg_set_clr_event()
586 if (w->on_val) { in mt_reg_set_clr_event()
589 w->reg + REG_STRIDE, in mt_reg_set_clr_event()
590 0x1 << w->shift, in mt_reg_set_clr_event()
591 0x1 << w->shift); in mt_reg_set_clr_event()
595 w->reg + REG_STRIDE * 2, in mt_reg_set_clr_event()
596 0x1 << w->shift, in mt_reg_set_clr_event()
597 0x1 << w->shift); in mt_reg_set_clr_event()
601 if (w->off_val) { in mt_reg_set_clr_event()
[all …]
Drt5677-spi.c99 u32 w, i, si; in rt5677_spi_reverse() local
102 for (w = 0; w < dstlen; w += word_size) { in rt5677_spi_reverse()
103 for (i = 0; i < word_size && i + w < dstlen; i++) { in rt5677_spi_reverse()
104 si = w + word_size - i - 1; in rt5677_spi_reverse()
105 dst[w + i] = si < srclen ? src[si] : 0; in rt5677_spi_reverse()
Dmsm8916-wcd-digital.c356 static int msm8x16_wcd_codec_set_iir_gain(struct snd_soc_dapm_widget *w, in msm8x16_wcd_codec_set_iir_gain() argument
360 snd_soc_dapm_to_component(w->dapm); in msm8x16_wcd_codec_set_iir_gain()
365 if (w->shift == 0) in msm8x16_wcd_codec_set_iir_gain()
367 else if (w->shift == 1) in msm8x16_wcd_codec_set_iir_gain()
576 struct snd_soc_dapm_widget *w, in msm8916_wcd_digital_enable_interpolator() argument
580 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in msm8916_wcd_digital_enable_interpolator()
586 snd_soc_component_write(component, rx_gain_reg[w->shift], in msm8916_wcd_digital_enable_interpolator()
587 snd_soc_component_read32(component, rx_gain_reg[w->shift])); in msm8916_wcd_digital_enable_interpolator()
591 1 << w->shift, 1 << w->shift); in msm8916_wcd_digital_enable_interpolator()
593 1 << w->shift, 0x0); in msm8916_wcd_digital_enable_interpolator()
[all …]
Dmsm8916-wcd-analog.c412 *w, struct snd_kcontrol in pm8916_wcd_analog_enable_micbias_ext1()
415 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pm8916_wcd_analog_enable_micbias_ext1()
418 return pm8916_wcd_analog_enable_micbias_ext(component, event, w->reg, in pm8916_wcd_analog_enable_micbias_ext1()
424 *w, struct snd_kcontrol in pm8916_wcd_analog_enable_micbias_ext2()
427 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pm8916_wcd_analog_enable_micbias_ext2()
430 return pm8916_wcd_analog_enable_micbias_ext(component, event, w->reg, in pm8916_wcd_analog_enable_micbias_ext2()
437 *w, struct snd_kcontrol in pm8916_wcd_analog_enable_micbias_int1()
440 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pm8916_wcd_analog_enable_micbias_int1()
451 return pm8916_wcd_analog_enable_micbias_int(component, event, w->reg, in pm8916_wcd_analog_enable_micbias_int1()
554 *w, struct snd_kcontrol in pm8916_wcd_analog_enable_micbias_int2()
[all …]
Dmt6358.c749 static int mt_clksq_event(struct snd_soc_dapm_widget *w, in mt_clksq_event() argument
753 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mt_clksq_event()
772 static int mt_sgen_event(struct snd_soc_dapm_widget *w, in mt_sgen_event() argument
776 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mt_sgen_event()
811 static int mt_aif_in_event(struct snd_soc_dapm_widget *w, in mt_aif_in_event() argument
815 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mt_aif_in_event()
1243 static int mt_hp_event(struct snd_soc_dapm_widget *w, in mt_hp_event() argument
1247 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mt_hp_event()
1249 unsigned int mux = dapm_kcontrol_get_value(w->kcontrols[0]); in mt_hp_event()
1301 static int mt_rcv_event(struct snd_soc_dapm_widget *w, in mt_rcv_event() argument
[all …]
Dmax98088.h200 #define M98088_BYTE1(w) ((w >> 8) & 0xff) argument
201 #define M98088_BYTE0(w) (w & 0xff) argument
Dwcd9335.c1283 struct snd_soc_dapm_widget *w = snd_soc_dapm_kcontrol_widget(kc); in slim_rx_mux_put() local
1284 struct wcd9335_codec *wcd = dev_get_drvdata(w->dapm->dev); in slim_rx_mux_put()
1287 u32 port_id = w->shift; in slim_rx_mux_put()
1316 snd_soc_dapm_mux_update_power(w->dapm, kc, wcd->rx_port_value, in slim_rx_mux_put()
2573 static int __wcd9335_codec_enable_micbias(struct snd_soc_dapm_widget *w, in __wcd9335_codec_enable_micbias() argument
2576 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in __wcd9335_codec_enable_micbias()
2579 if (strnstr(w->name, "MIC BIAS1", sizeof("MIC BIAS1"))) in __wcd9335_codec_enable_micbias()
2581 else if (strnstr(w->name, "MIC BIAS2", sizeof("MIC BIAS2"))) in __wcd9335_codec_enable_micbias()
2583 else if (strnstr(w->name, "MIC BIAS3", sizeof("MIC BIAS3"))) in __wcd9335_codec_enable_micbias()
2585 else if (strnstr(w->name, "MIC BIAS4", sizeof("MIC BIAS4"))) in __wcd9335_codec_enable_micbias()
[all …]
Dpcm3008.c27 static int pcm3008_dac_ev(struct snd_soc_dapm_widget *w, in pcm3008_dac_ev() argument
31 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pcm3008_dac_ev()
40 static int pcm3008_adc_ev(struct snd_soc_dapm_widget *w, in pcm3008_adc_ev() argument
44 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pcm3008_adc_ev()
Dmax98088.c616 static int max98088_mic_event(struct snd_soc_dapm_widget *w, in max98088_mic_event() argument
619 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98088_mic_event()
624 if (w->reg == M98088_REG_35_LVL_MIC1) { in max98088_mic_event()
625 snd_soc_component_update_bits(component, w->reg, M98088_MICPRE_MASK, in max98088_mic_event()
628 snd_soc_component_update_bits(component, w->reg, M98088_MICPRE_MASK, in max98088_mic_event()
633 snd_soc_component_update_bits(component, w->reg, M98088_MICPRE_MASK, 0); in max98088_mic_event()
646 static int max98088_line_pga(struct snd_soc_dapm_widget *w, in max98088_line_pga() argument
649 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98088_line_pga()
670 snd_soc_component_update_bits(component, w->reg, in max98088_line_pga()
671 (1 << w->shift), (1 << w->shift)); in max98088_line_pga()
[all …]
Dmax98095.c595 static int max98095_mic_event(struct snd_soc_dapm_widget *w, in max98095_mic_event() argument
598 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98095_mic_event()
603 if (w->reg == M98095_05F_LVL_MIC1) { in max98095_mic_event()
604 snd_soc_component_update_bits(component, w->reg, M98095_MICPRE_MASK, in max98095_mic_event()
607 snd_soc_component_update_bits(component, w->reg, M98095_MICPRE_MASK, in max98095_mic_event()
612 snd_soc_component_update_bits(component, w->reg, M98095_MICPRE_MASK, 0); in max98095_mic_event()
625 static int max98095_line_pga(struct snd_soc_dapm_widget *w, in max98095_line_pga() argument
628 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98095_line_pga()
640 snd_soc_component_update_bits(component, w->reg, in max98095_line_pga()
641 (1 << w->shift), (1 << w->shift)); in max98095_line_pga()
[all …]
Dmax98095.h301 #define M98095_BYTE1(w) ((w >> 8) & 0xff) argument
302 #define M98095_BYTE0(w) (w & 0xff) argument
Dwm5110.c158 static int wm5110_sysclk_ev(struct snd_soc_dapm_widget *w, in wm5110_sysclk_ev() argument
161 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm5110_sysclk_ev()
187 return arizona_clk_ev(w, kcontrol, event); in wm5110_sysclk_ev()
195 static int wm5110_adsp_power_ev(struct snd_soc_dapm_widget *w, in wm5110_adsp_power_ev() argument
198 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm5110_adsp_power_ev()
211 wm_adsp2_set_dspclk(w, v); in wm5110_adsp_power_ev()
213 return wm_adsp_early_event(w, kcontrol, event); in wm5110_adsp_power_ev()
288 static int wm5110_hp_pre_enable(struct snd_soc_dapm_widget *w) in wm5110_hp_pre_enable() argument
290 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm5110_hp_pre_enable()
297 switch (w->shift) { in wm5110_hp_pre_enable()
[all …]
Darizona.c80 static int arizona_spk_ev(struct snd_soc_dapm_widget *w, in arizona_spk_ev() argument
84 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in arizona_spk_ev()
100 1 << w->shift, 1 << w->shift); in arizona_spk_ev()
105 1 << w->shift, 0); in arizona_spk_ev()
111 return arizona_out_ev(w, kcontrol, event); in arizona_spk_ev()
906 int arizona_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, in arizona_in_ev() argument
909 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in arizona_in_ev()
913 if (w->shift % 2) in arizona_in_ev()
914 reg = ARIZONA_ADC_DIGITAL_VOLUME_1L + ((w->shift / 2) * 8); in arizona_in_ev()
916 reg = ARIZONA_ADC_DIGITAL_VOLUME_1R + ((w->shift / 2) * 8); in arizona_in_ev()
[all …]
/sound/mips/
Dad1843.c175 int w; in ad1843_read_bits() local
177 w = ad1843->read(ad1843->chip, field->reg); in ad1843_read_bits()
178 return w >> field->lo_bit & ((1 << field->nbits) - 1); in ad1843_read_bits()
189 int w, mask, oldval, newbits; in ad1843_write_bits() local
191 w = ad1843->read(ad1843->chip, field->reg); in ad1843_write_bits()
193 oldval = (w & mask) >> field->lo_bit; in ad1843_write_bits()
195 w = (w & ~mask) | newbits; in ad1843_write_bits()
196 ad1843->write(ad1843->chip, field->reg, w); in ad1843_write_bits()
218 int w = 0, mask, *value, reg = -1; in ad1843_read_multi() local
226 w = ad1843->read(ad1843->chip, reg); in ad1843_read_multi()
[all …]
/sound/isa/msnd/
Dmsnd.h171 #define HIBYTE(w) ((u8)(((u16)(w) >> 8) & 0xFF)) argument
172 #define LOBYTE(w) ((u8)(w)) argument
176 #define PCTODSP_OFFSET(w) (u16)((w)/2) argument
177 #define PCTODSP_BASED(w) (u16)(((w)/2) + DSP_BASE_ADDR) argument
178 #define DSPTOPC_BASED(w) (((w) - DSP_BASE_ADDR) * 2) argument
/sound/pci/
Des1968.c2053 unsigned short w; in snd_es1968_ac97_reset() local
2067 pci_read_config_word(chip->pci, 0x58, &w); /* something magical with gpio and bus arb. */ in snd_es1968_ac97_reset()
2069 if (w & 1) in snd_es1968_ac97_reset()
2101 for (w = 0;; w++) { in snd_es1968_ac97_reset()
2116 if (w > 10000) { in snd_es1968_ac97_reset()
2123 for (w = 0; w < 10000; w++) { in snd_es1968_ac97_reset()
2170 u16 w; in snd_es1968_chip_init() local
2185 pci_read_config_word(pci, ESM_CONFIG_A, &w); in snd_es1968_chip_init()
2187 w &= ~DMA_CLEAR; /* Clear DMA bits */ in snd_es1968_chip_init()
2188 w &= ~(PIC_SNOOP1 | PIC_SNOOP2); /* Clear Pic Snoop Mode Bits */ in snd_es1968_chip_init()
[all …]
/sound/soc/mediatek/mt8183/
Dmt8183-dai-i2s.c271 static int mtk_apll_event(struct snd_soc_dapm_widget *w, in mtk_apll_event() argument
275 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mtk_apll_event()
279 __func__, w->name, event); in mtk_apll_event()
283 if (strcmp(w->name, APLL1_W_NAME) == 0) in mtk_apll_event()
289 if (strcmp(w->name, APLL1_W_NAME) == 0) in mtk_apll_event()
301 static int mtk_mclk_en_event(struct snd_soc_dapm_widget *w, in mtk_mclk_en_event() argument
305 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mtk_mclk_en_event()
310 __func__, w->name, event); in mtk_mclk_en_event()
312 i2s_priv = get_i2s_priv_by_name(afe, w->name); in mtk_mclk_en_event()
425 struct snd_soc_dapm_widget *w = sink; in mtk_afe_i2s_share_connect() local
[all …]
/sound/soc/sirf/
Dsirf-audio.c22 static int sirf_audio_hp_event(struct snd_soc_dapm_widget *w, in sirf_audio_hp_event() argument
25 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()

123456789