forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/pci/cx18/cx18-mailbox.c
....@@ -1,21 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * cx18 mailbox functions
34 *
45 * Copyright (C) 2007 Hans Verkuil <hverkuil@xs4all.nl>
56 * Copyright (C) 2008 Andy Walls <awalls@md.metrocast.net>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
167 */
178
18
-#include <stdarg.h>
9
+#include <linux/bitops.h>
1910
2011 #include "cx18-driver.h"
2112 #include "cx18-io.h"
....@@ -197,7 +188,7 @@
197188 }
198189
199190 if (dispatch) {
200
- v4l2_get_timestamp(&vb_buf->vb.ts);
191
+ vb_buf->vb.ts = ktime_get_ns();
201192 list_del(&vb_buf->vb.queue);
202193 vb_buf->vb.state = VIDEOBUF_DONE;
203194 wake_up(&vb_buf->vb.done);