Home
last modified time | relevance | path

Searched refs:component (Results 1 – 25 of 588) sorted by relevance

12345678910>>...24

/Linux-v4.19/sound/soc/codecs/
Dtlv320dac33.c66 struct snd_soc_component *component);
68 struct snd_soc_component *component);
94 struct snd_soc_component *component; member
174 static inline unsigned int dac33_read_reg_cache(struct snd_soc_component *component, in dac33_read_reg_cache() argument
177 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_read_reg_cache()
185 static inline void dac33_write_reg_cache(struct snd_soc_component *component, in dac33_write_reg_cache() argument
188 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_write_reg_cache()
196 static int dac33_read(struct snd_soc_component *component, unsigned int reg, in dac33_read() argument
199 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_read()
208 dev_err(component->dev, "Read failed (%d)\n", val); in dac33_read()
[all …]
Dda7219-aad.c35 void da7219_aad_jack_det(struct snd_soc_component *component, struct snd_soc_jack *jack) in da7219_aad_jack_det() argument
37 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_jack_det()
46 snd_soc_component_update_bits(component, DA7219_ACCDET_CONFIG_1, in da7219_aad_jack_det()
60 struct snd_soc_component *component = da7219_aad->component; in da7219_aad_btn_det_work() local
61 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in da7219_aad_btn_det_work()
62 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_btn_det_work()
68 snd_soc_component_update_bits(component, DA7219_HP_L_CTRL, in da7219_aad_btn_det_work()
71 snd_soc_component_update_bits(component, DA7219_HP_R_CTRL, in da7219_aad_btn_det_work()
80 statusa = snd_soc_component_read32(component, DA7219_ACCDET_STATUS_A); in da7219_aad_btn_det_work()
88 dev_warn(component->dev, "Mic bias status check timed out"); in da7219_aad_btn_det_work()
[all …]
Dtwl6040.c79 struct snd_soc_component *component; member
109 #define to_twl6040(component) dev_get_drvdata((component)->dev->parent) argument
111 static unsigned int twl6040_read(struct snd_soc_component *component, unsigned int reg) in twl6040_read() argument
113 struct twl6040_data *priv = snd_soc_component_get_drvdata(component); in twl6040_read()
114 struct twl6040 *twl6040 = to_twl6040(component); in twl6040_read()
136 static bool twl6040_can_write_to_chip(struct snd_soc_component *component, in twl6040_can_write_to_chip() argument
139 struct twl6040_data *priv = snd_soc_component_get_drvdata(component); in twl6040_can_write_to_chip()
155 static inline void twl6040_update_dl12_cache(struct snd_soc_component *component, in twl6040_update_dl12_cache() argument
158 struct twl6040_data *priv = snd_soc_component_get_drvdata(component); in twl6040_update_dl12_cache()
173 static int twl6040_write(struct snd_soc_component *component, in twl6040_write() argument
[all …]
Dwm8961.c197 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm8961_hp_event() local
198 u16 hp_reg = snd_soc_component_read32(component, WM8961_ANALOGUE_HP_0); in wm8961_hp_event()
199 u16 cp_reg = snd_soc_component_read32(component, WM8961_CHARGE_PUMP_1); in wm8961_hp_event()
200 u16 pwr_reg = snd_soc_component_read32(component, WM8961_PWR_MGMT_2); in wm8961_hp_event()
201 u16 dcs_reg = snd_soc_component_read32(component, WM8961_DC_SERVO_1); in wm8961_hp_event()
207 snd_soc_component_write(component, WM8961_ANALOGUE_HP_0, hp_reg); in wm8961_hp_event()
211 snd_soc_component_write(component, WM8961_CHARGE_PUMP_1, cp_reg); in wm8961_hp_event()
216 snd_soc_component_write(component, WM8961_PWR_MGMT_2, pwr_reg); in wm8961_hp_event()
220 snd_soc_component_write(component, WM8961_ANALOGUE_HP_0, hp_reg); in wm8961_hp_event()
224 snd_soc_component_write(component, WM8961_ANALOGUE_HP_0, hp_reg); in wm8961_hp_event()
[all …]
Dmax98095.c254 static void m98095_eq_band(struct snd_soc_component *component, unsigned int dai, in m98095_eq_band() argument
272 snd_soc_component_write(component, eq_reg++, M98095_BYTE1(coefs[i])); in m98095_eq_band()
273 snd_soc_component_write(component, eq_reg++, M98095_BYTE0(coefs[i])); in m98095_eq_band()
280 static void m98095_biquad_band(struct snd_soc_component *component, unsigned int dai, in m98095_biquad_band() argument
298 snd_soc_component_write(component, bq_reg++, M98095_BYTE1(coefs[i])); in m98095_biquad_band()
299 snd_soc_component_write(component, bq_reg++, M98095_BYTE0(coefs[i])); in m98095_biquad_band()
356 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98095_mic1pre_set() local
357 struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); in max98095_mic1pre_set()
361 snd_soc_component_update_bits(component, M98095_05F_LVL_MIC1, M98095_MICPRE_MASK, in max98095_mic1pre_set()
370 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98095_mic1pre_get() local
[all …]
Drt5631.c74 static void rt5631_write_index(struct snd_soc_component *component, in rt5631_write_index() argument
77 snd_soc_component_write(component, RT5631_INDEX_ADD, reg); in rt5631_write_index()
78 snd_soc_component_write(component, RT5631_INDEX_DATA, value); in rt5631_write_index()
84 static unsigned int rt5631_read_index(struct snd_soc_component *component, in rt5631_read_index() argument
89 snd_soc_component_write(component, RT5631_INDEX_ADD, reg); in rt5631_read_index()
90 value = snd_soc_component_read32(component, RT5631_INDEX_DATA); in rt5631_read_index()
95 static int rt5631_reset(struct snd_soc_component *component) in rt5631_reset() argument
97 return snd_soc_component_write(component, RT5631_RESET, 0); in rt5631_reset()
190 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in rt5631_dmic_get() local
191 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in rt5631_dmic_get()
[all …]
Dwm8958-dsp2.c42 static int wm8958_dsp2_fw(struct snd_soc_component *component, const char *name, in wm8958_dsp2_fw() argument
45 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_dsp2_fw()
58 dev_err(component->dev, "%s: firmware too short (%zd bytes)\n", in wm8958_dsp2_fw()
66 dev_err(component->dev, "%s: firmware has bad file magic %08x\n", in wm8958_dsp2_fw()
77 dev_err(component->dev, "%s: unsupported firmware version %d\n", in wm8958_dsp2_fw()
82 dev_err(component->dev, "%s: unsupported target device %d\n", in wm8958_dsp2_fw()
87 dev_err(component->dev, "%s: unsupported target core %d\n", in wm8958_dsp2_fw()
94 dev_info(component->dev, "%s timestamp %llx\n", in wm8958_dsp2_fw()
97 snd_soc_component_write(component, 0x102, 0x2); in wm8958_dsp2_fw()
98 snd_soc_component_write(component, 0x900, 0x2); in wm8958_dsp2_fw()
[all …]
Dwm_hubs.c63 static void wait_for_dc_servo(struct snd_soc_component *component, unsigned int op) in wait_for_dc_servo() argument
65 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in wait_for_dc_servo()
74 snd_soc_component_write(component, WM8993_DC_SERVO_0, val); in wait_for_dc_servo()
76 dev_dbg(component->dev, "Waiting for DC servo...\n"); in wait_for_dc_servo()
92 reg = snd_soc_component_read32(component, WM8993_DC_SERVO_0); in wait_for_dc_servo()
93 dev_dbg(component->dev, "DC servo: %x\n", reg); in wait_for_dc_servo()
97 dev_err(component->dev, "Timed out waiting for DC Servo %x\n", in wait_for_dc_servo()
111 static bool wm_hubs_dac_hp_direct(struct snd_soc_component *component) in wm_hubs_dac_hp_direct() argument
116 reg = snd_soc_component_read32(component, WM8993_OUTPUT_MIXER1); in wm_hubs_dac_hp_direct()
119 dev_vdbg(component->dev, "Analogue paths connected: %x\n", in wm_hubs_dac_hp_direct()
[all …]
Drt5663.c52 struct snd_soc_component *component; member
1389 static void rt5663_enable_push_button_irq(struct snd_soc_component *component, in rt5663_enable_push_button_irq() argument
1392 struct rt5663_priv *rt5663 = snd_soc_component_get_drvdata(component); in rt5663_enable_push_button_irq()
1395 snd_soc_component_update_bits(component, RT5663_IL_CMD_6, in rt5663_enable_push_button_irq()
1398 snd_soc_component_update_bits(component, RT5663_IL_CMD_6, in rt5663_enable_push_button_irq()
1401 snd_soc_component_update_bits(component, RT5663_IL_CMD_6, in rt5663_enable_push_button_irq()
1406 snd_soc_component_update_bits(component, RT5663_IRQ_3, in rt5663_enable_push_button_irq()
1411 snd_soc_component_update_bits(component, RT5663_IRQ_2, in rt5663_enable_push_button_irq()
1416 dev_err(component->dev, "Unknown CODEC Version\n"); in rt5663_enable_push_button_irq()
1421 snd_soc_component_update_bits(component, RT5663_IRQ_3, in rt5663_enable_push_button_irq()
[all …]
Dwm8753.c58 static int wm8753_hifi_write_dai_fmt(struct snd_soc_component *component,
60 static int wm8753_voice_write_dai_fmt(struct snd_soc_component *component,
232 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8753_get_dai() local
233 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_get_dai()
242 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8753_set_dai() local
243 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_set_dai()
249 if (snd_soc_component_is_active(component)) in wm8753_set_dai()
252 ioctl = snd_soc_component_read32(component, WM8753_IOCTL); in wm8753_set_dai()
260 snd_soc_component_write(component, WM8753_IOCTL, ioctl); in wm8753_set_dai()
263 wm8753_hifi_write_dai_fmt(component, wm8753->hifi_fmt); in wm8753_set_dai()
[all …]
Dwm8900.c219 static void wm8900_reset(struct snd_soc_component *component) in wm8900_reset() argument
221 snd_soc_component_write(component, WM8900_REG_RESET, 0); in wm8900_reset()
227 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm8900_hp_event() local
228 u16 hpctl1 = snd_soc_component_read32(component, WM8900_REG_HPCTL1); in wm8900_hp_event()
235 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event()
244 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event()
251 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event()
255 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event()
257 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event()
263 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event()
[all …]
Dda7213.c197 static int da7213_get_alc_data(struct snd_soc_component *component, u8 reg_val) in da7213_get_alc_data() argument
206 snd_soc_component_write(component, DA7213_ALC_CIC_OP_LVL_CTRL, reg_val); in da7213_get_alc_data()
209 snd_soc_component_write(component, DA7213_ALC_CIC_OP_LVL_CTRL, in da7213_get_alc_data()
211 mid_data = snd_soc_component_read32(component, DA7213_ALC_CIC_OP_LVL_DATA); in da7213_get_alc_data()
214 snd_soc_component_write(component, DA7213_ALC_CIC_OP_LVL_CTRL, in da7213_get_alc_data()
216 top_data = snd_soc_component_read32(component, DA7213_ALC_CIC_OP_LVL_DATA); in da7213_get_alc_data()
224 static void da7213_alc_calib_man(struct snd_soc_component *component) in da7213_alc_calib_man() argument
231 avg_left_data = da7213_get_alc_data(component, in da7213_alc_calib_man()
234 avg_right_data = da7213_get_alc_data(component, in da7213_alc_calib_man()
242 snd_soc_component_write(component, DA7213_ALC_OFFSET_MAN_M_L, reg_val); in da7213_alc_calib_man()
[all …]
Dmax98088.c310 static void m98088_eq_band(struct snd_soc_component *component, unsigned int dai, in m98088_eq_band() argument
328 snd_soc_component_write(component, eq_reg++, M98088_BYTE1(coefs[i])); in m98088_eq_band()
329 snd_soc_component_write(component, eq_reg++, M98088_BYTE0(coefs[i])); in m98088_eq_band()
383 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98088_mic1pre_set() local
384 struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); in max98088_mic1pre_set()
388 snd_soc_component_update_bits(component, M98088_REG_35_LVL_MIC1, M98088_MICPRE_MASK, in max98088_mic1pre_set()
397 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98088_mic1pre_get() local
398 struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); in max98088_mic1pre_get()
407 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98088_mic2pre_set() local
408 struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); in max98088_mic2pre_set()
[all …]
Dtwl4030.c89 static unsigned int twl4030_read(struct snd_soc_component *component, unsigned int reg) in twl4030_read() argument
91 struct twl4030_priv *twl4030 = snd_soc_component_get_drvdata(component); in twl4030_read()
154 static int twl4030_write(struct snd_soc_component *component, unsigned int reg, in twl4030_write() argument
157 struct twl4030_priv *twl4030 = snd_soc_component_get_drvdata(component); in twl4030_write()
189 static void twl4030_codec_enable(struct snd_soc_component *component, int enable) in twl4030_codec_enable() argument
191 struct twl4030_priv *twl4030 = snd_soc_component_get_drvdata(component); in twl4030_codec_enable()
230 static struct twl4030_codec_data *twl4030_get_pdata(struct snd_soc_component *component) in twl4030_get_pdata() argument
232 struct twl4030_codec_data *pdata = dev_get_platdata(component->dev); in twl4030_get_pdata()
235 twl4030_codec_node = of_get_child_by_name(component->dev->parent->of_node, in twl4030_get_pdata()
239 pdata = devm_kzalloc(component->dev, in twl4030_get_pdata()
[all …]
Dtas2552.c73 struct snd_soc_component *component; member
91 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in tas2552_post_event() local
95 snd_soc_component_write(component, TAS2552_RESERVED_0D, 0xc0); in tas2552_post_event()
96 snd_soc_component_update_bits(component, TAS2552_LIMIT_RATE_HYS, (1 << 5), in tas2552_post_event()
98 snd_soc_component_update_bits(component, TAS2552_CFG_2, 1, 0); in tas2552_post_event()
99 snd_soc_component_update_bits(component, TAS2552_CFG_1, TAS2552_SWS, 0); in tas2552_post_event()
102 snd_soc_component_update_bits(component, TAS2552_CFG_1, TAS2552_SWS, in tas2552_post_event()
104 snd_soc_component_update_bits(component, TAS2552_CFG_2, 1, 1); in tas2552_post_event()
105 snd_soc_component_update_bits(component, TAS2552_LIMIT_RATE_HYS, (1 << 5), 0); in tas2552_post_event()
106 snd_soc_component_write(component, TAS2552_RESERVED_0D, 0xbe); in tas2552_post_event()
[all …]
Dwm8960.c52 static int wm8960_set_pll(struct snd_soc_component *component,
171 static int wm8960_set_deemph(struct snd_soc_component *component) in wm8960_set_deemph() argument
173 struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component); in wm8960_set_deemph()
192 dev_dbg(component->dev, "Set deemphasis %d\n", val); in wm8960_set_deemph()
194 return snd_soc_component_update_bits(component, WM8960_DACCTL1, in wm8960_set_deemph()
201 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8960_get_deemph() local
202 struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component); in wm8960_get_deemph()
211 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8960_put_deemph() local
212 struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component); in wm8960_put_deemph()
220 return wm8960_set_deemph(component); in wm8960_put_deemph()
[all …]
Dwm8994.c109 static void wm8958_micd_set_rate(struct snd_soc_component *component) in wm8958_micd_set_rate() argument
111 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_micd_set_rate()
120 sysclk = snd_soc_component_read32(component, WM8994_CLOCKING_1); in wm8958_micd_set_rate()
151 dev_dbg(component->dev, "MICD rate %d,%d for %dHz %s\n", in wm8958_micd_set_rate()
155 snd_soc_component_update_bits(component, WM8958_MIC_DETECT_1, in wm8958_micd_set_rate()
160 static int configure_aif_clock(struct snd_soc_component *component, int aif) in configure_aif_clock() argument
162 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in configure_aif_clock()
200 dev_dbg(component->dev, "Dividing AIF%d clock to %dHz\n", in configure_aif_clock()
206 snd_soc_component_update_bits(component, WM8994_AIF1_CLOCKING_1 + offset, in configure_aif_clock()
213 static int configure_clock(struct snd_soc_component *component) in configure_clock() argument
[all …]
Dwm8955.c131 static int wm8955_reset(struct snd_soc_component *component) in wm8955_reset() argument
133 return snd_soc_component_write(component, WM8955_RESET, 0); in wm8955_reset()
245 static int wm8955_configure_clocking(struct snd_soc_component *component) in wm8955_configure_clocking() argument
247 struct wm8955_priv *wm8955 = snd_soc_component_get_drvdata(component); in wm8955_configure_clocking()
270 dev_err(component->dev, "Sample rate %dHz unsupported\n", in wm8955_configure_clocking()
285 ret = wm8995_pll_factors(component->dev, wm8955->mclk_rate, in wm8955_configure_clocking()
288 dev_err(component->dev, in wm8955_configure_clocking()
294 snd_soc_component_update_bits(component, WM8955_PLL_CONTROL_1, in wm8955_configure_clocking()
298 snd_soc_component_update_bits(component, WM8955_PLL_CONTROL_2, in wm8955_configure_clocking()
301 snd_soc_component_update_bits(component, WM8955_PLL_CONTROL_3, in wm8955_configure_clocking()
[all …]
Dwm8978.c411 static void pll_factors(struct snd_soc_component *component, in pll_factors() argument
427 dev_warn(component->dev, in pll_factors()
474 static int wm8978_configure_pll(struct snd_soc_component *component) in wm8978_configure_pll() argument
476 struct wm8978_priv *wm8978 = snd_soc_component_get_drvdata(component); in wm8978_configure_pll()
508 dev_dbg(component->dev, "%s: OPCLKDIV=%d\n", __func__, opclk_div); in wm8978_configure_pll()
510 snd_soc_component_update_bits(component, WM8978_GPIO_CONTROL, 0x30, in wm8978_configure_pll()
536 dev_dbg(component->dev, "%s: f_MCLK=%uHz, f_PLLOUT=%uHz\n", __func__, in wm8978_configure_pll()
539 pll_factors(component, &pll_div, f2, wm8978->f_mclk); in wm8978_configure_pll()
541 dev_dbg(component->dev, "%s: calculated PLL N=0x%x, K=0x%x, div2=%d\n", in wm8978_configure_pll()
545 snd_soc_component_update_bits(component, WM8978_POWER_MANAGEMENT_1, 0x20, 0); in wm8978_configure_pll()
[all …]
Dwm8904.c319 static int wm8904_configure_clocking(struct snd_soc_component *component) in wm8904_configure_clocking() argument
321 struct wm8904_priv *wm8904 = snd_soc_component_get_drvdata(component); in wm8904_configure_clocking()
325 clock2 = snd_soc_component_read32(component, WM8904_CLOCK_RATES_2); in wm8904_configure_clocking()
326 snd_soc_component_update_bits(component, WM8904_CLOCK_RATES_2, in wm8904_configure_clocking()
332 dev_dbg(component->dev, "Using %dHz MCLK\n", wm8904->mclk_rate); in wm8904_configure_clocking()
338 snd_soc_component_update_bits(component, WM8904_FLL_CONTROL_1, in wm8904_configure_clocking()
343 dev_dbg(component->dev, "Using %dHz FLL clock\n", in wm8904_configure_clocking()
351 dev_err(component->dev, "System clock not configured\n"); in wm8904_configure_clocking()
364 snd_soc_component_update_bits(component, WM8904_CLOCK_RATES_0, WM8904_MCLK_DIV, in wm8904_configure_clocking()
367 snd_soc_component_update_bits(component, WM8904_CLOCK_RATES_2, in wm8904_configure_clocking()
[all …]
Dwm8940.c342 struct snd_soc_component *component = codec_dai->component; in wm8940_set_dai_fmt() local
343 u16 iface = snd_soc_component_read32(component, WM8940_IFACE) & 0xFE67; in wm8940_set_dai_fmt()
344 u16 clk = snd_soc_component_read32(component, WM8940_CLOCK) & 0x1fe; in wm8940_set_dai_fmt()
355 snd_soc_component_write(component, WM8940_CLOCK, clk); in wm8940_set_dai_fmt()
388 snd_soc_component_write(component, WM8940_IFACE, iface); in wm8940_set_dai_fmt()
397 struct snd_soc_component *component = dai->component; in wm8940_i2s_hw_params() local
398 u16 iface = snd_soc_component_read32(component, WM8940_IFACE) & 0xFD9F; in wm8940_i2s_hw_params()
399 u16 addcntrl = snd_soc_component_read32(component, WM8940_ADDCNTRL) & 0xFFF1; in wm8940_i2s_hw_params()
400 u16 companding = snd_soc_component_read32(component, in wm8940_i2s_hw_params()
429 ret = snd_soc_component_write(component, WM8940_ADDCNTRL, addcntrl); in wm8940_i2s_hw_params()
[all …]
Drt274.c41 struct snd_soc_component *component; member
341 static void rt274_index_sync(struct snd_soc_component *component) in rt274_index_sync() argument
343 struct rt274_priv *rt274 = snd_soc_component_get_drvdata(component); in rt274_index_sync()
347 snd_soc_component_write(component, rt274->index_cache[i].reg, in rt274_index_sync()
360 if (!rt274->component) in rt274_jack_detect()
396 static int rt274_mic_detect(struct snd_soc_component *component, in rt274_mic_detect() argument
399 struct rt274_priv *rt274 = snd_soc_component_get_drvdata(component); in rt274_mic_detect()
612 struct snd_soc_component *component = dai->component; in rt274_hw_params() local
613 struct rt274_priv *rt274 = snd_soc_component_get_drvdata(component); in rt274_hw_params()
623 dev_err(component->dev, "Unsupported sample rate %d\n", in rt274_hw_params()
[all …]
Dtlv320aic3x.c75 struct snd_soc_component *component; member
165 struct snd_soc_component *component = snd_soc_dapm_kcontrol_component(kcontrol); in snd_soc_dapm_put_volsw_aic3x() local
166 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in snd_soc_dapm_put_volsw_aic3x()
192 change = snd_soc_component_test_bits(component, reg, mask, val); in snd_soc_dapm_put_volsw_aic3x()
218 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in mic_bias_event() local
219 struct aic3x_priv *aic3x = snd_soc_component_get_drvdata(component); in mic_bias_event()
224 snd_soc_component_update_bits(component, MICBIAS_CTRL, in mic_bias_event()
230 snd_soc_component_update_bits(component, MICBIAS_CTRL, in mic_bias_event()
996 static int aic3x_add_widgets(struct snd_soc_component *component) in aic3x_add_widgets() argument
998 struct aic3x_priv *aic3x = snd_soc_component_get_drvdata(component); in aic3x_add_widgets()
[all …]
/Linux-v4.19/sound/soc/
Dsoc-io.c23 int snd_soc_component_read(struct snd_soc_component *component, in snd_soc_component_read() argument
28 if (component->regmap) in snd_soc_component_read()
29 ret = regmap_read(component->regmap, reg, val); in snd_soc_component_read()
30 else if (component->driver->read) { in snd_soc_component_read()
31 *val = component->driver->read(component, reg); in snd_soc_component_read()
41 unsigned int snd_soc_component_read32(struct snd_soc_component *component, in snd_soc_component_read32() argument
47 ret = snd_soc_component_read(component, reg, &val); in snd_soc_component_read32()
63 int snd_soc_component_write(struct snd_soc_component *component, in snd_soc_component_write() argument
66 if (component->regmap) in snd_soc_component_write()
67 return regmap_write(component->regmap, reg, val); in snd_soc_component_write()
[all …]
/Linux-v4.19/drivers/base/
Dcomponent.c19 struct component;
25 struct component *component; member
45 struct component { struct
80 match->compare[i].component ? in component_devices_show()
144 static struct component *find_component(struct master *master, in find_component()
147 struct component *c; in find_component()
172 struct component *c; in find_components()
176 if (match->compare[i].component) in find_components()
189 match->compare[i].component = c; in find_components()
196 static void remove_component(struct master *master, struct component *c) in remove_component()
[all …]

12345678910>>...24