Changeset 3148:b179bc36c36a in roaraudio


Ignore:
Timestamp:
01/15/10 14:24:59 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

got it basicly working!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaross/libroaross.c

    r3147 r3148  
    380380   break; 
    381381#endif 
    382  } 
    383  
    384  errno = ENOSYS; 
    385  return -1; 
     382  default: 
     383    errno = ENOSYS; 
     384    return -1; 
     385   break; 
     386 } 
     387 
     388 return 0; 
    386389} 
    387390 
     
    486489 _init(); 
    487490 
     491 ROAR_DBG("ioctl(__fd=%i, __request=%lu) = ?", __fd, (long unsigned int) __request); 
     492 
    488493 va_start (args, __request); 
    489494 argp = va_arg (args, void *); 
    490495 va_end (args); 
    491496 
     497 ROAR_DBG("ioctl(__fd=%i, __request=%lu): argp=%p", __fd, (long unsigned int) __request, argp); 
     498 
    492499 if ( (pointer = _get_pointer_by_fh(__fd)) != NULL ) { 
     500  ip = argp; 
     501  ROAR_DBG("ioctl(__fd=%i, __request=%lu): ip=%p", __fd, (long unsigned int) __request, ip); 
    493502  switch ((handle = pointer->handle)->type) { 
    494    ip = argp; 
    495503   case HT_STREAM: 
    496504     switch (__request) { 
     
    509517        return _ioctl_stream_format(handle, *ip); 
    510518       break; 
     519      case SNDCTL_DSP_GETFMTS: 
     520        ROAR_DBG("ioctl(__fd=%i, __request=%lu): ip=%p", __fd, (long unsigned int) __request, ip); 
     521        *ip = AFMT_S8|AFMT_S16_LE; 
     522        return 0; 
     523       break; 
    511524      default: 
     525        ROAR_DBG("ioctl(__fd=%i, __request=%lu) = -1 // errno = ENOSYS", __fd, (long unsigned int) __request); 
    512526        errno = ENOSYS; 
    513527        return -1; 
Note: See TracChangeset for help on using the changeset viewer.