Lines Matching refs:codec
18 int snd_soc_cache_init(struct snd_soc_codec *codec) in snd_soc_cache_init() argument
20 const struct snd_soc_codec_driver *codec_drv = codec->driver; in snd_soc_cache_init()
28 dev_dbg(codec->dev, "ASoC: Initializing cache for %s codec\n", in snd_soc_cache_init()
29 codec->component.name); in snd_soc_cache_init()
32 codec->reg_cache = kmemdup(codec_drv->reg_cache_default, in snd_soc_cache_init()
35 codec->reg_cache = kzalloc(reg_size, GFP_KERNEL); in snd_soc_cache_init()
36 if (!codec->reg_cache) in snd_soc_cache_init()
46 int snd_soc_cache_exit(struct snd_soc_codec *codec) in snd_soc_cache_exit() argument
48 dev_dbg(codec->dev, "ASoC: Destroying cache for %s codec\n", in snd_soc_cache_exit()
49 codec->component.name); in snd_soc_cache_exit()
50 kfree(codec->reg_cache); in snd_soc_cache_exit()
51 codec->reg_cache = NULL; in snd_soc_cache_exit()