summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sound/rcar_snd.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/sound/rcar_snd.h b/include/sound/rcar_snd.h
index 99d8dd029906..33233edd1664 100644
--- a/include/sound/rcar_snd.h
+++ b/include/sound/rcar_snd.h
@@ -28,15 +28,24 @@
/*
* flags
*
- * 0xA0000000
+ * 0xAB000000
*
* A : clock sharing settings
+ * B : SSI direction
*/
#define RSND_SSI_CLK_PIN_SHARE (1 << 31)
#define RSND_SSI_CLK_FROM_ADG (1 << 30) /* clock parent is master */
#define RSND_SSI_SYNC (1 << 29) /* SSI34_sync etc */
+#define RSND_SSI_PLAY (1 << 24)
+
+#define RSND_SSI_SET(_dai_id, _pio_irq, _flags) \
+{ .dai_id = _dai_id, .pio_irq = _pio_irq, .flags = _flags }
+#define RSND_SSI_UNUSED \
+{ .dai_id = -1, .pio_irq = -1, .flags = 0 }
+
struct rsnd_ssi_platform_info {
+ int dai_id;
int pio_irq;
u32 flags;
};
@@ -45,11 +54,6 @@ struct rsnd_scu_platform_info {
u32 flags;
};
-struct rsnd_dai_platform_info {
- int ssi_id_playback;
- int ssi_id_capture;
-};
-
/*
* flags
*
@@ -66,8 +70,6 @@ struct rcar_snd_info {
int ssi_info_nr;
struct rsnd_scu_platform_info *scu_info;
int scu_info_nr;
- struct rsnd_dai_platform_info *dai_info;
- int dai_info_nr;
int (*start)(int id);
int (*stop)(int id);
};