30 lines
897 B
Diff
30 lines
897 B
Diff
"snd_pcm_lib_preallocate_pages_for_all" does not return any value anymore.
|
|
--- a/src/pcm.c
|
|
+++ b/src/pcm.c
|
|
@@ -202,7 +202,6 @@
|
|
{
|
|
struct pcm_runtime *rt = kzalloc(sizeof(struct pcm_runtime), GFP_KERNEL);
|
|
struct substream_runtime *sub_rt = chip->substream;
|
|
- int ret;
|
|
int i;
|
|
|
|
if (!rt)
|
|
@@ -216,16 +215,10 @@
|
|
sub_rt->devices[i]->private_data = chip;
|
|
snd_pcm_set_ops(sub_rt->devices[i], SNDRV_PCM_STREAM_PLAYBACK, &pcm_ops);
|
|
snd_pcm_set_ops(sub_rt->devices[i], SNDRV_PCM_STREAM_CAPTURE, &pcm_ops);
|
|
- ret = snd_pcm_lib_preallocate_pages_for_all(sub_rt->devices[i],
|
|
+ snd_pcm_lib_preallocate_pages_for_all(sub_rt->devices[i],
|
|
SNDRV_DMA_TYPE_CONTINUOUS,
|
|
snd_dma_continuous_data(GFP_KERNEL),
|
|
MAX_BUFSIZE, MAX_BUFSIZE);
|
|
- if (ret) {
|
|
- kfree(rt);
|
|
- snd_printk(KERN_ERR PREFIX
|
|
- "error preallocating pcm buffers.\n");
|
|
- return ret;
|
|
- }
|
|
}
|
|
|
|
chip->pcm = rt;
|