Changeset 1120:b6c25640aa42 in roaraudio for roard/driver_esd.c


Ignore:
Timestamp:
01/16/09 17:54:08 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support to esd driver for sync and async streams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_esd.c

    r930 r1120  
    6565  return -1; 
    6666 
    67  inst->read  = driver_esd_read; 
    68  inst->write = driver_esd_write; 
     67 inst->read     = driver_esd_read; 
     68 inst->write    = driver_esd_write; 
     69 inst->nonblock = driver_esd_nonblock; 
     70 inst->sync     = driver_esd_sync; 
     71 
    6972 return driver_esd_open_sysio(&(inst->inst), device, info); 
    7073} 
     
    103106} 
    104107 
     108int driver_esd_nonblock(struct roar_vio_calls * vio, int state) { 
     109 return roar_socket_nonblock(*(int*)vio->inst, state); 
     110} 
     111 
     112int driver_esd_sync    (struct roar_vio_calls * vio) { 
     113 return fdatasync(*(int*)vio->inst); 
     114} 
    105115 
    106116#endif 
Note: See TracChangeset for help on using the changeset viewer.