Home
last modified time | relevance | path

Searched refs:compr (Results 1 – 4 of 4) sorted by relevance

/sound/core/
Dcompress_offload.c83 struct snd_compr *compr; in snd_compr_open() local
98 compr = snd_lookup_minor_data(iminor(inode), in snd_compr_open()
103 if (compr == NULL) { in snd_compr_open()
108 if (dirn != compr->direction) { in snd_compr_open()
110 snd_card_unref(compr->card); in snd_compr_open()
116 snd_card_unref(compr->card); in snd_compr_open()
122 data->stream.ops = compr->ops; in snd_compr_open()
124 data->stream.private_data = compr->private_data; in snd_compr_open()
125 data->stream.device = compr; in snd_compr_open()
129 snd_card_unref(compr->card); in snd_compr_open()
[all …]
/sound/soc/codecs/
Dwm_adsp.c442 struct wm_adsp_compr *compr; member
3447 static inline int wm_adsp_compr_attached(struct wm_adsp_compr *compr) in wm_adsp_compr_attached() argument
3449 return compr->buf != NULL; in wm_adsp_compr_attached()
3452 static int wm_adsp_compr_attach(struct wm_adsp_compr *compr) in wm_adsp_compr_attach() argument
3456 if (compr->dsp->fatal_error) in wm_adsp_compr_attach()
3459 list_for_each_entry(tmp, &compr->dsp->buffer_list, list) { in wm_adsp_compr_attach()
3460 if (!tmp->name || !strcmp(compr->name, tmp->name)) { in wm_adsp_compr_attach()
3469 compr->buf = buf; in wm_adsp_compr_attach()
3470 buf->compr = compr; in wm_adsp_compr_attach()
3475 static void wm_adsp_compr_detach(struct wm_adsp_compr *compr) in wm_adsp_compr_detach() argument
[all …]
/sound/soc/uniphier/
Daio-compress.c26 struct snd_compr *compr = rtd->compr; in uniphier_aio_comprdma_new() local
27 struct device *dev = compr->card->dev; in uniphier_aio_comprdma_new()
29 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; in uniphier_aio_comprdma_new()
59 struct snd_compr *compr = rtd->compr; in uniphier_aio_comprdma_free() local
60 struct device *dev = compr->card->dev; in uniphier_aio_comprdma_free()
62 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; in uniphier_aio_comprdma_free()
335 struct device *carddev = rtd->compr->card->dev; in uniphier_aio_compr_copy()
/sound/soc/
Dsoc-compress.c755 struct snd_compr *compr; in snd_soc_new_compress() local
798 compr = devm_kzalloc(rtd->card->dev, sizeof(*compr), GFP_KERNEL); in snd_soc_new_compress()
799 if (!compr) in snd_soc_new_compress()
802 compr->ops = devm_kzalloc(rtd->card->dev, sizeof(soc_compr_ops), in snd_soc_new_compress()
804 if (!compr->ops) in snd_soc_new_compress()
827 memcpy(compr->ops, &soc_compr_dyn_ops, sizeof(soc_compr_dyn_ops)); in snd_soc_new_compress()
832 memcpy(compr->ops, &soc_compr_ops, sizeof(soc_compr_ops)); in snd_soc_new_compress()
840 compr->ops->copy = soc_compr_copy; in snd_soc_new_compress()
844 mutex_init(&compr->lock); in snd_soc_new_compress()
846 new_name, compr); in snd_soc_new_compress()
[all …]