summaryrefslogtreecommitdiffstats
path: root/sound/soc/meson/axg-fifo.h
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2019-04-04 13:17:29 +0200
committerMark Brown <broonie@kernel.org>2019-04-05 09:25:33 +0700
commit7c02509a8a9981fb2c16b75904423e7ab2f9f43a (patch)
treec6fddd645de95c77df9870dcd38adfa69b840d83 /sound/soc/meson/axg-fifo.h
parent679f4e6cfd45bcc14bb563576e419ac9e43fad7c (diff)
downloadtalos-op-linux-7c02509a8a9981fb2c16b75904423e7ab2f9f43a.tar.gz
talos-op-linux-7c02509a8a9981fb2c16b75904423e7ab2f9f43a.zip
ASoC: meson: axg-fifo: add g12a support
The g12a fifos gained the ability to set the initial address of the pointer within the buffer, instead of defaulting to the buffer start address. It is not very useful to us (yet) but we need to put a copy the buffer start address in the related register for the fifo to work properly on the g12a SoC family Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/meson/axg-fifo.h')
-rw-r--r--sound/soc/meson/axg-fifo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/meson/axg-fifo.h b/sound/soc/meson/axg-fifo.h
index d9f516cfbeda..5caf81241dfe 100644
--- a/sound/soc/meson/axg-fifo.h
+++ b/sound/soc/meson/axg-fifo.h
@@ -60,6 +60,7 @@ struct snd_soc_pcm_runtime;
#define FIFO_STATUS1 0x14
#define STATUS1_INT_STS(x) ((x) << 0)
#define FIFO_STATUS2 0x18
+#define FIFO_INIT_ADDR 0x24
struct axg_fifo {
struct regmap *map;
@@ -74,6 +75,7 @@ struct axg_fifo_match_data {
};
extern const struct snd_pcm_ops axg_fifo_pcm_ops;
+extern const struct snd_pcm_ops g12a_fifo_pcm_ops;
int axg_fifo_pcm_new(struct snd_soc_pcm_runtime *rtd, unsigned int type);
int axg_fifo_probe(struct platform_device *pdev);
OpenPOWER on IntegriCloud