Changeset 4819:bfe88a001985 in roaraudio for roard/driver_oss.c


Ignore:
Timestamp:
03/28/11 12:41:15 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

avoid warning when record stream is not yet fully up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_oss.c

    r4815 r4819  
    535535 
    536536ssize_t driver_oss_write   (struct roar_vio_calls * vio, void *buf, size_t count) { 
     537 ROAR_DBG("driver_oss_write(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned int)count); 
     538 
    537539 if ( _get(vio,fh) == -1 ) 
    538540  return -1; 
     
    548550 
    549551ssize_t driver_oss_read     (struct roar_vio_calls * vio, void *buf, size_t count) { 
     552 ROAR_DBG("driver_oss_read(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned int)count); 
     553 
    550554 if ( _get(vio,fh) == -1 ) 
    551555  return -1; 
     
    553557 if ( _get(vio,need_config) ) { 
    554558  if ( driver_oss_config_device(vio->inst) == -1 ) { 
     559   ROAR_DBG("driver_oss_read(vio=%p, buf=%p, count=%llu) = -1", vio, buf, (long long unsigned int)count); 
    555560   return -1; 
    556561  } 
    557562 } 
    558563 
     564 ROAR_DBG("driver_oss_read(vio=%p, buf=%p, count=%llu) = ?", vio, buf, (long long unsigned int)count); 
     565 
    559566 return read(_get(vio,fh), buf, count); 
    560567} 
Note: See TracChangeset for help on using the changeset viewer.