|
Lines 587-598
Link Here
|
| 587 |
case SNDCTL_DSP_GETODELAY: |
587 |
case SNDCTL_DSP_GETODELAY: |
| 588 |
if (wrch) { |
588 |
if (wrch) { |
| 589 |
snd_dbuf *b = &wrch->buffer; |
589 |
snd_dbuf *b = &wrch->buffer; |
|
|
590 |
snd_dbuf *bs = &wrch->buffer2nd; |
| 590 |
if (b->dl) { |
591 |
if (b->dl) { |
| 591 |
chn_checkunderflow(wrch); |
592 |
chn_checkunderflow(wrch); |
| 592 |
if (!(wrch->flags & CHN_F_MAPPED)) |
593 |
if (!(wrch->flags & CHN_F_MAPPED)) |
| 593 |
while (chn_wrfeed(wrch) > 0); |
594 |
while (chn_wrfeed(wrch) > 0); |
| 594 |
} |
595 |
} |
| 595 |
*arg = b->total; |
596 |
*((int *)arg) = bs->rl; |
| 596 |
} else |
597 |
} else |
| 597 |
ret = EINVAL; |
598 |
ret = EINVAL; |
| 598 |
break; |
599 |
break; |