Lines Matching refs:component
49 static int sprd_pcm_open(struct snd_soc_component *component, in sprd_pcm_open() argument
53 struct device *dev = component->dev; in sprd_pcm_open()
112 static int sprd_pcm_close(struct snd_soc_component *component, in sprd_pcm_close() argument
117 struct device *dev = component->dev; in sprd_pcm_close()
156 static int sprd_pcm_request_dma_channel(struct snd_soc_component *component, in sprd_pcm_request_dma_channel() argument
162 struct device *dev = component->dev; in sprd_pcm_request_dma_channel()
187 static int sprd_pcm_hw_params(struct snd_soc_component *component, in sprd_pcm_hw_params() argument
205 dev_warn(component->dev, "no dma parameters setting\n"); in sprd_pcm_hw_params()
212 ret = sprd_pcm_request_dma_channel(component, in sprd_pcm_hw_params()
221 sg = devm_kcalloc(component->dev, sg_num, sizeof(*sg), GFP_KERNEL); in sprd_pcm_hw_params()
268 dev_err(component->dev, in sprd_pcm_hw_params()
283 dev_err(component->dev, "failed to prepare slave sg\n"); in sprd_pcm_hw_params()
294 devm_kfree(component->dev, sg); in sprd_pcm_hw_params()
299 devm_kfree(component->dev, sg); in sprd_pcm_hw_params()
305 static int sprd_pcm_hw_free(struct snd_soc_component *component, in sprd_pcm_hw_free() argument
313 static int sprd_pcm_trigger(struct snd_soc_component *component, in sprd_pcm_trigger() argument
331 dev_err(component->dev, in sprd_pcm_trigger()
377 static snd_pcm_uframes_t sprd_pcm_pointer(struct snd_soc_component *component, in sprd_pcm_pointer() argument
396 dev_err(component->dev, in sprd_pcm_pointer()
432 static int sprd_pcm_new(struct snd_soc_component *component, in sprd_pcm_new() argument