Deleted Added
full compact
41c41
< * $FreeBSD: head/sys/dev/sound/pci/es137x.c 59323 2000-04-17 16:57:12Z cg $
---
> * $FreeBSD: head/sys/dev/sound/pci/es137x.c 60958 2000-05-26 21:15:47Z cg $
368c368
< unsigned cnt = ch->buffer->dl / ch->buffer->sample_size - 1;
---
> unsigned ss, cnt;
370c370,377
< if (go == PCMTRIG_EMLDMAWR) return 0;
---
> if (go == PCMTRIG_EMLDMAWR || go == PCMTRIG_EMLDMARD)
> return 0;
>
> ss = 1;
> ss <<= (ch->fmt & AFMT_STEREO)? 1 : 0;
> ss <<= (ch->fmt & AFMT_16BIT)? 1 : 0;
> cnt = ch->buffer->dl / ss - 1;
>