From nobody Mon Jul 29 15:35:26 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WXj9W23kkz5RSh6; Mon, 29 Jul 2024 15:35:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WXj9V6Fh1z42QF; Mon, 29 Jul 2024 15:35:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722267326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TZzfdBzzRhTiB9Q6jPiD/d9LxfB56TrUlyLvH8+ngUE=; b=FybOTikz3SsLOYG8SdzWSJe3qxHD3CfqlWIdCq+IDPAXpyH5f6a6yO/Op9pf8xWcb1aJ36 U/9V2rYJMX57njaZVAjljWEVvr6rIdqsN9g6i7i0YhYMVvwbC5v537bDZv+8BB7vE4KKNp tjkadPgCOPzWNHn+7dNHbkFKMFBDrUMNkrvUAeCFHqOkDlodo22wVBDH+HtJWa397TRlxy 8vjF7pYIC9NgahmqFdw7tgGXw9h5wGCKgNMZwzFxfJS/Sk9YgXA6nRVrhn+qaS+OhnZFpn K3n3+nkv3YGAT2+Bk8nfrzICLPzov9AVglFPJ9cr3McvWQ3E9VfCYkB7jjC+vA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722267326; a=rsa-sha256; cv=none; b=e1FfVF7KnNKHbPQXr6MLWl/7dg6fxNIaaynuOkTPXANLWZrMC8Zk0XkIKtRPjyuTT9TvBl pfxM/ySzqUgvzqlJDPHKDPFqJ+GWJd2GnD5eUDvs1x+ecIYM3DJx2ada2EMbbuVoX2HxiH 9dai2RzK+CQLLv+F6+v0TQXO8onHwK6hDOIxfVx19cgo3He71yaYG9Jo0iEL2kEcj8VdvB FrMLSJVzJxo+fg3IC94UrLz8BYhxQFBvje8EgoA1PHnQqMJh4RfE6aK2v9AQWOcnvYi88h zT5AOvcTHNlzR62yiaZcHr4Et90Mmru9pOskgKxSeUkdbpaVqSXJ1EvLSABVrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722267326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TZzfdBzzRhTiB9Q6jPiD/d9LxfB56TrUlyLvH8+ngUE=; b=t1dia+BvDcpjBzyo9yH9gNudu7Jdxa4qn811bT9aaFXKP/QLdrFhgP2DSONeEFcAde5uyH MKB0fuKIWmWh/yGbJ8RJqhCcTT4oIEDUR/sYkM4O4ojJZtPuzLj2wJEGQ01VNnWtRUPHaJ v7Cy927HfzJbpkgNNZKqByBsQd3VYB2uHxHVL35okR7xuNx2BE/0eHd4mITUXC9Mmmsw4o BSuAsQY24uiF0bEuDKYhCOEwW4jJjZnDr+nLOhUqLFFRZaK2HFnlK5IWDueeMfvq61iloL byAO4YqCa0Y8EuiG7uSgpO61uVzL8nPUK2ao4mMjyBkjSzBECyx/2BQ3UtZqRg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WXj9V5h79zgDL; Mon, 29 Jul 2024 15:35:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46TFZQNa002674; Mon, 29 Jul 2024 15:35:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46TFZQHr002671; Mon, 29 Jul 2024 15:35:26 GMT (envelope-from git) Date: Mon, 29 Jul 2024 15:35:26 GMT Message-Id: <202407291535.46TFZQHr002671@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 9b5e6dfe18a2 - stable/14 - sound: Remove unused defines from pcm/sound.h List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 9b5e6dfe18a2f39761f16abc7a08c2c88a753c34 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=9b5e6dfe18a2f39761f16abc7a08c2c88a753c34 commit 9b5e6dfe18a2f39761f16abc7a08c2c88a753c34 Author: Christos Margiolis AuthorDate: 2024-07-27 11:55:52 +0000 Commit: Christos Margiolis CommitDate: 2024-07-29 15:34:55 +0000 sound: Remove unused defines from pcm/sound.h Sponsored by: The FreeBSD Foundation MFC after: 2 days Reviewed by: dev_submerge.ch, markj, emaste Differential Revision: https://reviews.freebsd.org/D45986 (cherry picked from commit f477d412530a8cb9d8e058d00189ce127584f6f6) --- sys/dev/sound/pcm/sound.h | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/sys/dev/sound/pcm/sound.h b/sys/dev/sound/pcm/sound.h index e4a3ba41ee7f..5f32dd767fe8 100644 --- a/sys/dev/sound/pcm/sound.h +++ b/sys/dev/sound/pcm/sound.h @@ -126,9 +126,6 @@ struct snd_mixer; #define SD_F_PRIO_RD 0x10000000 #define SD_F_PRIO_WR 0x20000000 -#define SD_F_PRIO_SET (SD_F_PRIO_RD | SD_F_PRIO_WR) -#define SD_F_DIR_SET 0x40000000 -#define SD_F_TRANSIENT 0xf0000000 #define SD_F_BITS "\020" \ "\001SIMPLEX" \ @@ -146,8 +143,7 @@ struct snd_mixer; "\015EQ_BYPASSED" \ "\016EQ_PC" \ "\035PRIO_RD" \ - "\036PRIO_WR" \ - "\037DIR_SET" + "\036PRIO_WR" #define PCM_ALIVE(x) ((x) != NULL && (x)->lock != NULL && \ !((x)->flags & SD_F_DYING)) @@ -162,7 +158,6 @@ struct snd_mixer; /* many variables should be reduced to a range. Here define a macro */ #define RANGE(var, low, high) (var) = \ (((var)<(low))? (low) : ((var)>(high))? (high) : (var)) -#define DSP_BUFFSIZE (8192) /* make figuring out what a format is easier. got AFMT_STEREO already */ #define AFMT_32BIT (AFMT_S32_LE | AFMT_S32_BE | AFMT_U32_LE | AFMT_U32_BE) @@ -242,22 +237,12 @@ enum { #define DSP_DEFAULT_SPEED 8000 -#define ON 1 -#define OFF 0 - extern int pcm_veto_load; extern int snd_unit; extern int snd_verbose; extern devclass_t pcm_devclass; extern struct unrhdr *pcmsg_unrhdr; -/* - * some macros for debugging purposes - * DDB/DEB to enable/disable debugging stuff - * BVDDB to enable debugging when bootverbose - */ -#define BVDDB(x) if (bootverbose) x - #ifndef DEB #define DEB(x) #endif