Changeset 3148:b179bc36c36a in roaraudio
- Timestamp:
- 01/15/10 14:24:59 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroaross/libroaross.c
r3147 r3148 380 380 break; 381 381 #endif 382 } 383 384 errno = ENOSYS; 385 return -1; 382 default: 383 errno = ENOSYS; 384 return -1; 385 break; 386 } 387 388 return 0; 386 389 } 387 390 … … 486 489 _init(); 487 490 491 ROAR_DBG("ioctl(__fd=%i, __request=%lu) = ?", __fd, (long unsigned int) __request); 492 488 493 va_start (args, __request); 489 494 argp = va_arg (args, void *); 490 495 va_end (args); 491 496 497 ROAR_DBG("ioctl(__fd=%i, __request=%lu): argp=%p", __fd, (long unsigned int) __request, argp); 498 492 499 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); 493 502 switch ((handle = pointer->handle)->type) { 494 ip = argp;495 503 case HT_STREAM: 496 504 switch (__request) { … … 509 517 return _ioctl_stream_format(handle, *ip); 510 518 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; 511 524 default: 525 ROAR_DBG("ioctl(__fd=%i, __request=%lu) = -1 // errno = ENOSYS", __fd, (long unsigned int) __request); 512 526 errno = ENOSYS; 513 527 return -1;
Note: See TracChangeset
for help on using the changeset viewer.