/[openvortex]/alsa/alsa-kernel/core/info.c
ViewVC logotype

Diff of /alsa/alsa-kernel/core/info.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by vizard, Sun Jun 15 21:01:30 2003 UTC revision 1.4 by vizard, Mon Aug 11 00:06:37 2003 UTC
# Line 115  int snd_iprintf(snd_info_buffer_t * buff Line 115  int snd_iprintf(snd_info_buffer_t * buff
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;
# Line 278  static int snd_info_entry_open(struct in Line 278  static int snd_info_entry_open(struct in
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                  }                  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26