View | Details | Raw Unified | Return to bug 14278
Collapse All | Expand All

(-)dev/pcm/ac97.c (+2 lines)
Lines 29-34 Link Here
29
#include <dev/pcm/sound.h>
29
#include <dev/pcm/sound.h>
30
#include <dev/pcm/ac97.h>
30
#include <dev/pcm/ac97.h>
31
31
32
#define	abs(x)	(((x) < 0) ? -(x) : (x))
33
32
#define AC97_MUTE	0x8000
34
#define AC97_MUTE	0x8000
33
35
34
#define AC97_REG_RESET	0x00
36
#define AC97_REG_RESET	0x00
(-)dev/pcm/channel.c (-1 / +1 lines)
Lines 709-715 Link Here
709
	if (CANCHANGE(c)) {
709
	if (CANCHANGE(c)) {
710
		c->flags &= ~CHN_F_HAS_SIZE;
710
		c->flags &= ~CHN_F_HAS_SIZE;
711
		if (blksz >= 2) c->flags |= CHN_F_HAS_SIZE;
711
		if (blksz >= 2) c->flags |= CHN_F_HAS_SIZE;
712
		blksz = abs(blksz);
712
		if (blksz < 0) blksz = -blksz;
713
		if (blksz < 2) blksz = (c->buffer.sample_size * c->speed) >> 2;
713
		if (blksz < 2) blksz = (c->buffer.sample_size * c->speed) >> 2;
714
		RANGE(blksz, 1024, c->buffer.bufsize / 4);
714
		RANGE(blksz, 1024, c->buffer.bufsize / 4);
715
		blksz &= ~3;
715
		blksz &= ~3;
(-)dev/pcm/isa/mss.c (+2 lines)
Lines 30-35 Link Here
30
30
31
#include <dev/pcm/sound.h>
31
#include <dev/pcm/sound.h>
32
32
33
#define	abs(x)	(((x) < 0) ? -(x) : (x))
34
33
#if NPCM > 0
35
#if NPCM > 0
34
36
35
/* board-specific include files */
37
/* board-specific include files */

Return to bug 14278