[PATCH 10/11] drivers: char: axd: add ts interface file

From: Qais Yousef
Date: Tue Oct 28 2014 - 07:29:31 EST


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@xxxxxxxxxx>
Cc: Arnd Bergmann <arnd@xxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: <alsa-devel@xxxxxxxxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/