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