Changeset 1526:9f95e23b46e0 in roaraudio


Ignore:
Timestamp:
04/12/09 00:22:24 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

set need_config flag in open_device() and do not set explicitly values which are defaults anyway...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_oss.c

    r1524 r1526  
    8181 } 
    8282 
    83  self->fh = fh; 
     83 self->fh          = fh; 
     84 self->need_config = 1; 
    8485 
    8586 return 0; 
     
    268269int driver_oss_open(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh) { 
    269270 struct driver_oss * self = NULL; 
    270  uint32_t tmp32; 
    271271 
    272272 if ( (self = malloc(sizeof(struct driver_oss))) == NULL ) { 
     
    292292  er(); 
    293293 } 
    294  
    295  self->need_config = 1; 
    296  
    297 /* 
    298  if ( driver_oss_config_device(self) == -1 ) { 
    299   ROAR_ERR("driver_oss_open(*): Can not configure audio device"); 
    300   er(); 
    301  } 
    302 */ 
    303  
    304  tmp32 = 4; 
    305  driver_oss_ctl(inst, ROAR_VIO_CTL_SET_DBLOCKS, &tmp32); 
    306294 
    307295 ROAR_DBG("driver_oss_open(*): OSS devices opened :)"); 
Note: See TracChangeset for help on using the changeset viewer.