mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-25 02:54:44 +08:00
media fixes for v4.11-rc4
-----BEGIN PGP SIGNATURE----- iQIcBAABAgAGBQJY1PVmAAoJEAhfPr2O5OEVU18P/jBZBLz6STZzi7PCKLQlKPmz CegY/C5zCxKvIRNMpEzmoB5n2dWrfR3qtXmDogoH3sgAjSIaiqYprpiOkfBx0wjb OdnrRBhcUXrqctMWj+RqJFkBMG8DfTVfE49bkkuoFG/M4vt/LRYDJuW93tC3sBit I835YgYRx64ut/XwCFoSECAOmrOSCQ8PSmpPgxzCG5SABDgxfiSIuoN/KdmQTMBc 7x3kHi/ldtDLez0S+t8hLip3ISVXCeiVrbEP20r0kOlBTDQF4BiYRWucRVY4OER3 3oHhF+P+EYf9mhB9uAkmp/PM4FBqtR344ysceMqChOA8hM49jOYjk3BAScnbfPlH kSU+2okcB9dUE1FIyYMW6GQdE4l/rmHEGbT2/sVQEosoP2EgCfYQkdxKwfLKRNvM ISv7NV9kRpNO1YddoYyC5IGjYRr/hy0kSJC/NAATNV4FeNeomD1Mrqshz+B8N/im 19EgUYfOhiDC/Efgscci35x1CKqwskiJoqCck4dWvhxPT7MWrkg/Z+Y3FdnADSwA JhhRdWliUT+sqD3hsPGkr2a7/oZRvq9s/vSIPl+eDTTXOEQgXkV9e3esfUSN0IK4 cGXaMZFgcIwaeZOJDYx8oG/e7kWK/MXPl38t0XzYv2Zwe/zcK9nDcch+G2wBZZZR 3Yc/switDyUo5LDdtUAo =xT1A -----END PGP SIGNATURE----- Merge tag 'media/v4.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media Pull media fixes from Mauro Carvalho Chehab: - dvb-usb-firmware: don't do DMA on stack - coda/imx-vdoa: platform_driver should not be const - bdisp: Clean up file handle in open() error path - exynos-gsc: Do not swap cb/cr for semi planar formats * tag 'media/v4.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: [media] exynos-gsc: Do not swap cb/cr for semi planar formats [media] bdisp: Clean up file handle in open() error path [media] coda/imx-vdoa: platform_driver should not be const [media] dvb-usb-firmware: don't do DMA on stack
This commit is contained in:
commit
e88711860d
@ -321,7 +321,7 @@ static const struct of_device_id vdoa_dt_ids[] = {
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, vdoa_dt_ids);
|
||||
|
||||
static const struct platform_driver vdoa_driver = {
|
||||
static struct platform_driver vdoa_driver = {
|
||||
.probe = vdoa_probe,
|
||||
.remove = vdoa_remove,
|
||||
.driver = {
|
||||
|
@ -861,9 +861,7 @@ int gsc_prepare_addr(struct gsc_ctx *ctx, struct vb2_buffer *vb,
|
||||
|
||||
if ((frame->fmt->pixelformat == V4L2_PIX_FMT_VYUY) ||
|
||||
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVYU) ||
|
||||
(frame->fmt->pixelformat == V4L2_PIX_FMT_NV61) ||
|
||||
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVU420) ||
|
||||
(frame->fmt->pixelformat == V4L2_PIX_FMT_NV21) ||
|
||||
(frame->fmt->pixelformat == V4L2_PIX_FMT_YVU420M))
|
||||
swap(addr->cb, addr->cr);
|
||||
|
||||
|
@ -632,8 +632,8 @@ static int bdisp_open(struct file *file)
|
||||
|
||||
error_ctrls:
|
||||
bdisp_ctrls_delete(ctx);
|
||||
error_fh:
|
||||
v4l2_fh_del(&ctx->fh);
|
||||
error_fh:
|
||||
v4l2_fh_exit(&ctx->fh);
|
||||
bdisp_hw_free_nodes(ctx);
|
||||
mem_ctx:
|
||||
|
@ -36,16 +36,18 @@ static int usb_cypress_writemem(struct usb_device *udev,u16 addr,u8 *data, u8 le
|
||||
int usb_cypress_load_firmware(struct usb_device *udev, const struct firmware *fw, int type)
|
||||
{
|
||||
struct hexline *hx;
|
||||
u8 reset;
|
||||
int ret,pos=0;
|
||||
u8 *buf;
|
||||
int ret, pos = 0;
|
||||
u16 cpu_cs_register = cypress[type].cpu_cs_register;
|
||||
|
||||
hx = kmalloc(sizeof(*hx), GFP_KERNEL);
|
||||
if (!hx)
|
||||
buf = kmalloc(sizeof(*hx), GFP_KERNEL);
|
||||
if (!buf)
|
||||
return -ENOMEM;
|
||||
hx = (struct hexline *)buf;
|
||||
|
||||
/* stop the CPU */
|
||||
reset = 1;
|
||||
if ((ret = usb_cypress_writemem(udev,cypress[type].cpu_cs_register,&reset,1)) != 1)
|
||||
buf[0] = 1;
|
||||
if (usb_cypress_writemem(udev, cpu_cs_register, buf, 1) != 1)
|
||||
err("could not stop the USB controller CPU.");
|
||||
|
||||
while ((ret = dvb_usb_get_hexline(fw, hx, &pos)) > 0) {
|
||||
@ -61,21 +63,21 @@ int usb_cypress_load_firmware(struct usb_device *udev, const struct firmware *fw
|
||||
}
|
||||
if (ret < 0) {
|
||||
err("firmware download failed at %d with %d",pos,ret);
|
||||
kfree(hx);
|
||||
kfree(buf);
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (ret == 0) {
|
||||
/* restart the CPU */
|
||||
reset = 0;
|
||||
if (ret || usb_cypress_writemem(udev,cypress[type].cpu_cs_register,&reset,1) != 1) {
|
||||
buf[0] = 0;
|
||||
if (usb_cypress_writemem(udev, cpu_cs_register, buf, 1) != 1) {
|
||||
err("could not restart the USB controller CPU.");
|
||||
ret = -EINVAL;
|
||||
}
|
||||
} else
|
||||
ret = -EIO;
|
||||
|
||||
kfree(hx);
|
||||
kfree(buf);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user