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

Diff of /alsa/alsa-kernel/core/seq/seq_ports.c

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

revision 1.2 by vizard, Sun Jun 15 21:01:30 2003 UTC revision 1.3 by vizard, Mon Aug 11 00:06:38 2003 UTC
# Line 352  int snd_seq_set_port_info(client_port_t Line 352  int snd_seq_set_port_info(client_port_t
352          port->midi_voices = info->midi_voices;          port->midi_voices = info->midi_voices;
353          port->synth_voices = info->synth_voices;          port->synth_voices = info->synth_voices;
354    
355            /* timestamping */
356            port->timestamping = (info->flags & SNDRV_SEQ_PORT_FLG_TIMESTAMP) ? 1 : 0;
357            port->time_real = (info->flags & SNDRV_SEQ_PORT_FLG_TIME_REAL) ? 1 : 0;
358            port->time_queue = info->time_queue;
359    
360          return 0;          return 0;
361  }  }
362    
# Line 378  int snd_seq_get_port_info(client_port_t Line 383  int snd_seq_get_port_info(client_port_t
383          info->read_use = port->c_src.count;          info->read_use = port->c_src.count;
384          info->write_use = port->c_dest.count;          info->write_use = port->c_dest.count;
385                    
386            /* timestamping */
387            info->flags = 0;
388            if (port->timestamping) {
389                    info->flags |= SNDRV_SEQ_PORT_FLG_TIMESTAMP;
390                    if (port->time_real)
391                            info->flags |= SNDRV_SEQ_PORT_FLG_TIME_REAL;
392                    info->time_queue = port->time_queue;
393            }
394    
395          return 0;          return 0;
396  }  }
397    

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

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