summaryrefslogtreecommitdiff
path: root/linux/sound/pci
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 23:56:33 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 23:56:33 -0200
commitd509e840df58b01c75b9fb7cb8c0be9f7ab023ce (patch)
treec2907f50634857fd993dd69d77399420185018ac /linux/sound/pci
parent58f52d61d57fe5a5ed3cf4542663f6641e53eff7 (diff)
parent71860dbdbc561e6e67353843a30183bcaa08b94f (diff)
downloadmediapointer-dvb-s2-d509e840df58b01c75b9fb7cb8c0be9f7ab023ce.tar.gz
mediapointer-dvb-s2-d509e840df58b01c75b9fb7cb8c0be9f7ab023ce.tar.bz2
merge: http://linuxtv.org/hg/~tmerle/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/sound/pci')
-rw-r--r--linux/sound/pci/bt87x.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/sound/pci/bt87x.c b/linux/sound/pci/bt87x.c
index c33300f22..6c70b246d 100644
--- a/linux/sound/pci/bt87x.c
+++ b/linux/sound/pci/bt87x.c
@@ -242,7 +242,6 @@ static inline void snd_bt87x_writel(struct snd_bt87x *chip, u32 reg, u32 value)
static int snd_bt87x_create_risc(struct snd_bt87x *chip, struct snd_pcm_substream *substream,
unsigned int periods, unsigned int period_bytes)
{
- struct snd_sg_buf *sgbuf = snd_pcm_substream_sgbuf(substream);
unsigned int i, offset;
u32 *risc;
@@ -261,6 +260,7 @@ static int snd_bt87x_create_risc(struct snd_bt87x *chip, struct snd_pcm_substrea
rest = period_bytes;
do {
u32 cmd, len;
+ unsigned int addr;
len = PAGE_SIZE - (offset % PAGE_SIZE);
if (len > rest)
@@ -275,7 +275,8 @@ static int snd_bt87x_create_risc(struct snd_bt87x *chip, struct snd_pcm_substrea
if (len == rest)
cmd |= RISC_EOL | RISC_IRQ;
*risc++ = cpu_to_le32(cmd);
- *risc++ = cpu_to_le32((u32)snd_pcm_sgbuf_get_addr(sgbuf, offset));
+ addr = snd_pcm_sgbuf_get_addr(substream, offset);
+ *risc++ = cpu_to_le32(addr);
offset += len;
rest -= len;
} while (rest > 0);