Lines Matching refs:component
139 struct snd_soc_component *component; member
272 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in snd_soc_get_volsw_2r_st() local
277 val[0] = snd_soc_component_read(component, reg) & 0x3f; in snd_soc_get_volsw_2r_st()
278 val[1] = (snd_soc_component_read(component, PM860X_SIDETONE_SHIFT) >> 4) & 0xf; in snd_soc_get_volsw_2r_st()
279 val2[0] = snd_soc_component_read(component, reg2) & 0x3f; in snd_soc_get_volsw_2r_st()
280 val2[1] = (snd_soc_component_read(component, PM860X_SIDETONE_SHIFT)) & 0xf; in snd_soc_get_volsw_2r_st()
296 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in snd_soc_put_volsw_2r_st() local
308 err = snd_soc_component_update_bits(component, reg, 0x3f, st_table[val].m); in snd_soc_put_volsw_2r_st()
311 err = snd_soc_component_update_bits(component, PM860X_SIDETONE_SHIFT, 0xf0, in snd_soc_put_volsw_2r_st()
316 err = snd_soc_component_update_bits(component, reg2, 0x3f, st_table[val2].m); in snd_soc_put_volsw_2r_st()
319 err = snd_soc_component_update_bits(component, PM860X_SIDETONE_SHIFT, 0x0f, in snd_soc_put_volsw_2r_st()
329 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in snd_soc_get_volsw_2r_out() local
336 val = snd_soc_component_read(component, reg) >> shift; in snd_soc_get_volsw_2r_out()
337 val2 = snd_soc_component_read(component, reg2) >> shift; in snd_soc_get_volsw_2r_out()
349 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in snd_soc_put_volsw_2r_out() local
365 err = snd_soc_component_update_bits(component, reg, val_mask, val); in snd_soc_put_volsw_2r_out()
369 err = snd_soc_component_update_bits(component, reg2, val_mask, val2); in snd_soc_put_volsw_2r_out()
382 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pm860x_rsync_event() local
390 snd_soc_component_update_bits(component, PM860X_DAC_OFFSET, DAC_MUTE, 0); in pm860x_rsync_event()
391 snd_soc_component_update_bits(component, PM860X_EAR_CTRL_2, in pm860x_rsync_event()
399 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in pm860x_dac_event() local
412 snd_soc_component_update_bits(component, PM860X_DAC_OFFSET, in pm860x_dac_event()
414 snd_soc_component_update_bits(component, PM860X_EAR_CTRL_2, in pm860x_dac_event()
417 snd_soc_component_update_bits(component, PM860X_DAC_EN_2, in pm860x_dac_event()
424 snd_soc_component_update_bits(component, PM860X_DAC_OFFSET, in pm860x_dac_event()
426 snd_soc_component_update_bits(component, PM860X_EAR_CTRL_2, in pm860x_dac_event()
429 data = snd_soc_component_read(component, PM860X_DAC_EN_2); in pm860x_dac_event()
433 snd_soc_component_write(component, PM860X_DAC_EN_2, data); in pm860x_dac_event()
907 struct snd_soc_component *component = codec_dai->component; in pm860x_mute_stream() local
912 snd_soc_component_update_bits(component, PM860X_DAC_OFFSET, mask, data); in pm860x_mute_stream()
913 snd_soc_component_update_bits(component, PM860X_EAR_CTRL_2, in pm860x_mute_stream()
922 struct snd_soc_component *component = dai->component; in pm860x_pcm_hw_params() local
937 snd_soc_component_update_bits(component, PM860X_PCM_IFACE_2, mask, inf); in pm860x_pcm_hw_params()
956 snd_soc_component_update_bits(component, PM860X_PCM_RATE, 0x0f, inf); in pm860x_pcm_hw_params()
964 struct snd_soc_component *component = codec_dai->component; in pm860x_pcm_set_dai_fmt() local
965 struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component); in pm860x_pcm_set_dai_fmt()
997 snd_soc_component_update_bits(component, PM860X_PCM_IFACE_2, mask, inf); in pm860x_pcm_set_dai_fmt()
1004 struct snd_soc_component *component = codec_dai->component; in pm860x_set_dai_sysclk() local
1005 struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component); in pm860x_set_dai_sysclk()
1019 struct snd_soc_component *component = dai->component; in pm860x_i2s_hw_params() local
1033 snd_soc_component_update_bits(component, PM860X_I2S_IFACE_2, PCM_INF2_18WL, inf); in pm860x_i2s_hw_params()
1061 snd_soc_component_update_bits(component, PM860X_I2S_IFACE_4, 0xf, inf); in pm860x_i2s_hw_params()
1069 struct snd_soc_component *component = codec_dai->component; in pm860x_i2s_set_dai_fmt() local
1070 struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component); in pm860x_i2s_set_dai_fmt()
1101 snd_soc_component_update_bits(component, PM860X_I2S_IFACE_2, mask, inf); in pm860x_i2s_set_dai_fmt()
1105 static int pm860x_set_bias_level(struct snd_soc_component *component, in pm860x_set_bias_level() argument
1108 struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component); in pm860x_set_bias_level()
1119 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in pm860x_set_bias_level()
1217 trace_snd_soc_jack_irq(dev_name(pm860x->component->dev)); in pm860x_component_handler()
1243 dev_dbg(pm860x->component->dev, "headphone report:0x%x, mask:%x\n", in pm860x_component_handler()
1245 dev_dbg(pm860x->component->dev, "microphone report:0x%x\n", mic_report); in pm860x_component_handler()
1249 int pm860x_hs_jack_detect(struct snd_soc_component *component, in pm860x_hs_jack_detect() argument
1253 struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component); in pm860x_hs_jack_detect()
1282 int pm860x_mic_jack_detect(struct snd_soc_component *component, in pm860x_mic_jack_detect() argument
1285 struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component); in pm860x_mic_jack_detect()
1300 static int pm860x_probe(struct snd_soc_component *component) in pm860x_probe() argument
1302 struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component); in pm860x_probe()
1305 pm860x->component = component; in pm860x_probe()
1306 snd_soc_component_init_regmap(component, pm860x->regmap); in pm860x_probe()
1313 dev_err(component->dev, "Failed to request IRQ!\n"); in pm860x_probe()
1326 static void pm860x_remove(struct snd_soc_component *component) in pm860x_remove() argument
1328 struct pm860x_priv *pm860x = snd_soc_component_get_drvdata(component); in pm860x_remove()