[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1414495589-8579-11-git-send-email-qais.yousef@imgtec.com>
Date: Tue, 28 Oct 2014 11:26:28 +0000
From: Qais Yousef <qais.yousef@...tec.com>
To: <linux-kernel@...r.kernel.org>
CC: Qais Yousef <qais.yousef@...tec.com>,
Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
<alsa-devel@...a-project.org>
Subject: [PATCH 10/11] drivers: char: axd: add ts interface file
ts (time stamp) interface is required when axd is to perform synchronisation.
since the time stamp hardware is SoC dependent, this file provides the
interface that can be implemented by a different driver to do the necessary
time stamp translation to perform synchronisation inside AXD
Signed-off-by: Qais Yousef <qais.yousef@...tec.com>
Cc: Arnd Bergmann <arnd@...db.de>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: <alsa-devel@...a-project.org>
---
drivers/char/axd/axd_ts_driver.h | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 drivers/char/axd/axd_ts_driver.h
diff --git a/drivers/char/axd/axd_ts_driver.h b/drivers/char/axd/axd_ts_driver.h
new file mode 100644
index 000000000000..2b99ad4a7adc
--- /dev/null
+++ b/drivers/char/axd/axd_ts_driver.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2014 Imagination Technologies Ltd.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * AXD timestamp driver interface.
+ */
+#include <linux/types.h>
+
+/*
+ * Called at the beginning of a stream to set the fixed reference point in time
+ * for the stream. This should not be implemented if the reference point should
+ * not be altered in this way, and is managed through other means.
+ */
+void __attribute__((weak)) axd_ts_reset(void);
+
+/*
+ * Adjusts the provided timestamp from the source to destination formats.
+ * @return Non-zero for failure.
+ */
+int __attribute__((weak)) axd_ts_adjust(u64 *ts);
--
2.1.0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists