Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions drivers/media/platform/raspberrypi/hevc_dec/hevc_d.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* Copyright (C) 2018 Bootlin
*/

#include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/of.h>

#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
Expand Down Expand Up @@ -217,15 +217,15 @@ static int hevc_d_probe(struct platform_device *pdev)

ret = hevc_d_hw_probe(dev);
if (ret) {
dev_err(&pdev->dev, "Failed to probe hardware - %d\n", ret);
dev_err_probe(&pdev->dev, ret, "Failed to probe hardware\n");
return ret;
}

mutex_init(&dev->dev_mutex);

ret = v4l2_device_register(&pdev->dev, &dev->v4l2_dev);
if (ret) {
dev_err(&pdev->dev, "Failed to register V4L2 device\n");
dev_err_probe(&pdev->dev, ret, "Failed to register V4L2 device\n");
return ret;
}

Expand Down Expand Up @@ -327,7 +327,7 @@ static struct platform_driver hevc_d_driver = {
.remove = hevc_d_remove,
.driver = {
.name = HEVC_D_NAME,
.of_match_table = of_match_ptr(hevc_d_dt_match),
.of_match_table = hevc_d_dt_match,
},
};
module_platform_driver(hevc_d_driver);
Expand Down
11 changes: 8 additions & 3 deletions drivers/media/platform/raspberrypi/hevc_dec/hevc_d.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,17 @@ struct hevc_d_ctx {
struct hevc_d_hwbuf pu_bufs[HEVC_D_P2BUF_COUNT];
struct hevc_d_hwbuf coeff_bufs[HEVC_D_P2BUF_COUNT];

/* Spinlock protecting aux_free */
spinlock_t aux_lock;
/* Aux structures only used in setup so no locking needed */
struct hevc_d_q_aux *aux_free;

struct hevc_d_q_aux *aux_ents[HEVC_D_AUX_ENT_COUNT];

struct hevc_d_slot {
u32 refybase;
u32 refcbase;
u32 colbase;
u32 poc;
} slots[HEVC_D_AUX_ENT_COUNT];

unsigned int colmv_stride;
unsigned int colmv_picsize;
};
Expand Down
Loading
Loading