| /kernel/linux/linux-5.10/sound/soc/ |
| D | soc-component.c | 3 // soc-component.c 16 static inline int _soc_component_ret(struct snd_soc_component *component, in _soc_component_ret() argument 29 dev_err(component->dev, in _soc_component_ret() 31 func, component->name, ret); in _soc_component_ret() 41 #define soc_component_mark_push(component, substream, tgt) ((component)->mark_##tgt = substream) argument 42 #define soc_component_mark_pop(component, substream, tgt) ((component)->mark_##tgt = NULL) argument 43 #define soc_component_mark_match(component, substream, tgt) ((component)->mark_##tgt == substream) argument 45 void snd_soc_component_set_aux(struct snd_soc_component *component, in snd_soc_component_set_aux() argument 48 component->init = (aux) ? aux->init : NULL; in snd_soc_component_set_aux() 51 int snd_soc_component_init(struct snd_soc_component *component) in snd_soc_component_init() argument [all …]
|
| 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 …]
|
| D | soc-compress.c | 29 struct snd_soc_component *component; in soc_compr_components_open() local 32 for_each_rtd_components(rtd, i, component) { in soc_compr_components_open() 33 if (!component->driver->compress_ops || in soc_compr_components_open() 34 !component->driver->compress_ops->open) in soc_compr_components_open() 37 ret = component->driver->compress_ops->open(component, cstream); in soc_compr_components_open() 39 dev_err(component->dev, in soc_compr_components_open() 41 component->name, ret); in soc_compr_components_open() 43 *last = component; in soc_compr_components_open() 56 struct snd_soc_component *component; in soc_compr_components_free() local 59 for_each_rtd_components(rtd, i, component) { in soc_compr_components_free() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/ |
| D | soc-component.c | 3 // soc-component.c 18 static inline int _soc_component_ret(struct snd_soc_component *component, in _soc_component_ret() argument 32 dev_err(component->dev, in _soc_component_ret() 34 func, component->name, ret); in _soc_component_ret() 36 dev_err(component->dev, in _soc_component_ret() 38 func, component->name, reg, ret); in _soc_component_ret() 44 static inline int soc_component_field_shift(struct snd_soc_component *component, in soc_component_field_shift() argument 48 dev_err(component->dev, "ASoC: error field mask is zero for %s\n", in soc_component_field_shift() 49 component->name); in soc_component_field_shift() 60 #define soc_component_mark_push(component, substream, tgt) ((component)->mark_##tgt = substream) argument [all …]
|
| /kernel/linux/linux-6.6/Documentation/gpu/ |
| 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 …]
|
| /kernel/linux/linux-5.10/Documentation/gpu/ |
| 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 …]
|
| /kernel/linux/linux-5.10/include/sound/ |
| 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, [all …]
|
| /kernel/linux/linux-6.6/include/sound/ |
| 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, [all …]
|
| /kernel/linux/linux-5.10/drivers/base/ |
| D | component.c | 5 * This is work in progress. We gather up the component devices into a list, 10 #include <linux/component.h> 21 * The component helper allows drivers to collect a pile of sub-devices, 24 * of_clk_get_by_name(). The component helper can be used when such a 25 * subsystem-specific way to find a device is not available: The component 32 * The component helper also doesn't solve runtime dependencies, e.g. for system 38 * Aggregate drivers first assemble a component match list of what they need 44 struct component; 51 struct component *component; member 71 struct component { struct [all …]
|
| /kernel/linux/linux-6.6/drivers/base/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
| D | ice_fw_update.c | 68 * ice_check_component_response - Report firmware response to a component 70 * @id: component id being checked 71 * @response: indicates whether this component can be updated 75 * Check whether firmware indicates if this component can be updated. Report 76 * a suitable error message over the netlink extended ACK if the component 79 * Returns: zero if the component can be updated, or -ECANCELED of the 80 * firmware indicates the component cannot be updated. 87 const char *component; in ice_check_component_response() local 91 component = "fw.undi"; in ice_check_component_response() 94 component = "fw.mgmt"; in ice_check_component_response() [all …]
|
| /kernel/linux/linux-5.10/sound/soc/codecs/ |
| 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 …]
|
| D | tlv320dac33.c | 52 struct snd_soc_component *component); 54 struct snd_soc_component *component); 80 struct snd_soc_component *component; member 160 static inline unsigned int dac33_read_reg_cache(struct snd_soc_component *component, in dac33_read_reg_cache() argument 163 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_read_reg_cache() 171 static inline void dac33_write_reg_cache(struct snd_soc_component *component, in dac33_write_reg_cache() argument 174 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_write_reg_cache() 182 static int dac33_read(struct snd_soc_component *component, unsigned int reg, in dac33_read() argument 185 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_read() 194 dev_err(component->dev, "Read failed (%d)\n", val); in dac33_read() [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() 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() 56 struct snd_soc_component *component = da7219_aad->component; in da7219_aad_btn_det_work() local 57 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in da7219_aad_btn_det_work() 58 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_btn_det_work() 64 snd_soc_component_update_bits(component, DA7219_HP_L_CTRL, in da7219_aad_btn_det_work() 67 snd_soc_component_update_bits(component, DA7219_HP_R_CTRL, in da7219_aad_btn_det_work() 76 statusa = snd_soc_component_read(component, DA7219_ACCDET_STATUS_A); in da7219_aad_btn_det_work() 84 dev_warn(component->dev, "Mic bias status check timed out"); in da7219_aad_btn_det_work() [all …]
|
| D | wm8994.c | 111 static void wm8958_micd_set_rate(struct snd_soc_component *component) in wm8958_micd_set_rate() argument 113 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_micd_set_rate() 122 sysclk = snd_soc_component_read(component, WM8994_CLOCKING_1); in wm8958_micd_set_rate() 153 dev_dbg(component->dev, "MICD rate %d,%d for %dHz %s\n", in wm8958_micd_set_rate() 157 snd_soc_component_update_bits(component, WM8958_MIC_DETECT_1, in wm8958_micd_set_rate() 162 static int configure_aif_clock(struct snd_soc_component *component, int aif) in configure_aif_clock() argument 164 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in configure_aif_clock() 202 dev_dbg(component->dev, "Dividing AIF%d clock to %dHz\n", in configure_aif_clock() 208 snd_soc_component_update_bits(component, WM8994_AIF1_CLOCKING_1 + offset, in configure_aif_clock() 215 static int configure_clock(struct snd_soc_component *component) in configure_clock() argument [all …]
|
| 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 …]
|
| D | tas2552.c | 65 struct snd_soc_component *component; member 83 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in tas2552_post_event() local 87 snd_soc_component_write(component, TAS2552_RESERVED_0D, 0xc0); in tas2552_post_event() 88 snd_soc_component_update_bits(component, TAS2552_LIMIT_RATE_HYS, (1 << 5), in tas2552_post_event() 90 snd_soc_component_update_bits(component, TAS2552_CFG_2, 1, 0); in tas2552_post_event() 91 snd_soc_component_update_bits(component, TAS2552_CFG_1, TAS2552_SWS, 0); in tas2552_post_event() 94 snd_soc_component_update_bits(component, TAS2552_CFG_1, TAS2552_SWS, in tas2552_post_event() 96 snd_soc_component_update_bits(component, TAS2552_CFG_2, 1, 1); in tas2552_post_event() 97 snd_soc_component_update_bits(component, TAS2552_LIMIT_RATE_HYS, (1 << 5), 0); in tas2552_post_event() 98 snd_soc_component_write(component, TAS2552_RESERVED_0D, 0xbe); in tas2552_post_event() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| 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 …]
|
| D | tlv320dac33.c | 52 struct snd_soc_component *component); 54 struct snd_soc_component *component); 80 struct snd_soc_component *component; member 160 static inline unsigned int dac33_read_reg_cache(struct snd_soc_component *component, in dac33_read_reg_cache() argument 163 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_read_reg_cache() 171 static inline void dac33_write_reg_cache(struct snd_soc_component *component, in dac33_write_reg_cache() argument 174 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_write_reg_cache() 182 static int dac33_read(struct snd_soc_component *component, unsigned int reg, in dac33_read() argument 185 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_read() 194 dev_err(component->dev, "Read failed (%d)\n", val); in dac33_read() [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() 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 …]
|
| D | wm8994.c | 111 static void wm8958_micd_set_rate(struct snd_soc_component *component) in wm8958_micd_set_rate() argument 113 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_micd_set_rate() 122 sysclk = snd_soc_component_read(component, WM8994_CLOCKING_1); in wm8958_micd_set_rate() 153 dev_dbg(component->dev, "MICD rate %d,%d for %dHz %s\n", in wm8958_micd_set_rate() 157 snd_soc_component_update_bits(component, WM8958_MIC_DETECT_1, in wm8958_micd_set_rate() 162 static int configure_aif_clock(struct snd_soc_component *component, int aif) in configure_aif_clock() argument 164 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in configure_aif_clock() 202 dev_dbg(component->dev, "Dividing AIF%d clock to %dHz\n", in configure_aif_clock() 208 snd_soc_component_update_bits(component, WM8994_AIF1_CLOCKING_1 + offset, in configure_aif_clock() 215 static int configure_clock(struct snd_soc_component *component) in configure_clock() argument [all …]
|
| 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 …]
|
| 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 …]
|
| D | wm8961.c | 194 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm8961_hp_event() local 195 u16 hp_reg = snd_soc_component_read(component, WM8961_ANALOGUE_HP_0); in wm8961_hp_event() 196 u16 cp_reg = snd_soc_component_read(component, WM8961_CHARGE_PUMP_1); in wm8961_hp_event() 197 u16 pwr_reg = snd_soc_component_read(component, WM8961_PWR_MGMT_2); in wm8961_hp_event() 198 u16 dcs_reg = snd_soc_component_read(component, WM8961_DC_SERVO_1); in wm8961_hp_event() 204 snd_soc_component_write(component, WM8961_ANALOGUE_HP_0, hp_reg); in wm8961_hp_event() 208 snd_soc_component_write(component, WM8961_CHARGE_PUMP_1, cp_reg); in wm8961_hp_event() 213 snd_soc_component_write(component, WM8961_PWR_MGMT_2, pwr_reg); in wm8961_hp_event() 217 snd_soc_component_write(component, WM8961_ANALOGUE_HP_0, hp_reg); in wm8961_hp_event() 221 snd_soc_component_write(component, WM8961_ANALOGUE_HP_0, hp_reg); in wm8961_hp_event() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
| D | ice_fw_update.c | 79 * ice_check_component_response - Report firmware response to a component 81 * @id: component id being checked 82 * @response: indicates whether this component can be updated 86 * Check whether firmware indicates if this component can be updated. Report 87 * a suitable error message over the netlink extended ACK if the component 90 * Returns: zero if the component can be updated, or -ECANCELED of the 91 * firmware indicates the component cannot be updated. 98 const char *component; in ice_check_component_response() local 102 component = "fw.undi"; in ice_check_component_response() 105 component = "fw.mgmt"; in ice_check_component_response() [all …]
|