| /OK3568_Linux_fs/kernel/sound/soc/ |
| H A D | 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 55 if (component->init) in snd_soc_component_init() [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 …]
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/ |
| H A D | es8396.c | 30 static int es8396_set_bias_level(struct snd_soc_component *component, 186 struct snd_soc_component *component; member 308 struct snd_soc_component *component = es8396->component; in pcm_shutdown_depop_events() local 311 snd_soc_component_update_bits(component, ES8396_SDP1_IN_FMT_REG1F, in pcm_shutdown_depop_events() 321 struct snd_soc_component *component = es8396->component; in voice_shutdown_depop_events() local 324 snd_soc_component_update_bits(component, ES8396_SDP2_IN_FMT_REG22, in voice_shutdown_depop_events() 328 snd_soc_component_write(component, 0x1A, 0x00); in voice_shutdown_depop_events() 329 snd_soc_component_write(component, 0x67, 0x00); in voice_shutdown_depop_events() 330 snd_soc_component_write(component, 0x69, 0x00); in voice_shutdown_depop_events() 331 snd_soc_component_write(component, 0x66, 0x00); in voice_shutdown_depop_events() [all …]
|
| H A D | es8326.c | 52 struct snd_soc_component *component; member 118 struct device *dev = es8326->component->dev; in es8326_hpdetect_work() 125 snd_soc_component_write(es8326->component, 0x1b, 0x7c); in es8326_hpdetect_work() 128 iface = snd_soc_component_read(es8326->component, 0xfb); in es8326_hpdetect_work() 135 snd_soc_component_write(es8326->component, ES8326_ADC1_SRC_2A, in es8326_hpdetect_work() 147 snd_soc_component_write(es8326->component, in es8326_hpdetect_work() 164 snd_soc_component_write(es8326->component, 0x1b, 0x70); in es8326_hpdetect_work() 430 struct snd_soc_component *component = codec_dai->component; in es8326_set_dai_sysclk() local 431 struct es8326_priv *es8326 = snd_soc_component_get_drvdata(component); in es8326_set_dai_sysclk() 468 struct snd_soc_component *component = codec_dai->component; in es8326_set_dai_fmt() local [all …]
|
| H A D | es8323.c | 37 static int es8323_set_bias_level(struct snd_soc_component *component, 94 struct snd_soc_component *component; member 98 static int es8323_reset(struct snd_soc_component *component) in es8323_reset() argument 100 snd_soc_component_write(component, ES8323_CONTROL1, 0x80); in es8323_reset() 101 return snd_soc_component_write(component, ES8323_CONTROL1, 0x00); in es8323_reset() 430 struct snd_soc_component *component = codec_dai->component; in es8323_set_dai_sysclk() local 431 struct es8323_priv *es8323 = snd_soc_component_get_drvdata(component); in es8323_set_dai_sysclk() 465 struct snd_soc_component *component = codec_dai->component; in es8323_set_dai_fmt() local 470 iface = snd_soc_component_read(component, ES8323_IFACE); in es8323_set_dai_fmt() 471 adciface = snd_soc_component_read(component, ES8323_ADC_IFACE); in es8323_set_dai_fmt() [all …]
|
| H A D | rk1000_codec.c | 68 struct snd_soc_component *component; member 79 static void spk_ctrl_fun(struct snd_soc_component *component, int status) in spk_ctrl_fun() argument 83 rk1000_codec = snd_soc_component_get_drvdata(component); in spk_ctrl_fun() 89 static int rk1000_codec_set_bias_level(struct snd_soc_component *component, in rk1000_codec_set_bias_level() argument 97 snd_soc_component_write(component, ACCELCODEC_R1D, 0x2a); in rk1000_codec_set_bias_level() 98 snd_soc_component_write(component, ACCELCODEC_R1E, 0x40); in rk1000_codec_set_bias_level() 99 snd_soc_component_write(component, ACCELCODEC_R1F, 0x49); in rk1000_codec_set_bias_level() 103 snd_soc_component_write(component, ACCELCODEC_R1D, 0x2a); in rk1000_codec_set_bias_level() 104 snd_soc_component_write(component, ACCELCODEC_R1E, 0x40); in rk1000_codec_set_bias_level() 105 snd_soc_component_write(component, ACCELCODEC_R1F, 0x49); in rk1000_codec_set_bias_level() [all …]
|
| H A D | rk817_codec.c | 66 struct snd_soc_component *component; member 256 static int rk817_reset(struct snd_soc_component *component) in rk817_reset() argument 258 struct rk817_codec_priv *rk817 = snd_soc_component_get_drvdata(component); in rk817_reset() 260 snd_soc_component_write(component, RK817_CODEC_DTOP_LPT_SRST, 0x40); in rk817_reset() 261 snd_soc_component_write(component, RK817_CODEC_DDAC_POPD_DACST, 0x02); in rk817_reset() 262 snd_soc_component_write(component, RK817_CODEC_DI2S_CKM, 0x00); in rk817_reset() 263 snd_soc_component_write(component, RK817_CODEC_DTOP_DIGEN_CLKE, 0xff); in rk817_reset() 264 snd_soc_component_write(component, RK817_CODEC_APLL_CFG1, 0x58); in rk817_reset() 265 snd_soc_component_write(component, RK817_CODEC_APLL_CFG2, 0x2d); in rk817_reset() 266 snd_soc_component_write(component, RK817_CODEC_APLL_CFG3, 0x0c); in rk817_reset() [all …]
|
| H A 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 …]
|
| 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 | max98095.c | 251 static void m98095_eq_band(struct snd_soc_component *component, unsigned int dai, in m98095_eq_band() argument 269 snd_soc_component_write(component, eq_reg++, M98095_BYTE1(coefs[i])); in m98095_eq_band() 270 snd_soc_component_write(component, eq_reg++, M98095_BYTE0(coefs[i])); in m98095_eq_band() 277 static void m98095_biquad_band(struct snd_soc_component *component, unsigned int dai, in m98095_biquad_band() argument 295 snd_soc_component_write(component, bq_reg++, M98095_BYTE1(coefs[i])); in m98095_biquad_band() 296 snd_soc_component_write(component, bq_reg++, M98095_BYTE0(coefs[i])); in m98095_biquad_band() 353 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98095_mic1pre_set() local 354 struct max98095_priv *max98095 = snd_soc_component_get_drvdata(component); in max98095_mic1pre_set() 358 snd_soc_component_update_bits(component, M98095_05F_LVL_MIC1, M98095_MICPRE_MASK, in max98095_mic1pre_set() 367 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98095_mic1pre_get() local [all …]
|
| H A 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 …]
|
| H A D | rt5631.c | 70 static void rt5631_write_index(struct snd_soc_component *component, in rt5631_write_index() argument 73 snd_soc_component_write(component, RT5631_INDEX_ADD, reg); in rt5631_write_index() 74 snd_soc_component_write(component, RT5631_INDEX_DATA, value); in rt5631_write_index() 80 static unsigned int rt5631_read_index(struct snd_soc_component *component, in rt5631_read_index() argument 85 snd_soc_component_write(component, RT5631_INDEX_ADD, reg); in rt5631_read_index() 86 value = snd_soc_component_read(component, RT5631_INDEX_DATA); in rt5631_read_index() 91 static int rt5631_reset(struct snd_soc_component *component) in rt5631_reset() argument 93 return snd_soc_component_write(component, RT5631_RESET, 0); in rt5631_reset() 186 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in rt5631_dmic_get() local 187 struct rt5631_priv *rt5631 = snd_soc_component_get_drvdata(component); in rt5631_dmic_get() [all …]
|
| 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 | wm_hubs.c | 59 static void wait_for_dc_servo(struct snd_soc_component *component, unsigned int op) in wait_for_dc_servo() argument 61 struct wm_hubs_data *hubs = snd_soc_component_get_drvdata(component); in wait_for_dc_servo() 70 snd_soc_component_write(component, WM8993_DC_SERVO_0, val); in wait_for_dc_servo() 72 dev_dbg(component->dev, "Waiting for DC servo...\n"); in wait_for_dc_servo() 88 reg = snd_soc_component_read(component, WM8993_DC_SERVO_0); in wait_for_dc_servo() 89 dev_dbg(component->dev, "DC servo: %x\n", reg); in wait_for_dc_servo() 93 dev_err(component->dev, "Timed out waiting for DC Servo %x\n", in wait_for_dc_servo() 107 static bool wm_hubs_dac_hp_direct(struct snd_soc_component *component) in wm_hubs_dac_hp_direct() argument 112 reg = snd_soc_component_read(component, WM8993_OUTPUT_MIXER1); in wm_hubs_dac_hp_direct() 115 dev_vdbg(component->dev, "Analogue paths connected: %x\n", in wm_hubs_dac_hp_direct() [all …]
|
| H A D | rt5663.c | 58 struct snd_soc_component *component; member 1397 static void rt5663_enable_push_button_irq(struct snd_soc_component *component, in rt5663_enable_push_button_irq() argument 1400 struct rt5663_priv *rt5663 = snd_soc_component_get_drvdata(component); in rt5663_enable_push_button_irq() 1403 snd_soc_component_update_bits(component, RT5663_IL_CMD_6, in rt5663_enable_push_button_irq() 1406 snd_soc_component_update_bits(component, RT5663_IL_CMD_6, in rt5663_enable_push_button_irq() 1409 snd_soc_component_update_bits(component, RT5663_IL_CMD_6, in rt5663_enable_push_button_irq() 1414 snd_soc_component_update_bits(component, RT5663_IRQ_3, in rt5663_enable_push_button_irq() 1419 snd_soc_component_update_bits(component, RT5663_IRQ_2, in rt5663_enable_push_button_irq() 1424 dev_err(component->dev, "Unknown CODEC Version\n"); in rt5663_enable_push_button_irq() 1429 snd_soc_component_update_bits(component, RT5663_IRQ_3, in rt5663_enable_push_button_irq() [all …]
|
| H A 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 …]
|
| H A D | wm8753.c | 53 static int wm8753_hifi_write_dai_fmt(struct snd_soc_component *component, 55 static int wm8753_voice_write_dai_fmt(struct snd_soc_component *component, 227 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8753_get_dai() local 228 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_get_dai() 237 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8753_set_dai() local 238 struct wm8753_priv *wm8753 = snd_soc_component_get_drvdata(component); in wm8753_set_dai() 244 if (snd_soc_component_active(component)) in wm8753_set_dai() 247 ioctl = snd_soc_component_read(component, WM8753_IOCTL); in wm8753_set_dai() 255 snd_soc_component_write(component, WM8753_IOCTL, ioctl); in wm8753_set_dai() 258 wm8753_hifi_write_dai_fmt(component, wm8753->hifi_fmt); in wm8753_set_dai() [all …]
|
| H A D | wm8900.c | 216 static void wm8900_reset(struct snd_soc_component *component) in wm8900_reset() argument 218 snd_soc_component_write(component, WM8900_REG_RESET, 0); in wm8900_reset() 224 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in wm8900_hp_event() local 225 u16 hpctl1 = snd_soc_component_read(component, WM8900_REG_HPCTL1); in wm8900_hp_event() 232 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event() 241 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event() 248 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event() 252 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event() 254 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event() 260 snd_soc_component_write(component, WM8900_REG_HPCTL1, hpctl1); in wm8900_hp_event() [all …]
|
| H A D | twl4030.c | 75 static unsigned int twl4030_read(struct snd_soc_component *component, unsigned int reg) in twl4030_read() argument 77 struct twl4030_priv *twl4030 = snd_soc_component_get_drvdata(component); in twl4030_read() 140 static int twl4030_write(struct snd_soc_component *component, unsigned int reg, in twl4030_write() argument 143 struct twl4030_priv *twl4030 = snd_soc_component_get_drvdata(component); in twl4030_write() 175 static void twl4030_codec_enable(struct snd_soc_component *component, int enable) in twl4030_codec_enable() argument 177 struct twl4030_priv *twl4030 = snd_soc_component_get_drvdata(component); in twl4030_codec_enable() 216 static struct twl4030_codec_data *twl4030_get_pdata(struct snd_soc_component *component) in twl4030_get_pdata() argument 218 struct twl4030_codec_data *pdata = dev_get_platdata(component->dev); in twl4030_get_pdata() 221 twl4030_codec_node = of_get_child_by_name(component->dev->parent->of_node, in twl4030_get_pdata() 225 pdata = devm_kzalloc(component->dev, in twl4030_get_pdata() [all …]
|
| H A D | da7213.c | 194 static int da7213_get_alc_data(struct snd_soc_component *component, u8 reg_val) in da7213_get_alc_data() argument 203 snd_soc_component_write(component, DA7213_ALC_CIC_OP_LVL_CTRL, reg_val); in da7213_get_alc_data() 206 snd_soc_component_write(component, DA7213_ALC_CIC_OP_LVL_CTRL, in da7213_get_alc_data() 208 mid_data = snd_soc_component_read(component, DA7213_ALC_CIC_OP_LVL_DATA); in da7213_get_alc_data() 211 snd_soc_component_write(component, DA7213_ALC_CIC_OP_LVL_CTRL, in da7213_get_alc_data() 213 top_data = snd_soc_component_read(component, DA7213_ALC_CIC_OP_LVL_DATA); in da7213_get_alc_data() 221 static void da7213_alc_calib_man(struct snd_soc_component *component) in da7213_alc_calib_man() argument 228 avg_left_data = da7213_get_alc_data(component, in da7213_alc_calib_man() 231 avg_right_data = da7213_get_alc_data(component, in da7213_alc_calib_man() 239 snd_soc_component_write(component, DA7213_ALC_OFFSET_MAN_M_L, reg_val); in da7213_alc_calib_man() [all …]
|
| H A 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 …]
|
| H A D | max98088.c | 310 static void m98088_eq_band(struct snd_soc_component *component, unsigned int dai, in m98088_eq_band() argument 328 snd_soc_component_write(component, eq_reg++, M98088_BYTE1(coefs[i])); in m98088_eq_band() 329 snd_soc_component_write(component, eq_reg++, M98088_BYTE0(coefs[i])); in m98088_eq_band() 383 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98088_mic1pre_set() local 384 struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); in max98088_mic1pre_set() 388 snd_soc_component_update_bits(component, M98088_REG_35_LVL_MIC1, M98088_MICPRE_MASK, in max98088_mic1pre_set() 397 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98088_mic1pre_get() local 398 struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); in max98088_mic1pre_get() 407 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in max98088_mic2pre_set() local 408 struct max98088_priv *max98088 = snd_soc_component_get_drvdata(component); in max98088_mic2pre_set() [all …]
|
| H A D | wm8960.c | 49 static int wm8960_set_pll(struct snd_soc_component *component, 168 static int wm8960_set_deemph(struct snd_soc_component *component) in wm8960_set_deemph() argument 170 struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component); in wm8960_set_deemph() 189 dev_dbg(component->dev, "Set deemphasis %d\n", val); in wm8960_set_deemph() 191 return snd_soc_component_update_bits(component, WM8960_DACCTL1, in wm8960_set_deemph() 198 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8960_get_deemph() local 199 struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component); in wm8960_get_deemph() 208 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in wm8960_put_deemph() local 209 struct wm8960_priv *wm8960 = snd_soc_component_get_drvdata(component); in wm8960_put_deemph() 217 return wm8960_set_deemph(component); in wm8960_put_deemph() [all …]
|
| /OK3568_Linux_fs/kernel/include/sound/ |
| H A D | soc-component.h | 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, 48 int (*pointer)(struct snd_soc_component *component, 51 int (*copy)(struct snd_soc_component *component, 54 int (*mmap)(struct snd_soc_component *component, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/base/ |
| H A D | component.c | 44 struct component; 51 struct component *component; member 71 struct component { struct 104 struct component *component = match->compare[i].component; in component_devices_show() local 107 component ? dev_name(component->dev) : "(unknown)", in component_devices_show() 108 component ? (component->bound ? "bound" : "not bound") : "not registered"); in component_devices_show() 161 static struct component *find_component(struct master *master, in find_component() 164 struct component *c; in find_component() 193 struct component *c; in find_components() 197 if (match->compare[i].component) in find_components() [all …]
|