Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283688
b: refs/heads/master
c: 65ff03f
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Nov 8, 2011
1 parent f932283 commit 3649a65
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 202113912ba117b5c5f36e45529921b4cca4be6a
refs/heads/master: 65ff03f4624d12ad6c19a01a0af7385eda09e4a6
15 changes: 15 additions & 0 deletions trunk/sound/soc/sh/fsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
#define REG_DIDT 0x0020
#define REG_DODT 0x0024
#define REG_MUTE_ST 0x0028
#define REG_OUT_DMAC 0x002C
#define REG_OUT_SEL 0x0030
#define REG_IN_DMAC 0x0038

/* master register */
#define MST_CLK_RST 0x0210
Expand Down Expand Up @@ -886,6 +888,8 @@ static int fsi_hw_startup(struct fsi_priv *fsi,
int is_play,
struct device *dev)
{
struct fsi_master *master = fsi_get_master(fsi);
int fsi_ver = master->core->ver;
u32 flags = fsi_get_info_flags(fsi);
u32 data = 0;

Expand Down Expand Up @@ -920,6 +924,17 @@ static int fsi_hw_startup(struct fsi_priv *fsi,
fsi_reg_mask_set(fsi, OUT_SEL, DMMD, DMMD);
}

/*
* FIXME
*
* FSI driver assumed that data package is in-back.
* FSI2 chip can select it.
*/
if (fsi_ver >= 2) {
fsi_reg_write(fsi, OUT_DMAC, (1 << 4));
fsi_reg_write(fsi, IN_DMAC, (1 << 4));
}

/* irq clear */
fsi_irq_disable(fsi, is_play);
fsi_irq_clear_status(fsi);
Expand Down

0 comments on commit 3649a65

Please sign in to comment.