Home
last modified time | relevance | path

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

/sound/core/
Dcompress_offload.c92 struct snd_compr *compr; in snd_compr_open() local
107 compr = snd_lookup_minor_data(iminor(inode), in snd_compr_open()
112 if (compr == NULL) { in snd_compr_open()
117 if (dirn != compr->direction) { in snd_compr_open()
119 snd_card_unref(compr->card); in snd_compr_open()
125 snd_card_unref(compr->card); in snd_compr_open()
131 data->stream.ops = compr->ops; in snd_compr_open()
133 data->stream.private_data = compr->private_data; in snd_compr_open()
134 data->stream.device = compr; in snd_compr_open()
138 snd_card_unref(compr->card); in snd_compr_open()
[all …]
/sound/soc/codecs/
Dwm_adsp.c280 struct wm_adsp_compr *compr; member
643 if (dsp[e->shift_l].booted || dsp[e->shift_l].compr) in wm_adsp_fw_put()
2526 static inline int wm_adsp_compr_attached(struct wm_adsp_compr *compr) in wm_adsp_compr_attached() argument
2528 return compr->buf != NULL; in wm_adsp_compr_attached()
2531 static int wm_adsp_compr_attach(struct wm_adsp_compr *compr) in wm_adsp_compr_attach() argument
2537 if (!compr->dsp->buffer) in wm_adsp_compr_attach()
2540 compr->buf = compr->dsp->buffer; in wm_adsp_compr_attach()
2541 compr->buf->compr = compr; in wm_adsp_compr_attach()
2546 static void wm_adsp_compr_detach(struct wm_adsp_compr *compr) in wm_adsp_compr_detach() argument
2548 if (!compr) in wm_adsp_compr_detach()
[all …]
Dwm_adsp.h72 struct wm_adsp_compr *compr; member
/sound/soc/
Dsoc-compress.c634 struct snd_compr *compr; in snd_soc_new_compress() local
672 compr = kzalloc(sizeof(*compr), GFP_KERNEL); in snd_soc_new_compress()
673 if (compr == NULL) { in snd_soc_new_compress()
678 compr->ops = devm_kzalloc(rtd->card->dev, sizeof(soc_compr_ops), in snd_soc_new_compress()
680 if (compr->ops == NULL) { in snd_soc_new_compress()
705 memcpy(compr->ops, &soc_compr_dyn_ops, sizeof(soc_compr_dyn_ops)); in snd_soc_new_compress()
707 memcpy(compr->ops, &soc_compr_ops, sizeof(soc_compr_ops)); in snd_soc_new_compress()
711 compr->ops->copy = soc_compr_copy; in snd_soc_new_compress()
713 mutex_init(&compr->lock); in snd_soc_new_compress()
720 new_name, compr); in snd_soc_new_compress()
[all …]