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 |
|
|
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 |
|
|