| /linux/sound/soc/ |
| H A D | soc-component.c | 3 // soc-component.c 17 static inline int _soc_component_ret(struct snd_soc_component *component, const char *func, int ret) in _soc_component_ret() argument 19 return snd_soc_ret(component->dev, ret, in _soc_component_ret() 20 "at %s() on %s\n", func, component->name); in _soc_component_ret() 24 static inline int _soc_component_ret_reg_rw(struct snd_soc_component *component, in _soc_component_ret_reg_rw() argument 27 return snd_soc_ret(component->dev, ret, in _soc_component_ret_reg_rw() 29 func, component->name, reg); in _soc_component_ret_reg_rw() 32 static inline int soc_component_field_shift(struct snd_soc_component *component, in soc_component_field_shift() argument 36 dev_err(component->dev, "ASoC: error field mask is zero for %s\n", in soc_component_field_shift() 37 component in soc_component_field_shift() 48 soc_component_mark_push(component,substream,tgt) global() argument 49 soc_component_mark_pop(component,tgt) global() argument 50 soc_component_mark_match(component,substream,tgt) global() argument 52 snd_soc_component_set_aux(struct snd_soc_component * component,struct snd_soc_aux_dev * aux) snd_soc_component_set_aux() argument 58 snd_soc_component_init(struct snd_soc_component * component) snd_soc_component_init() argument 78 snd_soc_component_set_sysclk(struct snd_soc_component * component,int clk_id,int source,unsigned int freq,int dir) snd_soc_component_set_sysclk() argument 102 snd_soc_component_set_pll(struct snd_soc_component * component,int pll_id,int source,unsigned int freq_in,unsigned int freq_out) snd_soc_component_set_pll() argument 116 snd_soc_component_seq_notifier(struct snd_soc_component * component,enum snd_soc_dapm_type type,int subseq) snd_soc_component_seq_notifier() argument 123 snd_soc_component_stream_event(struct snd_soc_component * component,int event) snd_soc_component_stream_event() argument 134 snd_soc_component_set_bias_level(struct snd_soc_component * component,enum snd_soc_bias_level level) snd_soc_component_set_bias_level() argument 145 snd_soc_component_enable_pin(struct snd_soc_component * component,const char * pin) snd_soc_component_enable_pin() argument 154 snd_soc_component_enable_pin_unlocked(struct snd_soc_component * component,const char * pin) snd_soc_component_enable_pin_unlocked() argument 163 snd_soc_component_disable_pin(struct snd_soc_component * component,const char * pin) snd_soc_component_disable_pin() argument 172 snd_soc_component_disable_pin_unlocked(struct snd_soc_component * component,const char * pin) snd_soc_component_disable_pin_unlocked() argument 181 snd_soc_component_nc_pin(struct snd_soc_component * component,const char * pin) snd_soc_component_nc_pin() argument 190 snd_soc_component_nc_pin_unlocked(struct snd_soc_component * component,const char * pin) snd_soc_component_nc_pin_unlocked() argument 199 snd_soc_component_get_pin_status(struct snd_soc_component * component,const char * pin) snd_soc_component_get_pin_status() argument 208 snd_soc_component_force_enable_pin(struct snd_soc_component * component,const char * pin) snd_soc_component_force_enable_pin() argument 218 snd_soc_component_force_enable_pin_unlocked(struct snd_soc_component * component,const char * pin) snd_soc_component_force_enable_pin_unlocked() argument 227 soc_get_kcontrol_name(struct snd_soc_component * component,char * buf,int size,const char * const ctl) soc_get_kcontrol_name() argument 237 snd_soc_component_get_kcontrol(struct snd_soc_component * component,const char * const ctl) snd_soc_component_get_kcontrol() argument 248 snd_soc_component_notify_control(struct snd_soc_component * component,const char * const ctl) snd_soc_component_notify_control() argument 272 snd_soc_component_set_jack(struct snd_soc_component * component,struct snd_soc_jack * jack,void * data) snd_soc_component_set_jack() argument 293 snd_soc_component_get_jack_type(struct snd_soc_component * component) snd_soc_component_get_jack_type() argument 304 snd_soc_component_module_get(struct snd_soc_component * component,void * mark,int upon_open) snd_soc_component_module_get() argument 320 snd_soc_component_module_put(struct snd_soc_component * component,void * mark,int upon_open,int rollback) snd_soc_component_module_put() argument 333 snd_soc_component_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) snd_soc_component_open() argument 348 snd_soc_component_close(struct snd_soc_component * component,struct snd_pcm_substream * substream,int rollback) snd_soc_component_close() argument 366 snd_soc_component_suspend(struct snd_soc_component * component) snd_soc_component_suspend() argument 373 snd_soc_component_resume(struct snd_soc_component * component) snd_soc_component_resume() argument 380 snd_soc_component_is_suspended(struct snd_soc_component * component) snd_soc_component_is_suspended() argument 385 snd_soc_component_probe(struct snd_soc_component * component) snd_soc_component_probe() argument 395 snd_soc_component_remove(struct snd_soc_component * component) snd_soc_component_remove() argument 401 snd_soc_component_of_xlate_dai_id(struct snd_soc_component * component,struct device_node * ep) snd_soc_component_of_xlate_dai_id() argument 412 snd_soc_component_of_xlate_dai_name(struct snd_soc_component * component,const struct of_phandle_args * args,const char ** dai_name) snd_soc_component_of_xlate_dai_name() argument 427 snd_soc_component_setup_regmap(struct snd_soc_component * component) snd_soc_component_setup_regmap() argument 449 snd_soc_component_init_regmap(struct snd_soc_component * component,struct regmap * regmap) snd_soc_component_init_regmap() argument 468 snd_soc_component_exit_regmap(struct snd_soc_component * component) snd_soc_component_exit_regmap() argument 477 snd_soc_component_compr_open(struct snd_soc_component * component,struct snd_compr_stream * cstream) snd_soc_component_compr_open() argument 494 snd_soc_component_compr_free(struct snd_soc_component * component,struct snd_compr_stream * cstream,int rollback) snd_soc_component_compr_free() argument 513 struct snd_soc_component *component; snd_soc_component_compr_trigger() local 534 struct snd_soc_component *component; snd_soc_component_compr_set_params() local 555 struct snd_soc_component *component; snd_soc_component_compr_get_params() local 575 struct snd_soc_component *component; snd_soc_component_compr_get_caps() local 599 struct snd_soc_component *component; snd_soc_component_compr_get_codec_caps() local 622 struct snd_soc_component *component; snd_soc_component_compr_ack() local 643 struct snd_soc_component *component; snd_soc_component_compr_pointer() local 663 struct snd_soc_component *component; snd_soc_component_compr_copy() local 687 struct snd_soc_component *component; snd_soc_component_compr_set_metadata() local 708 struct snd_soc_component *component; snd_soc_component_compr_get_metadata() local 725 soc_component_read_no_lock(struct snd_soc_component * component,unsigned int reg) soc_component_read_no_lock() argument 753 snd_soc_component_read(struct snd_soc_component * component,unsigned int reg) snd_soc_component_read() argument 767 soc_component_write_no_lock(struct snd_soc_component * component,unsigned int reg,unsigned int val) soc_component_write_no_lock() argument 788 snd_soc_component_write(struct snd_soc_component * component,unsigned int reg,unsigned int val) snd_soc_component_write() argument 802 snd_soc_component_update_bits_legacy(struct snd_soc_component * component,unsigned int reg,unsigned int mask,unsigned int val,bool * change) snd_soc_component_update_bits_legacy() argument 833 snd_soc_component_update_bits(struct snd_soc_component * component,unsigned int reg,unsigned int mask,unsigned int val) snd_soc_component_update_bits() argument 869 snd_soc_component_update_bits_async(struct snd_soc_component * component,unsigned int reg,unsigned int mask,unsigned int val) snd_soc_component_update_bits_async() argument 896 snd_soc_component_read_field(struct snd_soc_component * component,unsigned int reg,unsigned int mask) snd_soc_component_read_field() argument 918 snd_soc_component_write_field(struct snd_soc_component * component,unsigned int reg,unsigned int mask,unsigned int val) snd_soc_component_write_field() argument 936 snd_soc_component_async_complete(struct snd_soc_component * component) snd_soc_component_async_complete() argument 955 snd_soc_component_test_bits(struct snd_soc_component * component,unsigned int reg,unsigned int mask,unsigned int value) snd_soc_component_test_bits() argument 969 struct snd_soc_component *component; snd_soc_pcm_component_pointer() local 981 snd_soc_component_is_codec_on_rtd(struct snd_soc_pcm_runtime * rtd,struct snd_soc_component * component) snd_soc_component_is_codec_on_rtd() argument 999 struct snd_soc_component *component; snd_soc_pcm_component_delay() local 1026 struct snd_soc_component *component; snd_soc_pcm_component_ioctl() local 1043 struct snd_soc_component *component; snd_soc_pcm_component_sync_stop() local 1063 struct snd_soc_component *component; snd_soc_pcm_component_copy() local 1080 struct snd_soc_component *component; snd_soc_pcm_component_page() local 1101 struct snd_soc_component *component; snd_soc_pcm_component_mmap() local 1117 struct snd_soc_component *component; snd_soc_pcm_component_new() local 1134 struct snd_soc_component *component; snd_soc_pcm_component_free() local 1148 struct snd_soc_component *component; snd_soc_pcm_component_prepare() local 1166 struct snd_soc_component *component; snd_soc_pcm_component_hw_params() local 1187 struct snd_soc_component *component; snd_soc_pcm_component_hw_free() local 1205 soc_component_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) soc_component_trigger() argument 1221 struct snd_soc_component *component; snd_soc_pcm_component_trigger() local 1255 struct snd_soc_component *component; snd_soc_pcm_component_pm_runtime_get() local 1274 struct snd_soc_component *component; snd_soc_pcm_component_pm_runtime_put() local 1291 struct snd_soc_component *component; snd_soc_pcm_component_ack() local [all...] |
| H A D | soc-core.c | 52 #define for_each_component(component) \ argument 53 list_for_each_entry(component, &component_list, list) 134 static void soc_init_component_debugfs(struct snd_soc_component *component) in soc_init_component_debugfs() argument 136 if (!component->card->debugfs_card_root) in soc_init_component_debugfs() 139 if (component->debugfs_prefix) { in soc_init_component_debugfs() 143 component->debugfs_prefix, component->name); in soc_init_component_debugfs() 145 component->debugfs_root = debugfs_create_dir(name, in soc_init_component_debugfs() 146 component->card->debugfs_card_root); in soc_init_component_debugfs() 150 component->debugfs_root = debugfs_create_dir(component->name, in soc_init_component_debugfs() 151 component->card->debugfs_card_root); in soc_init_component_debugfs() [all …]
|
| /linux/Documentation/gpu/ |
| H A D | afbc.rst | 21 AFBC streams can contain several components - where a component 29 maximum compression efficiency), the component order must be: 31 * Component 0: R 32 * Component 1: G 33 * Component 2: B 35 The component ordering is communicated via the fourcc code in the 36 fourcc:modifier pair. In general, component '0' is considered to 42 * Component 0: R(8) 43 * Component 1: G(8) 44 * Component 2: B(8) [all …]
|
| /linux/include/sound/ |
| H A D | soc-component.h | 3 * soc-component.h 14 * Component probe and remove ordering levels for components with runtime 28 /* component interface */ 30 int (*open)(struct snd_soc_component *component, 32 int (*free)(struct snd_soc_component *component, 34 int (*set_params)(struct snd_soc_component *component, 37 int (*get_params)(struct snd_soc_component *component, 40 int (*set_metadata)(struct snd_soc_component *component, 43 int (*get_metadata)(struct snd_soc_component *component, 46 int (*trigger)(struct snd_soc_component *component, 258 for_each_component_dais(component,dai) global() argument 260 for_each_component_dais_safe(component,dai,_dai) global() argument 284 snd_soc_component_get_dapm(struct snd_soc_component * component) snd_soc_component_get_dapm() argument 297 snd_soc_component_init_bias_level(struct snd_soc_component * component,enum snd_soc_bias_level level) snd_soc_component_init_bias_level() argument 311 snd_soc_component_get_bias_level(struct snd_soc_component * component) snd_soc_component_get_bias_level() argument 326 snd_soc_component_force_bias_level(struct snd_soc_component * component,enum snd_soc_bias_level level) snd_soc_component_force_bias_level() argument 355 snd_soc_component_cache_sync(struct snd_soc_component * component) snd_soc_component_cache_sync() argument 412 snd_soc_component_module_get_when_probe(component) global() argument 414 snd_soc_component_module_get_when_open(component,substream) global() argument 418 snd_soc_component_module_put_when_remove(component) global() argument 420 snd_soc_component_module_put_when_close(component,substream,rollback) global() argument 437 snd_soc_component_active(struct snd_soc_component * component) snd_soc_component_active() argument [all...] |
| /linux/drivers/base/ |
| H A D | component.c | 5 #include <linux/component.h> 16 * The component helper allows drivers to collect a pile of sub-devices, 19 * of_clk_get_by_name(). The component helper can be used when such a 20 * subsystem-specific way to find a device is not available: The component 27 * The component helper also doesn't solve runtime dependencies, e.g. for system 33 * Aggregate drivers first assemble a component match list of what they need 39 struct component; 46 struct component *component; member 65 struct component { struct 98 struct component *component = match->compare[i].component; in component_devices_show() local [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | wm8958-dsp2.c | 41 static int wm8958_dsp2_fw(struct snd_soc_component *component, const char *name, in wm8958_dsp2_fw() argument 44 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_dsp2_fw() 57 dev_err(component->dev, "%s: firmware too short (%zd bytes)\n", in wm8958_dsp2_fw() 64 dev_err(component->dev, "%s: firmware has bad file magic %08x\n", in wm8958_dsp2_fw() 73 dev_err(component->dev, "%s: unsupported firmware version %d\n", in wm8958_dsp2_fw() 78 dev_err(component->dev, "%s: unsupported target device %d\n", in wm8958_dsp2_fw() 83 dev_err(component->dev, "%s: unsupported target core %d\n", in wm8958_dsp2_fw() 90 dev_info(component->dev, "%s timestamp %llx\n", name, data64); in wm8958_dsp2_fw() 92 snd_soc_component_write(component, 0x102, 0x2); in wm8958_dsp2_fw() 93 snd_soc_component_write(component, 0x900, 0x2); in wm8958_dsp2_fw() [all …]
|
| H A D | wcd939x.c | 16 #include <linux/component.h> 180 struct snd_soc_component *component; 332 static int wcd939x_set_swr_clk_rate(struct snd_soc_component *component, int rate, int bank) in wcd939x_get_clk_rate() 356 snd_soc_component_write_field(component, WCD939X_DIGITAL_SWR_TX_CLK_RATE, mask, val); in wcd939x_set_swr_clk_rate() 361 static int wcd939x_io_init(struct snd_soc_component *component) in wcd939x_set_swr_clk_rate() 363 snd_soc_component_write_field(component, WCD939X_ANA_BIAS, in wcd939x_io_init() argument 365 snd_soc_component_write_field(component, WCD939X_ANA_BIAS, in wcd939x_io_init() 370 snd_soc_component_write_field(component, WCD939X_ANA_BIAS, in wcd939x_io_init() 373 snd_soc_component_write_field(component, WCD939X_HPH_NEW_INT_RDAC_HD2_CTL_L, in wcd939x_io_init() 375 snd_soc_component_write_field(component, WCD939X_HPH_NEW_INT_RDAC_HD2_CTL_ in wcd939x_io_init() 179 struct snd_soc_component *component; global() member 334 wcd939x_set_swr_clk_rate(struct snd_soc_component * component,int rate,int bank) wcd939x_set_swr_clk_rate() argument 448 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_codec_enable_rxclk() local 508 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_codec_hphl_dac_event() local 562 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_codec_hphr_dac_event() local 618 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_codec_ear_dac_event() local 650 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_codec_enable_hphr_pa() local 770 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_codec_enable_hphl_pa() local 887 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_codec_enable_ear_pa() local 931 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_codec_enable_dmic() local 1015 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_tx_swr_ctrl() local 1092 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_codec_enable_adc() local 1118 wcd939x_tx_channel_config(struct snd_soc_component * component,int channel,bool init) wcd939x_tx_channel_config() argument 1150 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_adc_enable_req() local 1266 wcd939x_micbias_control(struct snd_soc_component * component,int micb_num,int req,bool is_dapm) wcd939x_micbias_control() argument 1391 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_codec_enable_micbias() local 1414 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd939x_codec_enable_micbias_pullup() local 1438 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd939x_tx_mode_get() local 1451 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd939x_tx_mode_put() local 1469 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd939x_rx_hph_mode_get() local 1480 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd939x_rx_hph_mode_put() local 1525 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd939x_get_compander() local 1540 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd939x_set_compander() local 1562 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd939x_ldoh_get() local 1573 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd939x_ldoh_put() local 1835 wcd939x_mbhc_clk_setup(struct snd_soc_component * component,bool enable) wcd939x_mbhc_clk_setup() argument 1842 wcd939x_mbhc_mbhc_bias_control(struct snd_soc_component * component,bool enable) wcd939x_mbhc_mbhc_bias_control() argument 1849 wcd939x_mbhc_program_btn_thr(struct snd_soc_component * component,int * btn_low,int * btn_high,int num_btn,bool is_micbias) wcd939x_mbhc_program_btn_thr() argument 1870 wcd939x_mbhc_micb_en_status(struct snd_soc_component * component,int micb_num) wcd939x_mbhc_micb_en_status() argument 1884 wcd939x_mbhc_hph_l_pull_up_control(struct snd_soc_component * component,int pull_up_cur) wcd939x_mbhc_hph_l_pull_up_control() argument 1900 wcd939x_mbhc_request_micbias(struct snd_soc_component * component,int micb_num,int req) wcd939x_mbhc_request_micbias() argument 1906 wcd939x_mbhc_micb_ramp_control(struct snd_soc_component * component,bool enable) wcd939x_mbhc_micb_ramp_control() argument 1933 wcd939x_mbhc_micb_adjust_voltage(struct snd_soc_component * component,int req_volt,int micb_num) wcd939x_mbhc_micb_adjust_voltage() argument 2011 wcd939x_mbhc_micb_ctrl_threshold_mic(struct snd_soc_component * component,int micb_num,bool req_en) wcd939x_mbhc_micb_ctrl_threshold_mic() argument 2051 wcd939x_mbhc_get_result_params(struct snd_soc_component * component,int32_t * zdet) wcd939x_mbhc_get_result_params() argument 2110 wcd939x_mbhc_zdet_ramp(struct snd_soc_component * component,s32 * zl,int32_t * zr) wcd939x_mbhc_zdet_ramp() argument 2161 wcd939x_wcd_mbhc_qfuse_cal(struct snd_soc_component * component,s32 * z_val,int flag_l_r) wcd939x_wcd_mbhc_qfuse_cal() argument 2177 wcd939x_wcd_mbhc_calc_impedance(struct snd_soc_component * component,u32 * zl,uint32_t * zr) wcd939x_wcd_mbhc_calc_impedance() argument 2318 wcd939x_mbhc_gnd_det_ctrl(struct snd_soc_component * component,bool enable) wcd939x_mbhc_gnd_det_ctrl() argument 2336 wcd939x_mbhc_hph_pull_down_ctrl(struct snd_soc_component * component,bool enable) wcd939x_mbhc_hph_pull_down_ctrl() argument 2345 wcd939x_mbhc_moisture_config(struct snd_soc_component * component) wcd939x_mbhc_moisture_config() argument 2368 wcd939x_mbhc_moisture_detect_en(struct snd_soc_component * component,bool enable) wcd939x_mbhc_moisture_detect_en() argument 2381 wcd939x_mbhc_get_moisture_status(struct snd_soc_component * component) wcd939x_mbhc_get_moisture_status() argument 2418 wcd939x_mbhc_moisture_polling_ctrl(struct snd_soc_component * component,bool enable) wcd939x_mbhc_moisture_polling_ctrl() argument 2448 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd939x_get_hph_type() local 2460 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd939x_hph_impedance_get() local 2484 wcd939x_mbhc_init(struct snd_soc_component * component) wcd939x_mbhc_init() argument 2516 wcd939x_mbhc_deinit(struct snd_soc_component * component) wcd939x_mbhc_deinit() argument 2993 wcd939x_soc_codec_probe(struct snd_soc_component * component) wcd939x_soc_codec_probe() argument 3115 wcd939x_soc_codec_remove(struct snd_soc_component * component) wcd939x_soc_codec_remove() argument 3221 wcd939x_swap_gnd_mic(struct snd_soc_component * component) wcd939x_swap_gnd_mic() argument [all...] |
| H A D | wcd937x.c | 4 #include <linux/component.h> 298 static int wcd937x_rx_clk_enable(struct snd_soc_component *component) 300 struct wcd937x_priv *wcd937x = snd_soc_component_get_drvdata(component); in wcd937x_rx_clk_enable() 305 snd_soc_component_update_bits(component, WCD937X_DIGITAL_CDC_DIG_CLK_CTL, BIT(3), BIT(3)); in wcd937x_rx_clk_enable() 306 snd_soc_component_update_bits(component, WCD937X_DIGITAL_CDC_ANA_CLK_CTL, BIT(0), BIT(0)); in wcd937x_rx_clk_enable() 307 snd_soc_component_update_bits(component, WCD937X_ANA_RX_SUPPLIES, BIT(0), BIT(0)); in wcd937x_rx_clk_enable() 308 snd_soc_component_update_bits(component, WCD937X_DIGITAL_CDC_RX0_CTL, BIT(6), 0x00); in wcd937x_rx_clk_enable() 309 snd_soc_component_update_bits(component, WCD937X_DIGITAL_CDC_RX1_CTL, BIT(6), 0x00); in wcd937x_rx_clk_enable() 310 snd_soc_component_update_bits(component, WCD937X_DIGITAL_CDC_RX2_CTL, BIT(6), 0x00); in wcd937x_rx_clk_enable() 311 snd_soc_component_update_bits(component, WCD937X_DIGITAL_CDC_ANA_CLK_CT in wcd937x_rx_clk_enable() 299 wcd937x_rx_clk_enable(struct snd_soc_component * component) wcd937x_rx_clk_enable() argument 319 wcd937x_rx_clk_disable(struct snd_soc_component * component) wcd937x_rx_clk_disable() argument 341 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_codec_hphl_dac_event() local 416 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_codec_hphr_dac_event() local 485 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_codec_ear_dac_event() local 540 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_codec_aux_dac_event() local 576 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_codec_enable_hphr_pa() local 645 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_codec_enable_hphl_pa() local 713 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_codec_enable_aux_pa() local 759 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_codec_enable_ear_pa() local 831 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_enable_rx1() local 846 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_enable_rx2() local 862 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_enable_rx3() local 888 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_tx_swr_ctrl() local 903 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_codec_enable_adc() local 931 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_enable_req() local 986 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd937x_codec_enable_dmic() local 1024 wcd937x_micbias_control(struct snd_soc_component * component,int micb_num,int req,bool is_dapm) wcd937x_micbias_control() argument 1138 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); __wcd937x_codec_enable_micbias() local 1168 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); __wcd937x_codec_enable_micbias_pullup() local 1221 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd937x_rx_hph_mode_get() local 1231 struct snd_soc_component *component = wcd937x_rx_hph_mode_put() local 1264 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd937x_get_compander() local 1280 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd937x_set_compander() local 1370 wcd937x_mbhc_clk_setup(struct snd_soc_component * component,bool enable) wcd937x_mbhc_clk_setup() argument 1377 wcd937x_mbhc_mbhc_bias_control(struct snd_soc_component * component,bool enable) wcd937x_mbhc_mbhc_bias_control() argument 1384 wcd937x_mbhc_program_btn_thr(struct snd_soc_component * component,int * btn_low,int * btn_high,int num_btn,bool is_micbias) wcd937x_mbhc_program_btn_thr() argument 1403 wcd937x_mbhc_micb_en_status(struct snd_soc_component * component,int micb_num) wcd937x_mbhc_micb_en_status() argument 1417 wcd937x_mbhc_hph_l_pull_up_control(struct snd_soc_component * component,int pull_up_cur) wcd937x_mbhc_hph_l_pull_up_control() argument 1429 wcd937x_mbhc_request_micbias(struct snd_soc_component * component,int micb_num,int req) wcd937x_mbhc_request_micbias() argument 1435 wcd937x_mbhc_micb_ramp_control(struct snd_soc_component * component,bool enable) wcd937x_mbhc_micb_ramp_control() argument 1451 wcd937x_mbhc_micb_adjust_voltage(struct snd_soc_component * component,int req_volt,int micb_num) wcd937x_mbhc_micb_adjust_voltage() argument 1519 wcd937x_mbhc_micb_ctrl_threshold_mic(struct snd_soc_component * component,int micb_num,bool req_en) wcd937x_mbhc_micb_ctrl_threshold_mic() argument 1540 wcd937x_mbhc_get_result_params(struct snd_soc_component * component,s16 * d1_a,u16 noff,int32_t * zdet) wcd937x_mbhc_get_result_params() argument 1600 wcd937x_mbhc_zdet_ramp(struct snd_soc_component * component,struct wcd937x_mbhc_zdet_param * zdet_param,s32 * zl,s32 * zr,s16 * d1_a) wcd937x_mbhc_zdet_ramp() argument 1644 wcd937x_wcd_mbhc_qfuse_cal(struct snd_soc_component * component,s32 * z_val,int flag_l_r) wcd937x_wcd_mbhc_qfuse_cal() argument 1664 wcd937x_wcd_mbhc_calc_impedance(struct snd_soc_component * component,u32 * zl,u32 * zr) wcd937x_wcd_mbhc_calc_impedance() argument 1840 wcd937x_mbhc_gnd_det_ctrl(struct snd_soc_component * component,bool enable) wcd937x_mbhc_gnd_det_ctrl() argument 1856 wcd937x_mbhc_hph_pull_down_ctrl(struct snd_soc_component * component,bool enable) wcd937x_mbhc_hph_pull_down_ctrl() argument 1865 wcd937x_mbhc_moisture_config(struct snd_soc_component * component) wcd937x_mbhc_moisture_config() argument 1888 wcd937x_mbhc_moisture_detect_en(struct snd_soc_component * component,bool enable) wcd937x_mbhc_moisture_detect_en() argument 1900 wcd937x_mbhc_get_moisture_status(struct snd_soc_component * component) wcd937x_mbhc_get_moisture_status() argument 1935 wcd937x_mbhc_moisture_polling_ctrl(struct snd_soc_component * component,bool enable) wcd937x_mbhc_moisture_polling_ctrl() argument 1964 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd937x_get_hph_type() local 1978 struct snd_soc_component *component = wcd937x_hph_impedance_get() local 2002 wcd937x_mbhc_init(struct snd_soc_component * component) wcd937x_mbhc_init() argument 2034 wcd937x_mbhc_deinit(struct snd_soc_component * component) wcd937x_mbhc_deinit() argument 2494 wcd937x_soc_codec_probe(struct snd_soc_component * component) wcd937x_soc_codec_probe() argument 2593 wcd937x_soc_codec_remove(struct snd_soc_component * component) wcd937x_soc_codec_remove() argument 2658 wcd937x_swap_gnd_mic(struct snd_soc_component * component) wcd937x_swap_gnd_mic() argument [all...] |
| H A 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() argument 33 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_jack_det() 42 snd_soc_component_update_bits(component, DA7219_ACCDET_CONFIG_1, in da7219_aad_jack_det() 55 struct snd_soc_component *component = da7219_aad->component; in da7219_aad_btn_det_work() local 56 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in da7219_aad_btn_det_work() 57 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_btn_det_work() 63 snd_soc_component_update_bits(component, DA7219_HP_L_CTRL, in da7219_aad_btn_det_work() 66 snd_soc_component_update_bits(component, DA7219_HP_R_CTRL, in da7219_aad_btn_det_work() 75 statusa = snd_soc_component_read(component, DA7219_ACCDET_STATUS_A); in da7219_aad_btn_det_work() 83 dev_warn(component->dev, "Mic bias status check timed out"); in da7219_aad_btn_det_work() [all …]
|
| H A D | wcd938x.c | 12 #include <linux/component.h> 313 static int wcd938x_set_swr_clk_rate(struct snd_soc_component *component, int rate, int bank) in wcd938x_get_clk_rate() 336 snd_soc_component_update_bits(component, WCD938X_DIGITAL_SWR_TX_CLK_RATE, in wcd938x_set_swr_clk_rate() 427 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wcd938x_codec_enable_rxclk() 431 snd_soc_component_write_field(component, WCD938X_DIGITAL_CDC_ANA_CLK_CTL, in wcd938x_codec_enable_rxclk() 433 snd_soc_component_write_field(component, WCD938X_ANA_RX_SUPPLIES, in wcd938x_codec_enable_rxclk() 435 snd_soc_component_write_field(component, WCD938X_DIGITAL_CDC_RX0_CTL, in wcd938x_codec_enable_rxclk() 437 snd_soc_component_write_field(component, WCD938X_DIGITAL_CDC_RX1_CTL, in wcd938x_codec_enable_rxclk() 439 snd_soc_component_write_field(component, WCD938X_DIGITAL_CDC_RX2_CTL, in wcd938x_codec_enable_rxclk() 441 snd_soc_component_write_field(component, WCD938X_DIGITAL_CDC_ANA_CLK_CT in wcd938x_codec_enable_rxclk() 315 wcd938x_set_swr_clk_rate(struct snd_soc_component * component,int rate,int bank) wcd938x_set_swr_clk_rate() argument 429 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_enable_rxclk() local 468 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_hphl_dac_event() local 522 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_hphr_dac_event() local 576 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_ear_dac_event() local 655 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_aux_dac_event() local 691 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_enable_hphr_pa() local 798 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_enable_hphl_pa() local 903 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_enable_aux_pa() local 947 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_enable_ear_pa() local 1021 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_enable_dmic() local 1092 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_tx_swr_ctrl() local 1176 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_enable_adc() local 1199 wcd938x_tx_channel_config(struct snd_soc_component * component,int channel,int mode) wcd938x_tx_channel_config() argument 1231 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_adc_enable_req() local 1334 wcd938x_micbias_control(struct snd_soc_component * component,int micb_num,int req,bool is_dapm) wcd938x_micbias_control() argument 1438 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_enable_micbias() local 1461 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); wcd938x_codec_enable_micbias_pullup() local 1485 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd938x_tx_mode_get() local 1498 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd938x_tx_mode_put() local 1514 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd938x_rx_hph_mode_get() local 1525 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd938x_rx_hph_mode_put() local 1539 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd938x_ear_pa_put_gain() local 1558 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd938x_get_compander() local 1577 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd938x_set_compander() local 1608 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd938x_ldoh_get() local 1619 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd938x_ldoh_put() local 1895 wcd938x_mbhc_clk_setup(struct snd_soc_component * component,bool enable) wcd938x_mbhc_clk_setup() argument 1902 wcd938x_mbhc_mbhc_bias_control(struct snd_soc_component * component,bool enable) wcd938x_mbhc_mbhc_bias_control() argument 1909 wcd938x_mbhc_program_btn_thr(struct snd_soc_component * component,int * btn_low,int * btn_high,int num_btn,bool is_micbias) wcd938x_mbhc_program_btn_thr() argument 1930 wcd938x_mbhc_micb_en_status(struct snd_soc_component * component,int micb_num) wcd938x_mbhc_micb_en_status() argument 1944 wcd938x_mbhc_hph_l_pull_up_control(struct snd_soc_component * component,int pull_up_cur) wcd938x_mbhc_hph_l_pull_up_control() argument 1956 wcd938x_mbhc_request_micbias(struct snd_soc_component * component,int micb_num,int req) wcd938x_mbhc_request_micbias() argument 1962 wcd938x_mbhc_micb_ramp_control(struct snd_soc_component * component,bool enable) wcd938x_mbhc_micb_ramp_control() argument 1987 wcd938x_mbhc_micb_adjust_voltage(struct snd_soc_component * component,int req_volt,int micb_num) wcd938x_mbhc_micb_adjust_voltage() argument 2058 wcd938x_mbhc_micb_ctrl_threshold_mic(struct snd_soc_component * component,int micb_num,bool req_en) wcd938x_mbhc_micb_ctrl_threshold_mic() argument 2079 wcd938x_mbhc_get_result_params(struct snd_soc_component * component,s16 * d1_a,u16 noff,int32_t * zdet) wcd938x_mbhc_get_result_params() argument 2139 wcd938x_mbhc_zdet_ramp(struct snd_soc_component * component,struct wcd938x_mbhc_zdet_param * zdet_param,int32_t * zl,int32_t * zr,s16 * d1_a) wcd938x_mbhc_zdet_ramp() argument 2187 wcd938x_wcd_mbhc_qfuse_cal(struct snd_soc_component * component,int32_t * z_val,int flag_l_r) wcd938x_wcd_mbhc_qfuse_cal() argument 2207 wcd938x_wcd_mbhc_calc_impedance(struct snd_soc_component * component,uint32_t * zl,uint32_t * zr) wcd938x_wcd_mbhc_calc_impedance() argument 2395 wcd938x_mbhc_gnd_det_ctrl(struct snd_soc_component * component,bool enable) wcd938x_mbhc_gnd_det_ctrl() argument 2411 wcd938x_mbhc_hph_pull_down_ctrl(struct snd_soc_component * component,bool enable) wcd938x_mbhc_hph_pull_down_ctrl() argument 2420 wcd938x_mbhc_moisture_config(struct snd_soc_component * component) wcd938x_mbhc_moisture_config() argument 2443 wcd938x_mbhc_moisture_detect_en(struct snd_soc_component * component,bool enable) wcd938x_mbhc_moisture_detect_en() argument 2455 wcd938x_mbhc_get_moisture_status(struct snd_soc_component * component) wcd938x_mbhc_get_moisture_status() argument 2492 wcd938x_mbhc_moisture_polling_ctrl(struct snd_soc_component * component,bool enable) wcd938x_mbhc_moisture_polling_ctrl() argument 2521 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); wcd938x_get_hph_type() local 2535 struct snd_soc_component *component = wcd938x_hph_impedance_get() local 2560 wcd938x_mbhc_init(struct snd_soc_component * component) wcd938x_mbhc_init() argument 2592 wcd938x_mbhc_deinit(struct snd_soc_component * component) wcd938x_mbhc_deinit() argument 3041 wcd938x_soc_codec_probe(struct snd_soc_component * component) wcd938x_soc_codec_probe() argument 3164 wcd938x_soc_codec_remove(struct snd_soc_component * component) wcd938x_soc_codec_remove() argument 3235 wcd938x_swap_gnd_mic(struct snd_soc_component * component) wcd938x_swap_gnd_mic() argument [all...] |
| H A D | twl6040.c | 65 struct snd_soc_component *component; member 95 #define to_twl6040(component) dev_get_drvdata((component)->dev->parent) argument 97 static unsigned int twl6040_read(struct snd_soc_component *component, unsigned int reg) in twl6040_read() argument 99 struct twl6040_data *priv = snd_soc_component_get_drvdata(component); in twl6040_read() 100 struct twl6040 *twl6040 = to_twl6040(component); in twl6040_read() 122 static bool twl6040_can_write_to_chip(struct snd_soc_component *component, in twl6040_can_write_to_chip() argument 125 struct twl6040_data *priv = snd_soc_component_get_drvdata(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() argument 144 struct twl6040_data *priv = snd_soc_component_get_drvdata(component); in twl6040_update_dl12_cache() 159 static int twl6040_write(struct snd_soc_component *component, in twl6040_write() argument [all …]
|
| H A D | tas2552.c | 64 struct snd_soc_component *component; member 82 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in tas2552_post_event() local 86 snd_soc_component_write(component, TAS2552_RESERVED_0D, 0xc0); in tas2552_post_event() 87 snd_soc_component_update_bits(component, TAS2552_LIMIT_RATE_HYS, (1 << 5), in tas2552_post_event() 89 snd_soc_component_update_bits(component, TAS2552_CFG_2, 1, 0); in tas2552_post_event() 90 snd_soc_component_update_bits(component, TAS2552_CFG_1, TAS2552_SWS, 0); in tas2552_post_event() 93 snd_soc_component_update_bits(component, TAS2552_CFG_1, TAS2552_SWS, in tas2552_post_event() 95 snd_soc_component_update_bits(component, TAS2552_CFG_2, 1, 1); in tas2552_post_event() 96 snd_soc_component_update_bits(component, TAS2552_LIMIT_RATE_HYS, (1 << 5), 0); in tas2552_post_event() 97 snd_soc_component_write(component, TAS2552_RESERVED_0D, 0xbe); in tas2552_post_event() [all …]
|
| H A D | wcd-clsh-v2.c | 147 static void wcd_clsh_v3_set_buck_mode(struct snd_soc_component *component, in wcd_clsh_v3_set_buck_mode() argument 152 snd_soc_component_update_bits(component, in wcd_clsh_v3_set_buck_mode() 156 snd_soc_component_update_bits(component, in wcd_clsh_v3_set_buck_mode() 194 static void wcd_clsh_v3_buck_ctrl(struct snd_soc_component *component, in wcd_clsh_v3_buck_ctrl() argument 202 snd_soc_component_update_bits(component, in wcd_clsh_v3_buck_ctrl() 212 snd_soc_component_update_bits(component, in wcd_clsh_v3_buck_ctrl() 216 snd_soc_component_update_bits(component, in wcd_clsh_v3_buck_ctrl() 317 static void wcd_clsh_v3_set_hph_mode(struct snd_soc_component *component, in wcd_clsh_v3_set_hph_mode() argument 341 dev_err(component->dev, "%s:Invalid mode %d\n", __func__, mode); in wcd_clsh_v3_set_hph_mode() 345 snd_soc_component_update_bits(component, WCD9XXX_ANA_HPH, 0x0C, val); in wcd_clsh_v3_set_hph_mode() [all …]
|
| H A D | da7218.c | 290 static void da7218_alc_calib(struct snd_soc_component *component) in da7218_alc_calib() argument 301 mic_1_ctrl = snd_soc_component_read(component, DA7218_MIC_1_CTRL); in da7218_alc_calib() 302 mic_2_ctrl = snd_soc_component_read(component, DA7218_MIC_2_CTRL); in da7218_alc_calib() 305 mixin_1_ctrl = snd_soc_component_read(component, DA7218_MIXIN_1_CTRL); in da7218_alc_calib() 306 mixin_2_ctrl = snd_soc_component_read(component, DA7218_MIXIN_2_CTRL); in da7218_alc_calib() 309 in_1l_filt_ctrl = snd_soc_component_read(component, DA7218_IN_1L_FILTER_CTRL); in da7218_alc_calib() 310 in_1r_filt_ctrl = snd_soc_component_read(component, DA7218_IN_1R_FILTER_CTRL); in da7218_alc_calib() 311 in_2l_filt_ctrl = snd_soc_component_read(component, DA7218_IN_2L_FILTER_CTRL); in da7218_alc_calib() 312 in_2r_filt_ctrl = snd_soc_component_read(component, DA7218_IN_2R_FILTER_CTRL); in da7218_alc_calib() 315 in_1_hpf_ctrl = snd_soc_component_read(component, DA7218_IN_1_HPF_FILTER_CTRL); in da7218_alc_calib() [all …]
|
| H A D | twl4030.c | 80 static unsigned int twl4030_read(struct snd_soc_component *component, unsigned int reg) in twl4030_read() argument 82 struct twl4030_priv *twl4030 = snd_soc_component_get_drvdata(component); in twl4030_read() 145 static int twl4030_write(struct snd_soc_component *component, unsigned int reg, in twl4030_write() argument 148 struct twl4030_priv *twl4030 = snd_soc_component_get_drvdata(component); in twl4030_write() 180 static void twl4030_codec_enable(struct snd_soc_component *component, int enable) in twl4030_codec_enable() argument 182 struct twl4030_priv *twl4030 = snd_soc_component_get_drvdata(component); in twl4030_codec_enable() 218 twl4030_get_board_params(struct snd_soc_component *component) in twl4030_get_board_params() argument 223 twl4030_codec_node = of_get_child_by_name(component->dev->parent->of_node, in twl4030_get_board_params() 227 board_params = devm_kzalloc(component->dev, in twl4030_get_board_params() 241 static int twl4030_init_chip(struct snd_soc_component *component) in twl4030_init_chip() argument [all …]
|
| H A D | da7213.c | 217 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in da7213_volsw_locked_get() local 218 struct da7213_priv *da7213 = snd_soc_component_get_drvdata(component); in da7213_volsw_locked_get() 231 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in da7213_volsw_locked_put() local 232 struct da7213_priv *da7213 = snd_soc_component_get_drvdata(component); in da7213_volsw_locked_put() 245 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in da7213_enum_locked_get() local 246 struct da7213_priv *da7213 = snd_soc_component_get_drvdata(component); in da7213_enum_locked_get() 259 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in da7213_enum_locked_put() local 260 struct da7213_priv *da7213 = snd_soc_component_get_drvdata(component); in da7213_enum_locked_put() 271 static int da7213_get_alc_data(struct snd_soc_component *component, u8 reg_val) in da7213_get_alc_data() argument 280 snd_soc_component_write(component, DA7213_ALC_CIC_OP_LVL_CTR in da7213_get_alc_data() 298 da7213_alc_calib_man(struct snd_soc_component * component) da7213_alc_calib_man() argument 331 da7213_alc_calib_auto(struct snd_soc_component * component) da7213_alc_calib_auto() argument 358 da7213_alc_calib(struct snd_soc_component * component) da7213_alc_calib() argument 423 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); da7213_put_mixin_gain() local 439 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); da7213_put_alc_sw() local 460 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); da7213_tonegen_freq_get() local 487 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); da7213_tonegen_freq_put() local 901 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); da7213_dai_event() local 1324 struct snd_soc_component *component = dai->component; da7213_hw_params() local 1423 struct snd_soc_component *component = codec_dai->component; da7213_set_dai_fmt() local 1529 struct snd_soc_component *component = dai->component; da7213_mute() local 1549 da7213_set_component_sysclk(struct snd_soc_component * component,int clk_id,int source,unsigned int freq,int dir) da7213_set_component_sysclk() argument 1602 _da7213_set_component_pll(struct snd_soc_component * component,int pll_id,int source,unsigned int fref,unsigned int fout) _da7213_set_component_pll() argument 1713 da7213_set_component_pll(struct snd_soc_component * component,int pll_id,int source,unsigned int fref,unsigned int fout) da7213_set_component_pll() argument 1771 da7213_set_auto_pll(struct snd_soc_component * component,bool enable) da7213_set_auto_pll() argument 1815 da7213_set_bias_level(struct snd_soc_component * component,enum snd_soc_bias_level level) da7213_set_bias_level() argument 1885 da7213_of_micbias_lvl(struct snd_soc_component * component,u32 val) da7213_of_micbias_lvl() argument 1903 da7213_of_dmic_data_sel(struct snd_soc_component * component,const char * str) da7213_of_dmic_data_sel() argument 1916 da7213_of_dmic_samplephase(struct snd_soc_component * component,const char * str) da7213_of_dmic_samplephase() argument 1929 da7213_of_dmic_clkrate(struct snd_soc_component * component,u32 val) da7213_of_dmic_clkrate() argument 1943 da7213_fw_to_pdata(struct snd_soc_component * component) da7213_fw_to_pdata() argument 1983 da7213_probe(struct snd_soc_component * component) da7213_probe() argument [all...] |
| H A D | da7219.c | 257 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in da7219_volsw_locked_get() local 258 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_volsw_locked_get() 271 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in da7219_volsw_locked_put() local 272 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_volsw_locked_put() 285 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in da7219_enum_locked_get() local 286 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_enum_locked_get() 299 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in da7219_enum_locked_put() local 300 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_enum_locked_put() 311 static void da7219_alc_calib(struct snd_soc_component *component) in da7219_alc_calib() argument 316 mic_ctrl = snd_soc_component_read(component, DA7219_MIC_1_CTRL); in da7219_alc_calib() [all …]
|
| H A D | rt5682.c | 3 // rt5682.c -- RT5682 ALSA SoC audio component driver 827 * @component: SoC audio component device. 836 * set of filters specified by the mask. And the component driver will turn on 839 int rt5682_sel_asrc_clk_src(struct snd_soc_component *component, in rt5682_sel_asrc_clk_src() argument 853 snd_soc_component_update_bits(component, RT5682_PLL_TRACK_2, in rt5682_sel_asrc_clk_src() 859 snd_soc_component_update_bits(component, RT5682_PLL_TRACK_3, in rt5682_sel_asrc_clk_src() 868 static int rt5682_button_detect(struct snd_soc_component *component) in rt5682_button_detect() argument 872 val = snd_soc_component_read(component, RT5682_4BTN_IL_CMD_1); in rt5682_button_detect() 874 snd_soc_component_write(component, RT5682_4BTN_IL_CMD_1, val); in rt5682_button_detect() 875 dev_dbg(component->dev, "%s btn_type=%x\n", __func__, btn_type); in rt5682_button_detect() [all …]
|
| H A D | wm0010.c | 90 struct snd_soc_component *component; member 148 static void wm0010_halt(struct snd_soc_component *component) in wm0010_halt() argument 150 struct wm0010_priv *wm0010 = snd_soc_component_get_drvdata(component); in wm0010_halt() 183 struct snd_soc_component *component; member 208 struct snd_soc_component *component = xfer->component; in wm0010_boot_xfer_complete() local 209 struct wm0010_priv *wm0010 = snd_soc_component_get_drvdata(component); in wm0010_boot_xfer_complete() 214 dev_err(component->dev, "SPI transfer failed: %d\n", in wm0010_boot_xfer_complete() 223 dev_dbg(component->dev, "%d: %04x\n", i, out32[i]); in wm0010_boot_xfer_complete() 227 dev_err(component->dev, in wm0010_boot_xfer_complete() 235 dev_err(component->dev, in wm0010_boot_xfer_complete() [all …]
|
| H A D | rt5640.c | 165 static int rt5640_reset(struct snd_soc_component *component) in rt5640_reset() argument 167 return snd_soc_component_write(component, RT5640_RESET, 0); in rt5640_reset() 461 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in set_dmic_clk() local 462 struct rt5640_priv *rt5640 = snd_soc_component_get_drvdata(component); in set_dmic_clk() 469 dev_err(component->dev, "Failed to set DMIC clock\n"); in set_dmic_clk() 471 snd_soc_component_update_bits(component, RT5640_DMIC, RT5640_DMIC_CLK_MASK, in set_dmic_clk() 479 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in is_using_asrc() local 480 struct rt5640_priv *rt5640 = snd_soc_component_get_drvdata(component); in is_using_asrc() 916 static void hp_amp_power_on(struct snd_soc_component *component) in hp_amp_power_on() argument 918 struct rt5640_priv *rt5640 = snd_soc_component_get_drvdata(component); in hp_amp_power_on() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_fw_update.c | 80 * ice_check_component_response - Report firmware response to a component 82 * @id: component id being checked 83 * @response: indicates whether this component can be updated 87 * Check whether firmware indicates if this component can be updated. Report 88 * a suitable error message over the netlink extended ACK if the component 91 * Returns: zero if the component can be updated, or -ECANCELED of the 92 * firmware indicates the component cannot be updated. 99 const char *component; in ice_check_component_response() local 103 component = "fw.undi"; in ice_check_component_response() 106 component = "fw.mgmt"; in ice_check_component_response() [all …]
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_fw_update.c | 59 * ixgbe_check_component_response - Report firmware response to a component 61 * @response: indicates whether this component can be updated 65 * Check whether firmware indicates if this component can be updated. Report 66 * a suitable error message over the netlink extended ACK if the component 69 * Return: 0 if the component can be updated, or -ECANCELED if the 70 * firmware indicates the component cannot be updated. 99 "Component comparison stamp is identical to running image"); in ixgbe_check_component_response() 103 "Component comparison stamp is lower than running image"); in ixgbe_check_component_response() 107 "Component comparison stamp is invalid"); in ixgbe_check_component_response() 111 "Component table conflict occurred"); in ixgbe_check_component_response() [all …]
|
| /linux/sound/soc/meson/ |
| H A D | aiu-encoder-i2s.c | 30 static void aiu_encoder_i2s_divider_enable(struct snd_soc_component *component, in aiu_encoder_i2s_divider_enable() argument 33 snd_soc_component_update_bits(component, AIU_CLK_CTRL, in aiu_encoder_i2s_divider_enable() 38 static int aiu_encoder_i2s_setup_desc(struct snd_soc_component *component, in aiu_encoder_i2s_setup_desc() argument 45 snd_soc_component_write(component, AIU_RST_SOFT, AIU_RST_SOFT_I2S_FAST); in aiu_encoder_i2s_setup_desc() 46 snd_soc_component_read(component, AIU_I2S_SYNC); in aiu_encoder_i2s_setup_desc() 71 snd_soc_component_update_bits(component, AIU_I2S_SOURCE_DESC, in aiu_encoder_i2s_setup_desc() 81 static int aiu_encoder_i2s_set_legacy_div(struct snd_soc_component *component, in aiu_encoder_i2s_set_legacy_div() argument 94 dev_err(component->dev, "Unsupported i2s divider: %u\n", bs); in aiu_encoder_i2s_set_legacy_div() 98 snd_soc_component_update_bits(component, AIU_CLK_CTRL, in aiu_encoder_i2s_set_legacy_div() 103 snd_soc_component_update_bits(component, AIU_CLK_CTRL_MORE, in aiu_encoder_i2s_set_legacy_div() [all …]
|
| H A D | aiu-encoder-spdif.c | 30 aiu_encoder_spdif_divider_enable(struct snd_soc_component *component, in aiu_encoder_spdif_divider_enable() argument 33 snd_soc_component_update_bits(component, AIU_CLK_CTRL, in aiu_encoder_spdif_divider_enable() 38 static void aiu_encoder_spdif_hold(struct snd_soc_component *component, in aiu_encoder_spdif_hold() argument 41 snd_soc_component_update_bits(component, AIU_958_CTRL, in aiu_encoder_spdif_hold() 50 struct snd_soc_component *component = dai->component; in aiu_encoder_spdif_trigger() local 56 aiu_encoder_spdif_hold(component, false); in aiu_encoder_spdif_trigger() 62 aiu_encoder_spdif_hold(component, true); in aiu_encoder_spdif_trigger() 70 static int aiu_encoder_spdif_setup_cs_word(struct snd_soc_component *component, in aiu_encoder_spdif_setup_cs_word() argument 84 snd_soc_component_write(component, AIU_958_CHSTAT_L0, val); in aiu_encoder_spdif_setup_cs_word() 85 snd_soc_component_write(component, AIU_958_CHSTAT_R0, val); in aiu_encoder_spdif_setup_cs_word() [all …]
|
| /linux/sound/soc/generic/ |
| H A D | test-component.c | 3 // test-component.c -- Test Audio Component driver 249 static int test_component_probe(struct snd_soc_component *component) in test_component_probe() argument 251 mile_stone(component); in test_component_probe() 256 static void test_component_remove(struct snd_soc_component *component) in test_component_remove() argument 258 mile_stone(component); in test_component_remove() 261 static int test_component_suspend(struct snd_soc_component *component) in test_component_suspend() argument 263 mile_stone(component); in test_component_suspend() 268 static int test_component_resume(struct snd_soc_component *component) in test_component_resume() argument 270 mile_stone(component); in test_component_resume() 276 test_component_pcm_construct(struct snd_soc_component * component,struct snd_soc_pcm_runtime * rtd) test_component_pcm_construct() argument 290 test_component_pcm_destruct(struct snd_soc_component * component,struct snd_pcm * pcm) test_component_pcm_destruct() argument 296 test_component_set_sysclk(struct snd_soc_component * component,int clk_id,int source,unsigned int freq,int dir) test_component_set_sysclk() argument 304 test_component_set_pll(struct snd_soc_component * component,int pll_id,int source,unsigned int freq_in,unsigned int freq_out) test_component_set_pll() argument 312 test_component_set_jack(struct snd_soc_component * component,struct snd_soc_jack * jack,void * data) test_component_set_jack() argument 320 test_component_seq_notifier(struct snd_soc_component * component,enum snd_soc_dapm_type type,int subseq) test_component_seq_notifier() argument 326 test_component_stream_event(struct snd_soc_component * component,int event) test_component_stream_event() argument 333 test_component_set_bias_level(struct snd_soc_component * component,enum snd_soc_bias_level level) test_component_set_bias_level() argument 354 test_component_open(struct snd_soc_component * component,struct snd_pcm_substream * substream) test_component_open() argument 368 test_component_close(struct snd_soc_component * component,struct snd_pcm_substream * substream) test_component_close() argument 376 test_component_ioctl(struct snd_soc_component * component,struct snd_pcm_substream * substream,unsigned int cmd,void * arg) test_component_ioctl() argument 385 test_component_hw_params(struct snd_soc_component * component,struct snd_pcm_substream * substream,struct snd_pcm_hw_params * params) test_component_hw_params() argument 394 test_component_hw_free(struct snd_soc_component * component,struct snd_pcm_substream * substream) test_component_hw_free() argument 402 test_component_prepare(struct snd_soc_component * component,struct snd_pcm_substream * substream) test_component_prepare() argument 430 test_component_trigger(struct snd_soc_component * component,struct snd_pcm_substream * substream,int cmd) test_component_trigger() argument 450 test_component_sync_stop(struct snd_soc_component * component,struct snd_pcm_substream * substream) test_component_sync_stop() argument 458 test_component_pointer(struct snd_soc_component * component,struct snd_pcm_substream * substream) test_component_pointer() argument 476 test_component_get_time_info(struct snd_soc_component * component,struct snd_pcm_substream * substream,struct timespec64 * system_ts,struct timespec64 * audio_ts,struct snd_pcm_audio_tstamp_config * audio_tstamp_config,struct snd_pcm_audio_tstamp_report * audio_tstamp_report) test_component_get_time_info() argument [all...] |