[media] coda: move parameter buffer in together with context buffer allocation
The parameter buffer is a per-context buffer, so we can allocate and free it together with the other context buffers during REQBUFS. Since this was the last context buffer allocated in coda-common.c, we can now move coda_alloc_context_buf into coda-bit.c. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

orang tua
ad532d37b2
melakukan
650b939ecd
@@ -249,13 +249,6 @@ int coda_alloc_aux_buf(struct coda_dev *dev, struct coda_aux_buf *buf,
|
||||
size_t size, const char *name, struct dentry *parent);
|
||||
void coda_free_aux_buf(struct coda_dev *dev, struct coda_aux_buf *buf);
|
||||
|
||||
static inline int coda_alloc_context_buf(struct coda_ctx *ctx,
|
||||
struct coda_aux_buf *buf, size_t size,
|
||||
const char *name)
|
||||
{
|
||||
return coda_alloc_aux_buf(ctx->dev, buf, size, name, ctx->debugfs_entry);
|
||||
}
|
||||
|
||||
int coda_encoder_queue_init(void *priv, struct vb2_queue *src_vq,
|
||||
struct vb2_queue *dst_vq);
|
||||
int coda_decoder_queue_init(void *priv, struct vb2_queue *src_vq,
|
||||
|
Reference in New Issue
Block a user