115 |
|
|
116 |
*/ |
*/ |
117 |
|
|
118 |
struct proc_dir_entry *snd_proc_root = NULL; |
static struct proc_dir_entry *snd_proc_root = NULL; |
119 |
snd_info_entry_t *snd_seq_root = NULL; |
snd_info_entry_t *snd_seq_root = NULL; |
120 |
#ifdef CONFIG_SND_OSSEMUL |
#ifdef CONFIG_SND_OSSEMUL |
121 |
snd_info_entry_t *snd_oss_root = NULL; |
snd_info_entry_t *snd_oss_root = NULL; |
278 |
if ((entry->content == SNDRV_INFO_CONTENT_TEXT && |
if ((entry->content == SNDRV_INFO_CONTENT_TEXT && |
279 |
!entry->c.text.read_size) || |
!entry->c.text.read_size) || |
280 |
(entry->content == SNDRV_INFO_CONTENT_DATA && |
(entry->content == SNDRV_INFO_CONTENT_DATA && |
281 |
entry->c.ops->read == NULL) || |
entry->c.ops->read == NULL)) { |
|
entry->content == SNDRV_INFO_CONTENT_DEVICE) { |
|
282 |
err = -ENODEV; |
err = -ENODEV; |
283 |
goto __error; |
goto __error; |
284 |
} |
} |
285 |
} |
} |
286 |
if (mode == O_WRONLY || mode == O_RDWR) { |
if (mode == O_WRONLY || mode == O_RDWR) { |
287 |
if ((entry->content == SNDRV_INFO_CONTENT_TEXT && |
if ((entry->content == SNDRV_INFO_CONTENT_TEXT && |
288 |
!entry->c.text.write_size) || |
!entry->c.text.write_size) || |
289 |
(entry->content == SNDRV_INFO_CONTENT_DATA && |
(entry->content == SNDRV_INFO_CONTENT_DATA && |
290 |
entry->c.ops->write == NULL) || |
entry->c.ops->write == NULL)) { |
|
entry->content == SNDRV_INFO_CONTENT_DEVICE) { |
|
291 |
err = -ENODEV; |
err = -ENODEV; |
292 |
goto __error; |
goto __error; |
293 |
} |
} |