From nobody Sat Jul 27 11:56:30 2024 X-Original-To: dev-commits-src-main@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 4WWNPp41Tlz5S6nP; Sat, 27 Jul 2024 11:56:30 +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 4WWNPp1mxtz437B; Sat, 27 Jul 2024 11:56:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1722081390; 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=D4PXhai4sTG8fBVZ8VB1HNsy2eB2EDY5XVx8AeMNuRw=; b=HCP3q1jV853J9hUWjZSzyHQFa8DP2pKoPf71Mg7fVjIDrEBkhbmmTQxaKAu9cuPwxghNXz DO8DkvbxpXBPjDiTrGCE4sM13o2mVo2MzVK9zzUBIGwKznoFni1xWOUx2aI8SrJwEGrwEF mRxDqU3+3jPcISDow8wN1pgEBiey+tH6CvgbwSdcOj3xDhqJd03bikCPXYcyTRY9UH/x/H 19c3+5Sv3itY8ArtC29ed8YCymCGBvu2/40gAeyKIF7Dj2IN4slV+BU8Mtt4QIFcCem2Hi 5quni3r7SxGJ2HZMV3n8lpSONoG5hjpJrBl6fhIaObPouh+wQkmShdyALL2xZA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1722081390; a=rsa-sha256; cv=none; b=XVNGeYqGd4+xXAzXyGyLX1XcPJk7NkK7s60W1LV5ZsrgTyo+yO0ycI0G85EM3Zt08J7GAC rdn/jlmVY8lOy1i8OFGo41MLB5n9uRw3V1SlLuvdjC11HDrXreDG6ZMv7UeiBoAvnQ4bdT V4QJikEZq37//2O0kllU1v5CvSdZVGc0yMKTg2Ffg3hKY+m2/g9r8LkLnyl4QQG8oMNHNY b+CtjrtDQ9UcE2dmZgeuruAHZG10njtKqtQNH9z+JzbCzWzOI8kHC0qu7ej6t07OA1Usq8 e6aJBEbtACevxwj2DmWFrWtVJY9wZB4j1iZazsNPlM4JptbLzaLexlPpv+ZyuA== 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=1722081390; 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=D4PXhai4sTG8fBVZ8VB1HNsy2eB2EDY5XVx8AeMNuRw=; b=uXhlWReIA5eY/ESiTa9fHKXtlyrNIBT57Y/wqlcLYqrV0q8olT05UaQeP56Mf/MUJEE2Eu J17xJm07hBYbRxthX1/rK5OG6ndSvQxpI1KKCWndUPgo3lbPCvS/GiTYPRzNxYXlfJYjHk Ubok7J0RbMdfSCu91zmnW7TAPclYK0GSnnMY/cz0A79pzuIpJgusnAxslMWKR93JYdfhuw 3td+Achtr926FPd5tP9WdH2z8VzrTWDFAg362T34h84JXxFft5Ve/pjsIcSn2sVT7MSt2N 4+tWCmp4yrZNvGY6Z0AjlGuz2tHng0COF3ho/oXhBhqRykdiZDij5pBO4HmxBg== 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 4WWNPp15ZDz15sQ; Sat, 27 Jul 2024 11:56:30 +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 46RBuUqf040125; Sat, 27 Jul 2024 11:56:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46RBuUCH040122; Sat, 27 Jul 2024 11:56:30 GMT (envelope-from git) Date: Sat, 27 Jul 2024 11:56:30 GMT Message-Id: <202407271156.46RBuUCH040122@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: f477d412530a - main - sound: Remove unused defines from pcm/sound.h List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: f477d412530a8cb9d8e058d00189ce127584f6f6 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=f477d412530a8cb9d8e058d00189ce127584f6f6 commit f477d412530a8cb9d8e058d00189ce127584f6f6 Author: Christos Margiolis AuthorDate: 2024-07-27 11:55:52 +0000 Commit: Christos Margiolis CommitDate: 2024-07-27 11:55:52 +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 --- 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