Changeset 1533:c596caf4c8f8 in roaraudio


Ignore:
Timestamp:
04/12/09 01:10:01 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

done a lot cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_oss.c

    r1532 r1533  
    104104 } 
    105105 
    106  ROAR_WARN("driver_oss_config_device(self=%p): ssid=%i, autoconfig=%i", self, self->ssid, autoconfig); 
     106 ROAR_DBG("driver_oss_config_device(self=%p): ssid=%i, autoconfig=%i", self, self->ssid, autoconfig); 
    107107 
    108108#ifdef SNDCTL_DSP_CHANNELS 
     
    110110 
    111111 if ( ioctl(fh, SNDCTL_DSP_CHANNELS, &tmp) == -1 ) { 
    112   ROAR_ERR("driver_oss_open(*): can not set number of channels"); 
     112  ROAR_ERR("driver_oss_config_device(*): can not set number of channels"); 
    113113  return -1; 
    114114 } 
     
    119119   self->info.channels = tmp; 
    120120  } else { 
    121    ROAR_ERR("driver_oss_open(*): can not set requested numer of channels, OSS suggested %i channels, to use this restart with -oO channels=%i or set codec manuelly via -oO channels=num", tmp, tmp); 
     121   ROAR_ERR("driver_oss_config_device(*): can not set requested numer of channels, OSS suggested %i channels, to use this restart with -oO channels=%i or set codec manuelly via -oO channels=num", tmp, tmp); 
    122122   return -1; 
    123123  } 
     
    131131 
    132132 if ( ioctl(fh, SNDCTL_DSP_STEREO, &tmp) == -1 ) { 
    133   ROAR_ERR("driver_oss_open(*): can not set number of channels"); 
     133  ROAR_ERR("driver_oss_config_device(*): can not set number of channels"); 
    134134  return -1; 
    135135 } 
     
    194194 if ( ioctl(fh, SNDCTL_DSP_SAMPLESIZE, &tmp) == -1 ) { 
    195195#endif 
    196   ROAR_ERR("driver_oss_open(*): can not set sample format"); 
     196  ROAR_ERR("driver_oss_config_device(*): can not set sample format"); 
    197197  return -1; 
    198198 } 
     
    247247 
    248248   if ( es != NULL ) { 
    249     ROAR_ERR("driver_oss_open(*): can not set requested codec, OSS retruned another codec than requested, to use this restart with -oO %s or set codec manuelly via -oO codec=somecodec", es); 
     249    ROAR_ERR("driver_oss_config_device(*): can not set requested codec, OSS retruned another codec than requested, to use this restart with -oO %s or set codec manuelly via -oO codec=somecodec", es); 
    250250   } else { 
    251     ROAR_ERR("driver_oss_open(*): can not set requested codec, set codec manuelly via -oO codec=somecodec"); 
     251    ROAR_ERR("driver_oss_config_device(*): can not set requested codec, set codec manuelly via -oO codec=somecodec"); 
    252252   } 
    253253   return -1; 
     
    258258 
    259259 if ( ioctl(fh, SNDCTL_DSP_SPEED, &tmp) == -1 ) { 
    260   ROAR_ERR("driver_oss_open(*): can not set sample rate"); 
     260  ROAR_ERR("driver_oss_config_device(*): can not set sample rate"); 
    261261  return -1; 
    262262 } 
     
    271271 
    272272   if ( tmp < info->rate * 0.98 || tmp > info->rate * 1.02 ) { 
    273     ROAR_ERR("driver_oss_open(*): sample rate out of acceptable accuracy"); 
     273    ROAR_ERR("driver_oss_config_device(*): sample rate out of acceptable accuracy"); 
    274274    return -1; 
    275275   } 
Note: See TracChangeset for help on using the changeset viewer.