Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372021
b: refs/heads/master
c: 4daf891
h: refs/heads/master
i:
  372019: c80a68d
v: v3
  • Loading branch information
Charles Keepax authored and Takashi Iwai committed Apr 21, 2013
1 parent 8550445 commit 74deaae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 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: 5b1f79f70b0fa0b7ddb28c9ac54c57598fed6347
refs/heads/master: 4daf891cdea2eb63b51cb35a3ac12706f8c50156
2 changes: 1 addition & 1 deletion trunk/include/sound/compress_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ struct snd_compr_ops {
int (*trigger)(struct snd_compr_stream *stream, int cmd);
int (*pointer)(struct snd_compr_stream *stream,
struct snd_compr_tstamp *tstamp);
int (*copy)(struct snd_compr_stream *stream, const char __user *buf,
int (*copy)(struct snd_compr_stream *stream, char __user *buf,
size_t count);
int (*mmap)(struct snd_compr_stream *stream,
struct vm_area_struct *vma);
Expand Down
8 changes: 5 additions & 3 deletions trunk/sound/core/compress_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,12 @@ static ssize_t snd_compr_write(struct file *f, const char __user *buf,
if (avail > count)
avail = count;

if (stream->ops->copy)
retval = stream->ops->copy(stream, buf, avail);
else
if (stream->ops->copy) {
char __user* cbuf = (char __user*)buf;
retval = stream->ops->copy(stream, cbuf, avail);
} else {
retval = snd_compr_write_data(stream, buf, avail);
}
if (retval > 0)
stream->runtime->total_bytes_available += retval;

Expand Down
2 changes: 1 addition & 1 deletion trunk/sound/soc/soc-compress.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ static int soc_compr_pointer(struct snd_compr_stream *cstream,
}

static int soc_compr_copy(struct snd_compr_stream *cstream,
const char __user *buf, size_t count)
char __user *buf, size_t count)
{
struct snd_soc_pcm_runtime *rtd = cstream->private_data;
struct snd_soc_platform *platform = rtd->platform;
Expand Down

0 comments on commit 74deaae

Please sign in to comment.