head	1.4;
access;
symbols
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.36
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.34
	perseant-exfatfs-base:1.4
	netbsd-8-3-RELEASE:1.1
	netbsd-9-4-RELEASE:1.4
	netbsd-10-0-RELEASE:1.4
	netbsd-10-0-RC6:1.4
	netbsd-10-0-RC5:1.4
	netbsd-10-0-RC4:1.4
	netbsd-10-0-RC3:1.4
	netbsd-10-0-RC2:1.4
	thorpej-ifq:1.4.0.32
	thorpej-ifq-base:1.4
	thorpej-altq-separation:1.4.0.30
	thorpej-altq-separation-base:1.4
	netbsd-10-0-RC1:1.4
	netbsd-10:1.4.0.28
	netbsd-10-base:1.4
	bouyer-sunxi-drm:1.4.0.26
	bouyer-sunxi-drm-base:1.4
	netbsd-9-3-RELEASE:1.4
	thorpej-i2c-spi-conf2:1.4.0.24
	thorpej-i2c-spi-conf2-base:1.4
	thorpej-futex2:1.4.0.22
	thorpej-futex2-base:1.4
	thorpej-cfargs2:1.4.0.20
	thorpej-cfargs2-base:1.4
	cjep_sun2x-base1:1.4
	cjep_sun2x:1.4.0.18
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	netbsd-9-2-RELEASE:1.4
	cjep_staticlib_x:1.4.0.16
	cjep_staticlib_x-base:1.4
	thorpej-i2c-spi-conf:1.4.0.14
	thorpej-i2c-spi-conf-base:1.4
	thorpej-cfargs:1.4.0.12
	thorpej-cfargs-base:1.4
	thorpej-futex:1.4.0.10
	thorpej-futex-base:1.4
	netbsd-9-1-RELEASE:1.4
	bouyer-xenpvh-base2:1.4
	phil-wifi-20200421:1.4
	bouyer-xenpvh-base1:1.4
	phil-wifi-20200411:1.4
	bouyer-xenpvh:1.4.0.8
	bouyer-xenpvh-base:1.4
	is-mlppp:1.4.0.6
	is-mlppp-base:1.4
	phil-wifi-20200406:1.4
	netbsd-8-2-RELEASE:1.1
	ad-namecache-base3:1.4
	netbsd-9-0-RELEASE:1.4
	netbsd-9-0-RC2:1.4
	ad-namecache-base2:1.4
	ad-namecache-base1:1.4
	ad-namecache:1.4.0.4
	ad-namecache-base:1.4
	netbsd-9-0-RC1:1.4
	phil-wifi-20191119:1.4
	netbsd-9:1.4.0.2
	netbsd-9-base:1.4
	phil-wifi-20190609:1.4
	netbsd-8-1-RELEASE:1.1
	netbsd-8-1-RC1:1.1
	isaki-audio2:1.3.0.2
	isaki-audio2-base:1.3
	pgoyette-compat-merge-20190127:1.2
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	pgoyette-compat-0728:1.2
	netbsd-8-0-RELEASE:1.1
	phil-wifi:1.2.0.8
	phil-wifi-base:1.2
	pgoyette-compat-0625:1.2
	netbsd-8-0-RC2:1.1
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.1
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	pgoyette-compat:1.2.0.6
	pgoyette-compat-base:1.2
	tls-maxphys:1.2.0.4
	tls-maxphys-base-20171202:1.2
	matt-nb8-mediatek:1.1.0.6
	matt-nb8-mediatek-base:1.1
	nick-nhusb:1.2.0.2
	nick-nhusb-base-20170825:1.2
	perseant-stdc-iso10646:1.1.0.4
	perseant-stdc-iso10646-base:1.1
	netbsd-8:1.1.0.2
	netbsd-8-base:1.1;
locks; strict;
comment	@# @;


1.4
date	2019.05.08.13.40.19;	author isaki;	state Exp;
branches;
next	1.3;
commitid	LEGDdtzAItkeapmB;

1.3
date	2019.02.17.04.05.43;	author rin;	state Exp;
branches
	1.3.2.1;
next	1.2;
commitid	viEUadQYccaOx4cB;

1.2
date	2017.07.30.00.53.57;	author nat;	state Exp;
branches
	1.2.2.1
	1.2.4.1
	1.2.8.1;
next	1.1;
commitid	zs76HQiFbm5zJb1A;

1.1
date	2017.06.01.09.58.27;	author pgoyette;	state Exp;
branches;
next	;
commitid	VwXjrHW1guiaEETz;

1.3.2.1
date	2019.05.07.15.01.50;	author isaki;	state Exp;
branches;
next	;
commitid	K3ORAICznIVcFhmB;

1.2.2.1
date	2017.07.30.00.53.57;	author skrll;	state dead;
branches;
next	1.2.2.2;
commitid	UQQpnjvcNkUZn05A;

1.2.2.2
date	2017.08.28.17.53.09;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;

1.2.4.1
date	2017.07.30.00.53.57;	author jdolecek;	state dead;
branches;
next	1.2.4.2;
commitid	XcIYRZTAh1LmerhA;

1.2.4.2
date	2017.12.03.11.38.49;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.2.8.1
date	2019.06.10.22.09.11;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;


desc
@@


1.4
log
@Merge isaki-audio2 branch, the overhaul of audio subsystem.
- Interrupt-oriented system rather than thread-oriented.
- Improve stability, quality and performance.
- Split playback and record cleanly.  Improve halfduplex support.
- Many bugs are fixed including deadlocks, resource leaks, abuses, etc.
- Simplify audio filter mechanism.  The encoding/channels/frequency
  conversions are completely handled in the upper layer.  So the hard-
  ware driver only converts its hardware encoding (if necessary).
- audio_hw_if changes:
  - Obsoletes query_encoding and add query_format instead.
  - Obsoletes set_params and add set_format instead.
  - Remove drain, setfd, mappage.
  - The call sequences are changed.
- ioctl AUDIO_GETFD/SETFD, AUDIO_GETCHAN/SETCHAN are obsoleted.
- ioctl AUDIO_{QUERY,GET,SET}FORMAT are introduced.
- cleanup config attributes: au*conv and mulaw.
- All hardware drivers should follow it (I've done as much as possible).

Some file paths are changed:
- dev/audio.c         -> dev/audio/audio.c (rewritten)
- dev/audiovar.h      -> dev/audio/audiovar.h
- dev/audio_dai.h     -> dev/audio/audio_dai.h
- dev/audio_if.h      -> dev/audio/audio_if.h
- dev/audiobell.c     -> dev/audio/audiobell.c
- dev/audiobellvar.h  -> dev/audio/audiobellvar.h
- dev/mulaw.[ch]      -> dev/audio/mulaw.[ch] + dev/audio/alaw.c
@
text
@#	$NetBSD: Makefile,v 1.3 2019/02/17 04:05:43 rin Exp $

.include "../Makefile.inc"

.PATH:	${S}/dev/audio

KMOD=	audio
IOCONF=	audio.ioconf
SRCS=	audio.c \
	alaw.c \
	linear.c \
	mulaw.c

CPPFLAGS+=	-DNAUDIO=1

WARNS=	3

.include <bsd.kmodule.mk>
@


1.3
log
@Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2017/07/30 00:53:57 nat Exp $
d5 1
a5 1
.PATH:	${S}/dev
d10 2
a11 3
	auconv.c \
	aurateconv.c \
	auvolconv.c \
d14 1
a14 1
CPPFLAGS+=	-DNAUDIO=1 -DNAURATECONV=1 -DNMULAW=1
@


1.3.2.1
log
@Fix paths and flags.
- aurateconv is gone.  mulaw is a part of audio inseparably.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2019/02/17 04:05:43 rin Exp $
d5 1
a5 1
.PATH:	${S}/dev/audio
d10 3
a12 2
	alaw.c \
	linear.c \
d15 1
a15 1
CPPFLAGS+=	-DNAUDIO=1
@


1.2
log
@Audio now compiles with WARNS=5, so there is no need to specify WARNS=3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2017/06/01 09:58:27 pgoyette Exp $
d17 2
@


1.2.8.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2019/05/08 13:40:19 isaki Exp $
d5 1
a5 1
.PATH:	${S}/dev/audio
d10 3
a12 2
	alaw.c \
	linear.c \
d15 1
a15 3
CPPFLAGS+=	-DNAUDIO=1

WARNS=	3
@


1.2.4.1
log
@file Makefile was added on branch tls-maxphys on 2017-12-03 11:38:49 +0000
@
text
@d1 17
@


1.2.4.2
log
@update from HEAD
@
text
@a0 17
#	$NetBSD$

.include "../Makefile.inc"

.PATH:	${S}/dev

KMOD=	audio
IOCONF=	audio.ioconf
SRCS=	audio.c \
	auconv.c \
	aurateconv.c \
	auvolconv.c \
	mulaw.c

CPPFLAGS+=	-DNAUDIO=1 -DNAURATECONV=1 -DNMULAW=1

.include <bsd.kmodule.mk>
@


1.2.2.1
log
@file Makefile was added on branch nick-nhusb on 2017-08-28 17:53:09 +0000
@
text
@d1 17
@


1.2.2.2
log
@Sync with HEAD
@
text
@a0 17
#	$NetBSD: Makefile,v 1.2 2017/07/30 00:53:57 nat Exp $

.include "../Makefile.inc"

.PATH:	${S}/dev

KMOD=	audio
IOCONF=	audio.ioconf
SRCS=	audio.c \
	auconv.c \
	aurateconv.c \
	auvolconv.c \
	mulaw.c

CPPFLAGS+=	-DNAUDIO=1 -DNAURATECONV=1 -DNMULAW=1

.include <bsd.kmodule.mk>
@


1.1
log
@Add the modules for audio, midi, and sequencer
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2011/07/09 15:08:54 jmcneill Exp $
a16 5
# Rather than our usual WARNS=4, we need to use 3, since there are a
# lot of signed-vs-unsigned compares

WARNS=	3

@

