Lines Matching full:max98363
15 #include "max98363.h"
79 struct max98363_priv *max98363 = dev_get_drvdata(dev); in max98363_suspend() local
81 regcache_cache_only(max98363->regmap, true); in max98363_suspend()
82 regcache_mark_dirty(max98363->regmap); in max98363_suspend()
92 struct max98363_priv *max98363 = dev_get_drvdata(dev); in max98363_resume() local
95 if (!max98363->first_hw_init) in max98363_resume()
111 regcache_cache_only(max98363->regmap, false); in max98363_resume()
112 regcache_sync(max98363->regmap); in max98363_resume()
160 struct max98363_priv *max98363 = dev_get_drvdata(dev); in max98363_io_init() local
163 regcache_cache_only(max98363->regmap, false); in max98363_io_init()
164 if (max98363->first_hw_init) in max98363_io_init()
165 regcache_cache_bypass(max98363->regmap, true); in max98363_io_init()
170 if (!max98363->first_hw_init) in max98363_io_init()
176 ret = regmap_read(max98363->regmap, MAX98363_R21FF_REV_ID, ®); in max98363_io_init()
182 if (max98363->first_hw_init) { in max98363_io_init()
183 regcache_cache_bypass(max98363->regmap, false); in max98363_io_init()
184 regcache_mark_dirty(max98363->regmap); in max98363_io_init()
187 max98363->first_hw_init = true; in max98363_io_init()
188 max98363->hw_init = true; in max98363_io_init()
205 struct max98363_priv *max98363 = in max98363_sdw_dai_hw_params() local
221 if (!max98363->slave) in max98363_sdw_dai_hw_params()
242 ret = sdw_stream_add_slave(max98363->slave, &stream_config, in max98363_sdw_dai_hw_params()
258 struct max98363_priv *max98363 = in max98363_pcm_hw_free() local
263 if (!max98363->slave) in max98363_pcm_hw_free()
266 sdw_stream_remove_slave(max98363->slave, stream); in max98363_pcm_hw_free()
287 .name = "max98363-aif1",
302 struct max98363_priv *max98363 = dev_get_drvdata(&slave->dev); in max98363_update_status() local
305 max98363->hw_init = false; in max98363_update_status()
310 if (max98363->hw_init || status != SDW_SLAVE_ATTACHED) in max98363_update_status()
389 struct max98363_priv *max98363; in max98363_init() local
394 max98363 = devm_kzalloc(dev, sizeof(*max98363), GFP_KERNEL); in max98363_init()
395 if (!max98363) in max98363_init()
398 dev_set_drvdata(dev, max98363); in max98363_init()
399 max98363->regmap = regmap; in max98363_init()
400 max98363->slave = slave; in max98363_init()
402 regcache_cache_only(max98363->regmap, true); in max98363_init()
404 max98363->hw_init = false; in max98363_init()
405 max98363->first_hw_init = false; in max98363_init()
454 .name = "max98363",
464 MODULE_DESCRIPTION("ASoC MAX98363 driver SDW");