/sound/soc/codecs/ |
D | rt711-sdca-sdw.c | 141 static int rt711_sdca_update_status(struct sdw_slave *slave, in rt711_sdca_update_status() argument 144 struct rt711_sdca_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_sdca_update_status() 160 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK1, in rt711_sdca_update_status() 162 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK2, in rt711_sdca_update_status() 175 return rt711_sdca_io_init(&slave->dev, slave); in rt711_sdca_update_status() 178 static int rt711_sdca_read_prop(struct sdw_slave *slave) in rt711_sdca_read_prop() argument 180 struct sdw_slave_prop *prop = &slave->prop; in rt711_sdca_read_prop() 198 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_sdca_read_prop() 216 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_sdca_read_prop() 241 static int rt711_sdca_interrupt_callback(struct sdw_slave *slave, in rt711_sdca_interrupt_callback() argument [all …]
|
D | rt715-sdca-sdw.c | 119 static int rt715_sdca_update_status(struct sdw_slave *slave, in rt715_sdca_update_status() argument 122 struct rt715_sdca_priv *rt715 = dev_get_drvdata(&slave->dev); in rt715_sdca_update_status() 135 return rt715_sdca_io_init(&slave->dev, slave); in rt715_sdca_update_status() 138 static int rt715_sdca_read_prop(struct sdw_slave *slave) in rt715_sdca_read_prop() argument 140 struct sdw_slave_prop *prop = &slave->prop; in rt715_sdca_read_prop() 153 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt715_sdca_read_prop() 180 static int rt715_sdca_sdw_probe(struct sdw_slave *slave, in rt715_sdca_sdw_probe() argument 185 slave->ops = &rt715_sdca_slave_ops; in rt715_sdca_sdw_probe() 188 mbq_regmap = devm_regmap_init_sdw_mbq(slave, &rt715_sdca_mbq_regmap); in rt715_sdca_sdw_probe() 192 regmap = devm_regmap_init_sdw(slave, &rt715_sdca_regmap); in rt715_sdca_sdw_probe() [all …]
|
D | rt5682-sdw.c | 146 if (!rt5682->slave) in rt5682_sdw_hw_params() 167 retval = sdw_stream_add_slave(rt5682->slave, &stream_config, in rt5682_sdw_hw_params() 265 if (!rt5682->slave) in rt5682_sdw_hw_free() 268 sdw_stream_remove_slave(rt5682->slave, stream->sdw_stream); in rt5682_sdw_hw_free() 333 struct sdw_slave *slave) in rt5682_sdw_init() argument 343 rt5682->slave = slave; in rt5682_sdw_init() 372 dev_dbg(&slave->dev, "%s\n", __func__); in rt5682_sdw_init() 377 static int rt5682_io_init(struct device *dev, struct sdw_slave *slave) in rt5682_io_init() argument 393 pm_runtime_set_autosuspend_delay(&slave->dev, 3000); in rt5682_io_init() 394 pm_runtime_use_autosuspend(&slave->dev); in rt5682_io_init() [all …]
|
D | rt1308-sdw.c | 118 static int rt1308_read_prop(struct sdw_slave *slave) in rt1308_read_prop() argument 120 struct sdw_slave_prop *prop = &slave->prop; in rt1308_read_prop() 137 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1308_read_prop() 157 dev_dbg(&slave->dev, "%s\n", __func__); in rt1308_read_prop() 162 static int rt1308_io_init(struct device *dev, struct sdw_slave *slave) in rt1308_io_init() argument 182 pm_runtime_set_autosuspend_delay(&slave->dev, 3000); in rt1308_io_init() 183 pm_runtime_use_autosuspend(&slave->dev); in rt1308_io_init() 186 pm_runtime_set_active(&slave->dev); in rt1308_io_init() 189 pm_runtime_mark_last_busy(&slave->dev); in rt1308_io_init() 191 pm_runtime_enable(&slave->dev); in rt1308_io_init() [all …]
|
D | rt711-sdw.c | 317 static int rt711_update_status(struct sdw_slave *slave, in rt711_update_status() argument 320 struct rt711_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_update_status() 336 return rt711_io_init(&slave->dev, slave); in rt711_update_status() 339 static int rt711_read_prop(struct sdw_slave *slave) in rt711_read_prop() argument 341 struct sdw_slave_prop *prop = &slave->prop; in rt711_read_prop() 359 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_read_prop() 378 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt711_read_prop() 404 static int rt711_bus_config(struct sdw_slave *slave, in rt711_bus_config() argument 407 struct rt711_priv *rt711 = dev_get_drvdata(&slave->dev); in rt711_bus_config() 412 ret = rt711_clock_config(&slave->dev); in rt711_bus_config() [all …]
|
D | rt1316-sdw.c | 195 static int rt1316_read_prop(struct sdw_slave *slave) in rt1316_read_prop() argument 197 struct sdw_slave_prop *prop = &slave->prop; in rt1316_read_prop() 215 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1316_read_prop() 233 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt1316_read_prop() 252 dev_dbg(&slave->dev, "%s\n", __func__); in rt1316_read_prop() 257 static int rt1316_io_init(struct device *dev, struct sdw_slave *slave) in rt1316_io_init() argument 273 pm_runtime_set_autosuspend_delay(&slave->dev, 3000); in rt1316_io_init() 274 pm_runtime_use_autosuspend(&slave->dev); in rt1316_io_init() 277 pm_runtime_set_active(&slave->dev); in rt1316_io_init() 280 pm_runtime_mark_last_busy(&slave->dev); in rt1316_io_init() [all …]
|
D | rt700-sdw.c | 313 static int rt700_update_status(struct sdw_slave *slave, in rt700_update_status() argument 316 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_update_status() 332 return rt700_io_init(&slave->dev, slave); in rt700_update_status() 335 static int rt700_read_prop(struct sdw_slave *slave) in rt700_read_prop() argument 337 struct sdw_slave_prop *prop = &slave->prop; in rt700_read_prop() 354 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt700_read_prop() 373 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt700_read_prop() 399 static int rt700_bus_config(struct sdw_slave *slave, in rt700_bus_config() argument 402 struct rt700_priv *rt700 = dev_get_drvdata(&slave->dev); in rt700_bus_config() 407 ret = rt700_clock_config(&slave->dev); in rt700_bus_config() [all …]
|
D | sdw-mockup.c | 22 struct sdw_slave *slave; member 94 if (!sdw_mockup->slave) in sdw_mockup_pcm_hw_params() 115 ret = sdw_stream_add_slave(sdw_mockup->slave, &stream_config, in sdw_mockup_pcm_hw_params() 131 if (!sdw_mockup->slave) in sdw_mockup_pcm_hw_free() 134 sdw_stream_remove_slave(sdw_mockup->slave, stream->sdw_stream); in sdw_mockup_pcm_hw_free() 163 static int sdw_mockup_update_status(struct sdw_slave *slave, in sdw_mockup_update_status() argument 169 static int sdw_mockup_read_prop(struct sdw_slave *slave) in sdw_mockup_read_prop() argument 171 struct sdw_slave_prop *prop = &slave->prop; in sdw_mockup_read_prop() 191 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop() 209 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop() [all …]
|
D | max98373-sdw.c | 270 struct sdw_slave *slave = dev_to_sdw_dev(dev); in max98373_resume() local 277 if (!slave->unattach_request) in max98373_resume() 280 time = wait_for_completion_timeout(&slave->initialization_complete, in max98373_resume() 288 slave->unattach_request = 0; in max98373_resume() 300 static int max98373_read_prop(struct sdw_slave *slave) in max98373_read_prop() argument 302 struct sdw_slave_prop *prop = &slave->prop; in max98373_read_prop() 318 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in max98373_read_prop() 337 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in max98373_read_prop() 360 static int max98373_io_init(struct sdw_slave *slave) in max98373_io_init() argument 362 struct device *dev = &slave->dev; in max98373_io_init() [all …]
|
D | rt715-sdw.c | 415 static int rt715_update_status(struct sdw_slave *slave, in rt715_update_status() argument 418 struct rt715_priv *rt715 = dev_get_drvdata(&slave->dev); in rt715_update_status() 430 return rt715_io_init(&slave->dev, slave); in rt715_update_status() 433 static int rt715_read_prop(struct sdw_slave *slave) in rt715_read_prop() argument 435 struct sdw_slave_prop *prop = &slave->prop; in rt715_read_prop() 452 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in rt715_read_prop() 477 static int rt715_bus_config(struct sdw_slave *slave, in rt715_bus_config() argument 480 struct rt715_priv *rt715 = dev_get_drvdata(&slave->dev); in rt715_bus_config() 485 ret = rt715_clock_config(&slave->dev); in rt715_bus_config() 487 dev_err(&slave->dev, "Invalid clk config"); in rt715_bus_config() [all …]
|
D | rt700.c | 191 dev_dbg(&rt700->slave->dev, in rt700_jack_detect_handler() 193 dev_dbg(&rt700->slave->dev, in rt700_jack_detect_handler() 248 dev_dbg(&rt700->slave->dev, in rt700_btn_check_handler() 293 dev_dbg(&rt700->slave->dev, "in %s enable\n", __func__); in rt700_jack_init() 305 dev_dbg(&rt700->slave->dev, "in %s disable\n", __func__); in rt700_jack_init() 920 if (!rt700->slave) in rt700_pcm_hw_params() 953 retval = sdw_stream_add_slave(rt700->slave, &stream_config, in rt700_pcm_hw_params() 1004 if (!rt700->slave) in rt700_pcm_hw_free() 1007 sdw_stream_remove_slave(rt700->slave, stream->sdw_stream); in rt700_pcm_hw_free() 1110 struct regmap *regmap, struct sdw_slave *slave) in rt700_init() argument [all …]
|
D | rt711-sdca.c | 37 dev_err(&rt711->slave->dev, in rt711_sdca_index_write() 53 dev_err(&rt711->slave->dev, in rt711_sdca_index_read() 278 dev_dbg(&rt711->slave->dev, in rt711_sdca_headset_detect() 314 dev_dbg(&rt711->slave->dev, in rt711_sdca_jack_detect_handler() 316 dev_dbg(&rt711->slave->dev, in rt711_sdca_jack_detect_handler() 318 dev_dbg(&rt711->slave->dev, in rt711_sdca_jack_detect_handler() 407 dev_dbg(&rt711->slave->dev, "%s, btn_type=0x%x\n", __func__, btn_type); in rt711_sdca_btn_check_handler() 471 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK1, SDW_SCP_SDCA_INTMASK_SDCA_0); in rt711_sdca_jack_init() 473 sdw_write_no_pm(rt711->slave, SDW_SCP_SDCA_INTMASK2, SDW_SCP_SDCA_INTMASK_SDCA_8); in rt711_sdca_jack_init() 474 dev_dbg(&rt711->slave->dev, "in %s enable\n", __func__); in rt711_sdca_jack_init() [all …]
|
D | rt711.c | 271 dev_dbg(&rt711->slave->dev, in rt711_jack_detect_handler() 273 dev_dbg(&rt711->slave->dev, in rt711_jack_detect_handler() 329 dev_dbg(&rt711->slave->dev, in rt711_btn_check_handler() 427 dev_dbg(&rt711->slave->dev, "in %s enable\n", __func__); in rt711_jack_init() 439 dev_dbg(&rt711->slave->dev, "in %s disable\n", __func__); in rt711_jack_init() 932 rt711_parse_dt(rt711, &rt711->slave->dev); in rt711_probe() 1003 if (!rt711->slave) in rt711_pcm_hw_params() 1029 retval = sdw_stream_add_slave(rt711->slave, &stream_config, in rt711_pcm_hw_params() 1081 if (!rt711->slave) in rt711_pcm_hw_free() 1084 sdw_stream_remove_slave(rt711->slave, stream->sdw_stream); in rt711_pcm_hw_free() [all …]
|
D | rt715-sdca.c | 42 dev_err(&rt715->slave->dev, in rt715_sdca_index_write() 60 dev_err(&rt715->slave->dev, in rt715_sdca_index_read() 822 if (!rt715->slave) in rt715_sdca_pcm_hw_params() 852 retval = sdw_stream_add_slave(rt715->slave, &stream_config, in rt715_sdca_pcm_hw_params() 927 if (!rt715->slave) in rt715_sdca_pcm_hw_free() 930 sdw_stream_remove_slave(rt715->slave, stream->sdw_stream); in rt715_sdca_pcm_hw_free() 981 struct regmap *regmap, struct sdw_slave *slave) in rt715_sdca_init() argument 991 rt715->slave = slave; in rt715_sdca_init() 994 rt715->hw_sdw_ver = slave->id.sdw_version; in rt715_sdca_init() 1010 int rt715_sdca_io_init(struct device *dev, struct sdw_slave *slave) in rt715_sdca_io_init() argument [all …]
|
D | rt715-sdca.h | 22 struct sdw_slave *slave; member 133 int rt715_sdca_io_init(struct device *dev, struct sdw_slave *slave); 135 struct regmap *regmap, struct sdw_slave *slave);
|
D | rt715.c | 803 if (!rt715->slave) in rt715_pcm_hw_params() 831 retval = sdw_stream_add_slave(rt715->slave, &stream_config, in rt715_pcm_hw_params() 898 if (!rt715->slave) in rt715_pcm_hw_free() 901 sdw_stream_remove_slave(rt715->slave, stream->sdw_stream); in rt715_pcm_hw_free() 988 struct regmap *regmap, struct sdw_slave *slave) in rt715_init() argument 998 rt715->slave = slave; in rt715_init() 1017 int rt715_io_init(struct device *dev, struct sdw_slave *slave) in rt715_io_init() argument 1029 pm_runtime_set_autosuspend_delay(&slave->dev, 3000); in rt715_io_init() 1030 pm_runtime_use_autosuspend(&slave->dev); in rt715_io_init() 1033 pm_runtime_set_active(&slave->dev); in rt715_io_init() [all …]
|
D | wcd938x-sdw.c | 161 static int wcd9380_update_status(struct sdw_slave *slave, in wcd9380_update_status() argument 167 static int wcd9380_bus_config(struct sdw_slave *slave, in wcd9380_bus_config() argument 170 sdw_write(slave, SWRS_SCP_HOST_CLK_DIV2_CTL_BANK(params->next_bank), 0x01); in wcd9380_bus_config() 175 static int wcd9380_interrupt_callback(struct sdw_slave *slave, in wcd9380_interrupt_callback() argument 178 struct wcd938x_sdw_priv *wcd = dev_get_drvdata(&slave->dev); in wcd9380_interrupt_callback() 180 struct regmap *regmap = dev_get_regmap(&slave->dev, NULL); in wcd9380_interrupt_callback()
|
D | rt711-sdca.h | 21 struct sdw_slave *slave; member 237 int rt711_sdca_io_init(struct device *dev, struct sdw_slave *slave); 239 struct regmap *mbq_regmap, struct sdw_slave *slave);
|
D | rt700.h | 17 struct sdw_slave *slave; member 170 int rt700_io_init(struct device *dev, struct sdw_slave *slave); 172 struct regmap *regmap, struct sdw_slave *slave);
|
D | wsa881x.c | 674 struct sdw_slave *slave; member 985 return sdw_stream_add_slave(wsa881x->slave, &wsa881x->sconfig, in wsa881x_hw_params() 995 sdw_stream_remove_slave(wsa881x->slave, wsa881x->sruntime); in wsa881x_hw_free() 1059 static int wsa881x_update_status(struct sdw_slave *slave, in wsa881x_update_status() argument 1062 struct wsa881x_priv *wsa881x = dev_get_drvdata(&slave->dev); in wsa881x_update_status() 1064 if (status == SDW_SLAVE_ATTACHED && slave->dev_num > 0) in wsa881x_update_status() 1070 static int wsa881x_port_prep(struct sdw_slave *slave, in wsa881x_port_prep() argument 1074 struct wsa881x_priv *wsa881x = dev_get_drvdata(&slave->dev); in wsa881x_port_prep() 1084 static int wsa881x_bus_config(struct sdw_slave *slave, in wsa881x_bus_config() argument 1087 sdw_write(slave, SWRS_SCP_HOST_CLK_DIV2_CTL_BANK(params->next_bank), in wsa881x_bus_config() [all …]
|
D | rt715.h | 17 struct sdw_slave *slave; member 217 int rt715_io_init(struct device *dev, struct sdw_slave *slave); 219 struct regmap *regmap, struct sdw_slave *slave);
|
D | rt711.h | 17 struct sdw_slave *slave; member 250 int rt711_io_init(struct device *dev, struct sdw_slave *slave); 252 struct regmap *regmap, struct sdw_slave *slave);
|
/sound/core/ |
D | timer.c | 218 struct snd_timer_instance *slave) in check_matching_master_slave() argument 220 if (slave->slave_class != master->slave_class || in check_matching_master_slave() 221 slave->slave_id != master->slave_id) in check_matching_master_slave() 225 list_move_tail(&slave->open_list, &master->slave_list_head); in check_matching_master_slave() 229 slave->master = master; in check_matching_master_slave() 230 slave->timer = master->timer; in check_matching_master_slave() 231 if (slave->flags & SNDRV_TIMER_IFLG_RUNNING) in check_matching_master_slave() 232 list_add_tail(&slave->active_list, &master->slave_active_head); in check_matching_master_slave() 244 static int snd_timer_check_slave(struct snd_timer_instance *slave) in snd_timer_check_slave() argument 253 err = check_matching_master_slave(master, slave); in snd_timer_check_slave() [all …]
|
/sound/i2c/ |
D | i2c.c | 36 struct snd_i2c_bus *slave; in snd_i2c_bus_free() local 49 slave = snd_i2c_slave_bus(bus->buses.next); in snd_i2c_bus_free() 50 snd_device_free(bus->card, slave); in snd_i2c_bus_free()
|
/sound/soc/spear/ |
D | spear_pcm.h | 11 bool (*filter)(struct dma_chan *chan, void *slave));
|