Changeset 1533:c596caf4c8f8 in roaraudio
- Timestamp:
- 04/12/09 01:10:01 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/driver_oss.c
r1532 r1533 104 104 } 105 105 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); 107 107 108 108 #ifdef SNDCTL_DSP_CHANNELS … … 110 110 111 111 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"); 113 113 return -1; 114 114 } … … 119 119 self->info.channels = tmp; 120 120 } 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); 122 122 return -1; 123 123 } … … 131 131 132 132 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"); 134 134 return -1; 135 135 } … … 194 194 if ( ioctl(fh, SNDCTL_DSP_SAMPLESIZE, &tmp) == -1 ) { 195 195 #endif 196 ROAR_ERR("driver_oss_ open(*): can not set sample format");196 ROAR_ERR("driver_oss_config_device(*): can not set sample format"); 197 197 return -1; 198 198 } … … 247 247 248 248 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); 250 250 } 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"); 252 252 } 253 253 return -1; … … 258 258 259 259 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"); 261 261 return -1; 262 262 } … … 271 271 272 272 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"); 274 274 return -1; 275 275 }
Note: See TracChangeset
for help on using the changeset viewer.