Lines Matching refs:component
191 static int lpass_platform_pcmops_open(struct snd_soc_component *component, in lpass_platform_pcmops_open() argument
197 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_open()
204 component->id = dai_id; in lpass_platform_pcmops_open()
283 static int lpass_platform_pcmops_close(struct snd_soc_component *component, in lpass_platform_pcmops_close() argument
289 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_close()
322 struct snd_soc_component *component) in __lpass_get_dmactl_handle() argument
326 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in __lpass_get_dmactl_handle()
354 struct snd_soc_component *component) in __lpass_get_id() argument
358 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in __lpass_get_id()
389 struct snd_soc_component *component) in __lpass_get_regmap_handle() argument
393 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in __lpass_get_regmap_handle()
415 static int lpass_platform_pcmops_hw_params(struct snd_soc_component *component, in lpass_platform_pcmops_hw_params() argument
421 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_hw_params()
434 dmactl = __lpass_get_dmactl_handle(substream, component); in lpass_platform_pcmops_hw_params()
435 id = __lpass_get_id(substream, component); in lpass_platform_pcmops_hw_params()
569 static int lpass_platform_pcmops_hw_free(struct snd_soc_component *component, in lpass_platform_pcmops_hw_free() argument
574 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_hw_free()
585 map = __lpass_get_regmap_handle(substream, component); in lpass_platform_pcmops_hw_free()
596 static int lpass_platform_pcmops_prepare(struct snd_soc_component *component, in lpass_platform_pcmops_prepare() argument
602 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_prepare()
613 dmactl = __lpass_get_dmactl_handle(substream, component); in lpass_platform_pcmops_prepare()
614 id = __lpass_get_id(substream, component); in lpass_platform_pcmops_prepare()
615 map = __lpass_get_regmap_handle(substream, component); in lpass_platform_pcmops_prepare()
659 static int lpass_platform_pcmops_trigger(struct snd_soc_component *component, in lpass_platform_pcmops_trigger() argument
665 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_trigger()
677 dmactl = __lpass_get_dmactl_handle(substream, component); in lpass_platform_pcmops_trigger()
678 id = __lpass_get_id(substream, component); in lpass_platform_pcmops_trigger()
679 map = __lpass_get_regmap_handle(substream, component); in lpass_platform_pcmops_trigger()
859 struct snd_soc_component *component, in lpass_platform_pcmops_pointer() argument
864 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_pointer()
873 map = __lpass_get_regmap_handle(substream, component); in lpass_platform_pcmops_pointer()
910 static int lpass_platform_pcmops_mmap(struct snd_soc_component *component, in lpass_platform_pcmops_mmap() argument
1127 static int lpass_platform_prealloc_cdc_dma_buffer(struct snd_soc_component *component, in lpass_platform_prealloc_cdc_dma_buffer() argument
1130 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_prealloc_cdc_dma_buffer()
1168 static int lpass_platform_pcm_new(struct snd_soc_component *component, in lpass_platform_pcm_new() argument
1182 return lpass_platform_prealloc_cdc_dma_buffer(component, pcm, dai_id); in lpass_platform_pcm_new()
1185 component->dev, size); in lpass_platform_pcm_new()
1188 static int lpass_platform_pcmops_suspend(struct snd_soc_component *component) in lpass_platform_pcmops_suspend() argument
1190 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_suspend()
1192 unsigned int dai_id = component->id; in lpass_platform_pcmops_suspend()
1205 static int lpass_platform_pcmops_resume(struct snd_soc_component *component) in lpass_platform_pcmops_resume() argument
1207 struct lpass_data *drvdata = snd_soc_component_get_drvdata(component); in lpass_platform_pcmops_resume()
1209 unsigned int dai_id = component->id; in lpass_platform_pcmops_resume()
1220 static int lpass_platform_copy(struct snd_soc_component *component, in lpass_platform_copy() argument
1226 unsigned int dai_id = component->id; in lpass_platform_copy()