/Linux-v5.4/include/sound/ |
D | soc-component.h | 43 int (*probe)(struct snd_soc_component *component); 44 void (*remove)(struct snd_soc_component *component); 45 int (*suspend)(struct snd_soc_component *component); 46 int (*resume)(struct snd_soc_component *component); 48 unsigned int (*read)(struct snd_soc_component *component, 50 int (*write)(struct snd_soc_component *component, 58 int (*set_sysclk)(struct snd_soc_component *component, 60 int (*set_pll)(struct snd_soc_component *component, int pll_id, 62 int (*set_jack)(struct snd_soc_component *component, 66 int (*of_xlate_dai_name)(struct snd_soc_component *component, [all …]
|
D | soc-topology.h | 24 struct snd_soc_component; 114 int (*control_load)(struct snd_soc_component *, int index, 116 int (*control_unload)(struct snd_soc_component *, 120 int (*dapm_route_load)(struct snd_soc_component *, int index, 122 int (*dapm_route_unload)(struct snd_soc_component *, 126 int (*widget_load)(struct snd_soc_component *, int index, 129 int (*widget_ready)(struct snd_soc_component *, int index, 132 int (*widget_unload)(struct snd_soc_component *, 136 int (*dai_load)(struct snd_soc_component *, int index, 140 int (*dai_unload)(struct snd_soc_component *, [all …]
|
/Linux-v5.4/sound/soc/ |
D | soc-component.c | 21 int snd_soc_component_set_sysclk(struct snd_soc_component *component, in snd_soc_component_set_sysclk() 43 int snd_soc_component_set_pll(struct snd_soc_component *component, int pll_id, in snd_soc_component_set_pll() 55 void snd_soc_component_seq_notifier(struct snd_soc_component *component, in snd_soc_component_seq_notifier() 62 int snd_soc_component_stream_event(struct snd_soc_component *component, in snd_soc_component_stream_event() 71 int snd_soc_component_set_bias_level(struct snd_soc_component *component, in snd_soc_component_set_bias_level() 80 int snd_soc_component_enable_pin(struct snd_soc_component *component, in snd_soc_component_enable_pin() 102 int snd_soc_component_enable_pin_unlocked(struct snd_soc_component *component, in snd_soc_component_enable_pin_unlocked() 124 int snd_soc_component_disable_pin(struct snd_soc_component *component, in snd_soc_component_disable_pin() 146 int snd_soc_component_disable_pin_unlocked(struct snd_soc_component *component, in snd_soc_component_disable_pin_unlocked() 168 int snd_soc_component_nc_pin(struct snd_soc_component *component, in snd_soc_component_nc_pin() [all …]
|
D | soc-io.c | 23 int snd_soc_component_read(struct snd_soc_component *component, in snd_soc_component_read() 41 unsigned int snd_soc_component_read32(struct snd_soc_component *component, in snd_soc_component_read32() 63 int snd_soc_component_write(struct snd_soc_component *component, in snd_soc_component_write() 76 struct snd_soc_component *component, unsigned int reg, in snd_soc_component_update_bits_legacy() 109 int snd_soc_component_update_bits(struct snd_soc_component *component, in snd_soc_component_update_bits() 145 int snd_soc_component_update_bits_async(struct snd_soc_component *component, in snd_soc_component_update_bits_async() 171 void snd_soc_component_async_complete(struct snd_soc_component *component) in snd_soc_component_async_complete() 190 int snd_soc_component_test_bits(struct snd_soc_component *component, in snd_soc_component_test_bits()
|
D | soc-ac97.c | 42 struct snd_soc_component *component; 55 static inline struct snd_soc_component *gpio_to_component(struct gpio_chip *chip) in gpio_to_component() 73 struct snd_soc_component *component = gpio_to_component(chip); in snd_soc_ac97_gpio_direction_in() 82 struct snd_soc_component *component = gpio_to_component(chip); in snd_soc_ac97_gpio_get() 98 struct snd_soc_component *component = gpio_to_component(chip); in snd_soc_ac97_gpio_set() 110 struct snd_soc_component *component = gpio_to_component(chip); in snd_soc_ac97_gpio_direction_out() 130 struct snd_soc_component *component) in snd_soc_ac97_init_gpio() 157 struct snd_soc_component *component) in snd_soc_ac97_init_gpio() 177 struct snd_ac97 *snd_soc_alloc_ac97_component(struct snd_soc_component *component) in snd_soc_alloc_ac97_component() 216 struct snd_ac97 *snd_soc_new_ac97_component(struct snd_soc_component *component, in snd_soc_new_ac97_component()
|
/Linux-v5.4/sound/soc/codecs/ |
D | wm_hubs.h | 18 struct snd_soc_component; 33 bool (*check_class_w_digital)(struct snd_soc_component *); 49 struct snd_soc_component *component; 52 extern int wm_hubs_add_analogue_controls(struct snd_soc_component *); 53 extern int wm_hubs_add_analogue_routes(struct snd_soc_component *, int, int); 54 extern int wm_hubs_handle_analogue_pdata(struct snd_soc_component *, 62 extern void wm_hubs_vmid_ena(struct snd_soc_component *component); 63 extern void wm_hubs_set_bias_level(struct snd_soc_component *component, 65 extern void wm_hubs_update_class_w(struct snd_soc_component *component);
|
D | twl6040.h | 23 int twl6040_get_dl1_gain(struct snd_soc_component *component); 24 void twl6040_hs_jack_detect(struct snd_soc_component *component, 26 int twl6040_get_clk_id(struct snd_soc_component *component); 27 int twl6040_get_trim_value(struct snd_soc_component *component, enum twl6040_trim trim); 28 int twl6040_get_hs_step_size(struct snd_soc_component *component);
|
D | cros_ec_codec.c | 33 struct snd_soc_component *component; 39 static int ec_command_get_gain(struct snd_soc_component *component, in ec_command_get_gain() 69 static int ec_command_no_resp(struct snd_soc_component *component, in ec_command_no_resp() 89 static int set_i2s_config(struct snd_soc_component *component, in set_i2s_config() 105 struct snd_soc_component *component = dai->component; in cros_ec_i2s_set_dai_fmt() 150 static int set_i2s_sample_depth(struct snd_soc_component *component, in set_i2s_sample_depth() 163 static int set_i2s_bclk(struct snd_soc_component *component, uint32_t bclk) in set_i2s_bclk() 179 struct snd_soc_component *component = dai->component; in cros_ec_i2s_hw_params() 225 static int get_ec_mic_gain(struct snd_soc_component *component, in get_ec_mic_gain() 247 struct snd_soc_component *component = in mic_gain_get() [all …]
|
D | twl6040.c | 65 struct snd_soc_component *component; 97 static unsigned int twl6040_read(struct snd_soc_component *component, unsigned int reg) in twl6040_read() 122 static bool twl6040_can_write_to_chip(struct snd_soc_component *component, in twl6040_can_write_to_chip() 141 static inline void twl6040_update_dl12_cache(struct snd_soc_component *component, in twl6040_update_dl12_cache() 159 static int twl6040_write(struct snd_soc_component *component, in twl6040_write() 174 static void twl6040_init_chip(struct snd_soc_component *component) in twl6040_init_chip() 200 static int headset_power_mode(struct snd_soc_component *component, int high_perf) in headset_power_mode() 225 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in twl6040_hs_dac_event() 252 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in twl6040_ep_drv_event() 270 static void twl6040_hs_jack_report(struct snd_soc_component *component, in twl6040_hs_jack_report() [all …]
|
D | wcd-clsh-v2.c | 19 struct snd_soc_component *comp; 109 struct snd_soc_component *comp = ctrl->comp; in wcd_enable_clsh_block() 120 static inline bool wcd_clsh_enable_status(struct snd_soc_component *comp) in wcd_clsh_enable_status() 126 static inline void wcd_clsh_set_buck_mode(struct snd_soc_component *comp, in wcd_clsh_set_buck_mode() 140 static inline void wcd_clsh_set_flyback_mode(struct snd_soc_component *comp, in wcd_clsh_set_flyback_mode() 158 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_buck_ctrl() 177 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_flyback_ctrl() 197 struct snd_soc_component *comp = ctrl->comp; in wcd_clsh_set_gain_path() 222 static void wcd_clsh_set_hph_mode(struct snd_soc_component *comp, in wcd_clsh_set_hph_mode() 267 static void wcd_clsh_set_flyback_current(struct snd_soc_component *comp, in wcd_clsh_set_flyback_current() [all …]
|
D | da7219-aad.h | 188 struct snd_soc_component *component; 205 void da7219_aad_jack_det(struct snd_soc_component *component, struct snd_soc_jack *jack); 208 void da7219_aad_suspend(struct snd_soc_component *component); 209 void da7219_aad_resume(struct snd_soc_component *component); 212 int da7219_aad_init(struct snd_soc_component *component); 213 void da7219_aad_exit(struct snd_soc_component *component);
|
D | tlv320dac33.c | 52 struct snd_soc_component *component); 54 struct snd_soc_component *component); 80 struct snd_soc_component *component; 160 static inline unsigned int dac33_read_reg_cache(struct snd_soc_component *component, in dac33_read_reg_cache() 171 static inline void dac33_write_reg_cache(struct snd_soc_component *component, in dac33_write_reg_cache() 182 static int dac33_read(struct snd_soc_component *component, unsigned int reg, in dac33_read() 208 static int dac33_write(struct snd_soc_component *component, unsigned int reg, in dac33_write() 235 static int dac33_write_locked(struct snd_soc_component *component, unsigned int reg, in dac33_write_locked() 249 static int dac33_write16(struct snd_soc_component *component, unsigned int reg, in dac33_write16() 282 static void dac33_init_chip(struct snd_soc_component *component) in dac33_init_chip() [all …]
|
D | ak5386.c | 38 static int ak5386_soc_probe(struct snd_soc_component *component) in ak5386_soc_probe() 44 static void ak5386_soc_remove(struct snd_soc_component *component) in ak5386_soc_remove() 51 static int ak5386_soc_suspend(struct snd_soc_component *component) in ak5386_soc_suspend() 58 static int ak5386_soc_resume(struct snd_soc_component *component) in ak5386_soc_resume() 86 struct snd_soc_component *component = codec_dai->component; in ak5386_set_dai_fmt() 102 struct snd_soc_component *component = dai->component; in ak5386_hw_params() 124 struct snd_soc_component *component = dai->component; in ak5386_hw_free()
|
D | adav80x.c | 214 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in adav80x_dapm_sysclk_check() 238 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in adav80x_dapm_pll_check() 283 static int adav80x_set_deemph(struct snd_soc_component *component) in adav80x_set_deemph() 317 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in adav80x_put_deemph() 332 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in adav80x_get_deemph() 367 struct snd_soc_component *component = dai->component; in adav80x_set_dai_fmt() 417 static int adav80x_set_adc_clock(struct snd_soc_component *component, in adav80x_set_adc_clock() 434 static int adav80x_set_dac_clock(struct snd_soc_component *component, in adav80x_set_dac_clock() 452 static int adav80x_set_capture_pcm_format(struct snd_soc_component *component, in adav80x_set_capture_pcm_format() 481 static int adav80x_set_playback_pcm_format(struct snd_soc_component *component, in adav80x_set_playback_pcm_format() [all …]
|
D | twl4030.c | 75 static unsigned int twl4030_read(struct snd_soc_component *component, unsigned int reg) in twl4030_read() 140 static int twl4030_write(struct snd_soc_component *component, unsigned int reg, in twl4030_write() 175 static void twl4030_codec_enable(struct snd_soc_component *component, int enable) in twl4030_codec_enable() 216 static struct twl4030_codec_data *twl4030_get_pdata(struct snd_soc_component *component) in twl4030_get_pdata() 239 static void twl4030_init_chip(struct snd_soc_component *component) in twl4030_init_chip() 331 static void twl4030_apll_enable(struct snd_soc_component *component, int enable) in twl4030_apll_enable() 556 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); \ 578 static void handsfree_ramp(struct snd_soc_component *component, int reg, int ramp) in handsfree_ramp() 611 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in handsfreelpga_event() 627 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in handsfreerpga_event() [all …]
|
D | wm8958-dsp2.c | 39 static int wm8958_dsp2_fw(struct snd_soc_component *component, const char *name, in wm8958_dsp2_fw() 192 static void wm8958_dsp_start_mbc(struct snd_soc_component *component, int path) in wm8958_dsp_start_mbc() 236 static void wm8958_dsp_start_vss(struct snd_soc_component *component, int path) in wm8958_dsp_start_vss() 297 static void wm8958_dsp_start_enh_eq(struct snd_soc_component *component, int path) in wm8958_dsp_start_enh_eq() 328 static void wm8958_dsp_apply(struct snd_soc_component *component, int path, int start) in wm8958_dsp_apply() 418 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm8958_aif_ev() 456 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8958_put_mbc_enum() 478 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8958_get_mbc_enum() 500 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8958_mbc_get() 512 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8958_mbc_put() [all …]
|
D | uda1380.c | 34 struct snd_soc_component *component; 61 static inline unsigned int uda1380_read_reg_cache(struct snd_soc_component *component, in uda1380_read_reg_cache() 77 static inline void uda1380_write_reg_cache(struct snd_soc_component *component, in uda1380_write_reg_cache() 93 static int uda1380_write(struct snd_soc_component *component, unsigned int reg, in uda1380_write() 133 static void uda1380_sync_cache(struct snd_soc_component *component) in uda1380_sync_cache() 151 static int uda1380_reset(struct snd_soc_component *component) in uda1380_reset() 179 struct snd_soc_component *uda1380_component = uda1380->component; in uda1380_flush_work() 420 struct snd_soc_component *component = codec_dai->component; in uda1380_set_dai_fmt_both() 450 struct snd_soc_component *component = codec_dai->component; in uda1380_set_dai_fmt_playback() 480 struct snd_soc_component *component = codec_dai->component; in uda1380_set_dai_fmt_capture() [all …]
|
D | wm8753.c | 53 static int wm8753_hifi_write_dai_fmt(struct snd_soc_component *component, 55 static int wm8753_voice_write_dai_fmt(struct snd_soc_component *component, 227 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8753_get_dai() 237 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8753_set_dai() 743 struct snd_soc_component *component = codec_dai->component; in wm8753_set_dai_pll() 864 struct snd_soc_component *component = codec_dai->component; in wm8753_set_dai_sysclk() 888 static int wm8753_vdac_adc_set_dai_fmt(struct snd_soc_component *component, in wm8753_vdac_adc_set_dai_fmt() 924 struct snd_soc_component *component = dai->component; in wm8753_pcm_hw_params() 956 static int wm8753_pcm_set_dai_fmt(struct snd_soc_component *component, in wm8753_pcm_set_dai_fmt() 1024 struct snd_soc_component *component = codec_dai->component; in wm8753_set_dai_clkdiv() [all …]
|
D | mt6351.c | 200 static void set_hp_gain_zero(struct snd_soc_component *cmpnt) in set_hp_gain_zero() 208 static unsigned int get_cap_reg_val(struct snd_soc_component *cmpnt, in get_cap_reg_val() 231 static unsigned int get_play_reg_val(struct snd_soc_component *cmpnt, in get_play_reg_val() 266 struct snd_soc_component *cmpnt = dai->component; in mt6351_codec_dai_hw_params() 325 static void hp_gain_ramp_set(struct snd_soc_component *cmpnt, int hp_gain_ctl) in hp_gain_ramp_set() 362 static void hp_zcd_enable(struct snd_soc_component *cmpnt) in hp_zcd_enable() 377 static void hp_zcd_disable(struct snd_soc_component *cmpnt) in hp_zcd_disable() 582 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mt_reg_set_clr_event() 626 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mt_ncp_event() 650 struct snd_soc_component *cmpnt = snd_soc_dapm_to_component(w->dapm); in mt_sgen_event() [all …]
|
D | rt5631.c | 70 static void rt5631_write_index(struct snd_soc_component *component, in rt5631_write_index() 80 static unsigned int rt5631_read_index(struct snd_soc_component *component, in rt5631_read_index() 91 static int rt5631_reset(struct snd_soc_component *component) in rt5631_reset() 186 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in rt5631_dmic_get() 197 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in rt5631_dmic_put() 285 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in check_sysclk1_source() 295 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in check_dmic_used() 303 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in check_dacl_to_outmixl() 313 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in check_dacr_to_outmixr() 323 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in check_dacl_to_spkmixl() [all …]
|
D | arizona.h | 273 int arizona_set_sysclk(struct snd_soc_component *component, int clk_id, int source, 297 int arizona_dvfs_up(struct snd_soc_component *component, unsigned int flags); 298 int arizona_dvfs_down(struct snd_soc_component *component, unsigned int flags); 310 int arizona_init_spk(struct snd_soc_component *component); 311 int arizona_init_gpio(struct snd_soc_component *component); 312 int arizona_init_mono(struct snd_soc_component *component); 322 int arizona_set_output_mode(struct snd_soc_component *component, int output, 325 bool arizona_input_analog(struct snd_soc_component *component, int shift); 329 static inline int arizona_register_notifier(struct snd_soc_component *component, in arizona_register_notifier() 343 static inline int arizona_unregister_notifier(struct snd_soc_component *component, in arizona_unregister_notifier()
|
D | max98095.c | 251 static void m98095_eq_band(struct snd_soc_component *component, unsigned int dai, in m98095_eq_band() 277 static void m98095_biquad_band(struct snd_soc_component *component, unsigned int dai, in m98095_biquad_band() 353 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98095_mic1pre_set() 367 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98095_mic1pre_get() 377 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98095_mic2pre_set() 391 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98095_mic2pre_get() 598 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98095_mic_event() 628 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98095_line_pga() 676 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98095_lineout_event() 942 struct snd_soc_component *component = dai->component; in max98095_dai1_hw_params() [all …]
|
D | tlv320aic23.c | 80 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in snd_soc_tlv320aic23_put_volsw() 103 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in snd_soc_tlv320aic23_get_volsw() 294 static void get_current_sample_rates(struct snd_soc_component *component, int mclk, in get_current_sample_rates() 311 static int set_sample_rate_control(struct snd_soc_component *component, int mclk, in set_sample_rate_control() 337 struct snd_soc_component *component = dai->component; in tlv320aic23_hw_params() 382 struct snd_soc_component *component = dai->component; in tlv320aic23_pcm_prepare() 393 struct snd_soc_component *component = dai->component; in tlv320aic23_shutdown() 409 struct snd_soc_component *component = dai->component; in tlv320aic23_mute() 427 struct snd_soc_component *component = codec_dai->component; in tlv320aic23_set_dai_fmt() 479 static int tlv320aic23_set_bias_level(struct snd_soc_component *component, in tlv320aic23_set_bias_level() [all …]
|
D | da7219-aad.c | 31 void da7219_aad_jack_det(struct snd_soc_component *component, struct snd_soc_jack *jack) in da7219_aad_jack_det() 56 struct snd_soc_component *component = da7219_aad->component; in da7219_aad_btn_det_work() 112 struct snd_soc_component *component = da7219_aad->component; in da7219_aad_hptest_work() 345 struct snd_soc_component *component = da7219_aad->component; in da7219_aad_irq_thread() 463 da7219_aad_fw_micbias_pulse_lvl(struct snd_soc_component *component, u32 val) in da7219_aad_fw_micbias_pulse_lvl() 477 da7219_aad_fw_btn_cfg(struct snd_soc_component *component, u32 val) in da7219_aad_fw_btn_cfg() 501 da7219_aad_fw_mic_det_thr(struct snd_soc_component *component, u32 val) in da7219_aad_fw_mic_det_thr() 519 da7219_aad_fw_jack_ins_deb(struct snd_soc_component *component, u32 val) in da7219_aad_fw_jack_ins_deb() 545 da7219_aad_fw_jack_det_rate(struct snd_soc_component *component, const char *str) in da7219_aad_fw_jack_det_rate() 562 da7219_aad_fw_jack_rem_deb(struct snd_soc_component *component, u32 val) in da7219_aad_fw_jack_rem_deb() [all …]
|
D | ak4642.c | 177 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in ak4642_lout_event() 281 struct snd_soc_component *component = dai->component; in ak4642_dai_startup() 324 struct snd_soc_component *component = dai->component; in ak4642_dai_shutdown() 338 struct snd_soc_component *component = codec_dai->component; in ak4642_dai_set_sysclk() 388 struct snd_soc_component *component = dai->component; in ak4642_dai_set_fmt() 429 static int ak4642_set_mcko(struct snd_soc_component *component, in ak4642_set_mcko() 471 struct snd_soc_component *component = dai->component; in ak4642_dai_hw_params() 481 static int ak4642_set_bias_level(struct snd_soc_component *component, in ak4642_set_bias_level() 522 static int ak4642_suspend(struct snd_soc_component *component) in ak4642_suspend() 531 static int ak4642_resume(struct snd_soc_component *component) in ak4642_resume() [all …]
|