Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275978
b: refs/heads/master
c: a298785
h: refs/heads/master
v: v3
  • Loading branch information
Tim Blechmann authored and Takashi Iwai committed Nov 22, 2011
1 parent 8bf349b commit 6dfab44
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: afd00d7235c1989d06d75cf8ac3d7722fcf2f394
refs/heads/master: a29878553a9a7b4c06f93c7e383527cf014d4ceb
16 changes: 12 additions & 4 deletions trunk/sound/pci/lx6464es/lx_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,12 @@ unsigned long lx_dsp_reg_read(struct lx6464es *chip, int port)
static void lx_dsp_reg_readbuf(struct lx6464es *chip, int port, u32 *data,
u32 len)
{
void __iomem *address = lx_dsp_register(chip, port);
memcpy_fromio(data, address, len*sizeof(u32));
u32 __iomem *address = lx_dsp_register(chip, port);
int i;

/* we cannot use memcpy_fromio */
for (i = 0; i != len; ++i)
data[i] = ioread32(address + i);
}


Expand All @@ -95,8 +99,12 @@ void lx_dsp_reg_write(struct lx6464es *chip, int port, unsigned data)
static void lx_dsp_reg_writebuf(struct lx6464es *chip, int port,
const u32 *data, u32 len)
{
void __iomem *address = lx_dsp_register(chip, port);
memcpy_toio(address, data, len*sizeof(u32));
u32 __iomem *address = lx_dsp_register(chip, port);
int i;

/* we cannot use memcpy_to */
for (i = 0; i != len; ++i)
iowrite32(data[i], address + i);
}


Expand Down

0 comments on commit 6dfab44

Please sign in to comment.