| /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-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-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-4.19/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> 19 struct component; 25 struct component *component; member 45 struct component { struct 77 struct component *component = match->compare[i].component; in component_devices_show() local 80 component ? dev_name(component->dev) : "(unknown)", in component_devices_show() 81 component ? (component->bound ? "bound" : "not bound") : "not registered"); in component_devices_show() 144 static struct component *find_component(struct master *master, in find_component() 147 struct component *c; in find_component() [all …]
|
| /kernel/linux/linux-4.19/sound/soc/codecs/ |
| D | da7219-aad.c | 35 void da7219_aad_jack_det(struct snd_soc_component *component, struct snd_soc_jack *jack) in da7219_aad_jack_det() argument 37 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_jack_det() 46 snd_soc_component_update_bits(component, DA7219_ACCDET_CONFIG_1, in da7219_aad_jack_det() 60 struct snd_soc_component *component = da7219_aad->component; in da7219_aad_btn_det_work() local 61 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in da7219_aad_btn_det_work() 62 struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component); in da7219_aad_btn_det_work() 68 snd_soc_component_update_bits(component, DA7219_HP_L_CTRL, in da7219_aad_btn_det_work() 71 snd_soc_component_update_bits(component, DA7219_HP_R_CTRL, in da7219_aad_btn_det_work() 80 statusa = snd_soc_component_read32(component, DA7219_ACCDET_STATUS_A); in da7219_aad_btn_det_work() 88 dev_warn(component->dev, "Mic bias status check timed out"); in da7219_aad_btn_det_work() [all …]
|
| D | wm8958-dsp2.c | 42 static int wm8958_dsp2_fw(struct snd_soc_component *component, const char *name, in wm8958_dsp2_fw() argument 45 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_dsp2_fw() 58 dev_err(component->dev, "%s: firmware too short (%zd bytes)\n", in wm8958_dsp2_fw() 66 dev_err(component->dev, "%s: firmware has bad file magic %08x\n", in wm8958_dsp2_fw() 77 dev_err(component->dev, "%s: unsupported firmware version %d\n", in wm8958_dsp2_fw() 82 dev_err(component->dev, "%s: unsupported target device %d\n", in wm8958_dsp2_fw() 87 dev_err(component->dev, "%s: unsupported target core %d\n", in wm8958_dsp2_fw() 94 dev_info(component->dev, "%s timestamp %llx\n", in wm8958_dsp2_fw() 97 snd_soc_component_write(component, 0x102, 0x2); in wm8958_dsp2_fw() 98 snd_soc_component_write(component, 0x900, 0x2); in wm8958_dsp2_fw() [all …]
|
| D | tlv320dac33.c | 66 struct snd_soc_component *component); 68 struct snd_soc_component *component); 94 struct snd_soc_component *component; member 174 static inline unsigned int dac33_read_reg_cache(struct snd_soc_component *component, in dac33_read_reg_cache() argument 177 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_read_reg_cache() 185 static inline void dac33_write_reg_cache(struct snd_soc_component *component, in dac33_write_reg_cache() argument 188 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_write_reg_cache() 196 static int dac33_read(struct snd_soc_component *component, unsigned int reg, in dac33_read() argument 199 struct tlv320dac33_priv *dac33 = snd_soc_component_get_drvdata(component); in dac33_read() 208 dev_err(component->dev, "Read failed (%d)\n", val); in dac33_read() [all …]
|
| D | twl6040.c | 79 struct snd_soc_component *component; member 109 #define to_twl6040(component) dev_get_drvdata((component)->dev->parent) argument 111 static unsigned int twl6040_read(struct snd_soc_component *component, unsigned int reg) in twl6040_read() argument 113 struct twl6040_data *priv = snd_soc_component_get_drvdata(component); in twl6040_read() 114 struct twl6040 *twl6040 = to_twl6040(component); in twl6040_read() 136 static bool twl6040_can_write_to_chip(struct snd_soc_component *component, in twl6040_can_write_to_chip() argument 139 struct twl6040_data *priv = snd_soc_component_get_drvdata(component); in twl6040_can_write_to_chip() 155 static inline void twl6040_update_dl12_cache(struct snd_soc_component *component, in twl6040_update_dl12_cache() argument 158 struct twl6040_data *priv = snd_soc_component_get_drvdata(component); in twl6040_update_dl12_cache() 173 static int twl6040_write(struct snd_soc_component *component, in twl6040_write() argument [all …]
|
| D | wm8994.c | 109 static void wm8958_micd_set_rate(struct snd_soc_component *component) in wm8958_micd_set_rate() argument 111 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in wm8958_micd_set_rate() 120 sysclk = snd_soc_component_read32(component, WM8994_CLOCKING_1); in wm8958_micd_set_rate() 151 dev_dbg(component->dev, "MICD rate %d,%d for %dHz %s\n", in wm8958_micd_set_rate() 155 snd_soc_component_update_bits(component, WM8958_MIC_DETECT_1, in wm8958_micd_set_rate() 160 static int configure_aif_clock(struct snd_soc_component *component, int aif) in configure_aif_clock() argument 162 struct wm8994_priv *wm8994 = snd_soc_component_get_drvdata(component); in configure_aif_clock() 200 dev_dbg(component->dev, "Dividing AIF%d clock to %dHz\n", in configure_aif_clock() 206 snd_soc_component_update_bits(component, WM8994_AIF1_CLOCKING_1 + offset, in configure_aif_clock() 213 static int configure_clock(struct snd_soc_component *component) in configure_clock() argument [all …]
|
| D | wm8961.c | 197 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm8961_hp_event() local 198 u16 hp_reg = snd_soc_component_read32(component, WM8961_ANALOGUE_HP_0); in wm8961_hp_event() 199 u16 cp_reg = snd_soc_component_read32(component, WM8961_CHARGE_PUMP_1); in wm8961_hp_event() 200 u16 pwr_reg = snd_soc_component_read32(component, WM8961_PWR_MGMT_2); in wm8961_hp_event() 201 u16 dcs_reg = snd_soc_component_read32(component, WM8961_DC_SERVO_1); in wm8961_hp_event() 207 snd_soc_component_write(component, WM8961_ANALOGUE_HP_0, hp_reg); in wm8961_hp_event() 211 snd_soc_component_write(component, WM8961_CHARGE_PUMP_1, cp_reg); in wm8961_hp_event() 216 snd_soc_component_write(component, WM8961_PWR_MGMT_2, pwr_reg); in wm8961_hp_event() 220 snd_soc_component_write(component, WM8961_ANALOGUE_HP_0, hp_reg); in wm8961_hp_event() 224 snd_soc_component_write(component, WM8961_ANALOGUE_HP_0, hp_reg); in wm8961_hp_event() [all …]
|
| D | tas2552.c | 73 struct snd_soc_component *component; member 91 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in tas2552_post_event() local 95 snd_soc_component_write(component, TAS2552_RESERVED_0D, 0xc0); in tas2552_post_event() 96 snd_soc_component_update_bits(component, TAS2552_LIMIT_RATE_HYS, (1 << 5), in tas2552_post_event() 98 snd_soc_component_update_bits(component, TAS2552_CFG_2, 1, 0); in tas2552_post_event() 99 snd_soc_component_update_bits(component, TAS2552_CFG_1, TAS2552_SWS, 0); in tas2552_post_event() 102 snd_soc_component_update_bits(component, TAS2552_CFG_1, TAS2552_SWS, in tas2552_post_event() 104 snd_soc_component_update_bits(component, TAS2552_CFG_2, 1, 1); in tas2552_post_event() 105 snd_soc_component_update_bits(component, TAS2552_LIMIT_RATE_HYS, (1 << 5), 0); in tas2552_post_event() 106 snd_soc_component_write(component, TAS2552_RESERVED_0D, 0xbe); in tas2552_post_event() [all …]
|
| /kernel/linux/linux-4.19/sound/soc/ |
| D | soc-io.c | 17 * @component: Component to read from 23 int snd_soc_component_read(struct snd_soc_component *component, in snd_soc_component_read() argument 28 if (component->regmap) in snd_soc_component_read() 29 ret = regmap_read(component->regmap, reg, val); in snd_soc_component_read() 30 else if (component->driver->read) { in snd_soc_component_read() 31 *val = component->driver->read(component, reg); in snd_soc_component_read() 41 unsigned int snd_soc_component_read32(struct snd_soc_component *component, in snd_soc_component_read32() argument 47 ret = snd_soc_component_read(component, reg, &val); in snd_soc_component_read32() 57 * @component: Component to write to 63 int snd_soc_component_write(struct snd_soc_component *component, in snd_soc_component_write() argument [all …]
|
| D | soc-compress.c | 27 struct snd_soc_component *component; in soc_compr_components_open() local 32 component = rtdcom->component; in soc_compr_components_open() 34 if (!component->driver->compr_ops || in soc_compr_components_open() 35 !component->driver->compr_ops->open) in soc_compr_components_open() 38 ret = component->driver->compr_ops->open(cstream); in soc_compr_components_open() 40 dev_err(component->dev, in soc_compr_components_open() 42 component->name, ret); in soc_compr_components_open() 44 *last = component; in soc_compr_components_open() 57 struct snd_soc_component *component; in soc_compr_components_free() local 61 component = rtdcom->component; in soc_compr_components_free() [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 …]
|
| 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-5.10/sound/soc/meson/ |
| D | aiu-encoder-i2s.c | 31 static void aiu_encoder_i2s_divider_enable(struct snd_soc_component *component, in aiu_encoder_i2s_divider_enable() argument 34 snd_soc_component_update_bits(component, AIU_CLK_CTRL, in aiu_encoder_i2s_divider_enable() 39 static void aiu_encoder_i2s_hold(struct snd_soc_component *component, in aiu_encoder_i2s_hold() argument 42 snd_soc_component_update_bits(component, AIU_I2S_MISC, in aiu_encoder_i2s_hold() 50 struct snd_soc_component *component = dai->component; in aiu_encoder_i2s_trigger() local 56 aiu_encoder_i2s_hold(component, false); in aiu_encoder_i2s_trigger() 62 aiu_encoder_i2s_hold(component, true); in aiu_encoder_i2s_trigger() 70 static int aiu_encoder_i2s_setup_desc(struct snd_soc_component *component, in aiu_encoder_i2s_setup_desc() argument 77 snd_soc_component_write(component, AIU_RST_SOFT, AIU_RST_SOFT_I2S_FAST); in aiu_encoder_i2s_setup_desc() 78 snd_soc_component_read(component, AIU_I2S_SYNC); in aiu_encoder_i2s_setup_desc() [all …]
|