1981 |
if (runtime->oss.plugin_first != NULL) |
if (runtime->oss.plugin_first != NULL) |
1982 |
return -EIO; |
return -EIO; |
1983 |
|
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 3, 25) |
|
1984 |
if (area->vm_pgoff != 0) |
if (area->vm_pgoff != 0) |
|
#else |
|
|
if (area->vm_offset != 0) |
|
|
#endif |
|
1985 |
return -EINVAL; |
return -EINVAL; |
1986 |
|
|
1987 |
err = snd_pcm_mmap_data(substream, file, area); |
err = snd_pcm_mmap_data(substream, file, area); |
2144 |
|
|
2145 |
static struct file_operations snd_pcm_oss_f_reg = |
static struct file_operations snd_pcm_oss_f_reg = |
2146 |
{ |
{ |
|
#ifndef LINUX_2_2 |
|
2147 |
.owner = THIS_MODULE, |
.owner = THIS_MODULE, |
|
#endif |
|
2148 |
.read = snd_pcm_oss_read, |
.read = snd_pcm_oss_read, |
2149 |
.write = snd_pcm_oss_write, |
.write = snd_pcm_oss_write, |
2150 |
.open = snd_pcm_oss_open, |
.open = snd_pcm_oss_open, |