From nobody Sun Oct 27 16:33:11 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 4Xc2Bb5BPQz5bC1P; Sun, 27 Oct 2024 16:33:11 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xc2Bb2Hp0z4PbJ; Sun, 27 Oct 2024 16:33:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730046791; 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=zakRV+kbWkTpPmYd1v+VacJb3hIqBBBUHqMbFvB9aEM=; b=GjoRyeMUuDuEDAiU9/KMlBAd0P+kM9BuZ6fkh/3dOLTuMHimxHMTMBGuEEm5d/aCtInVmj 6VKYm+J2iSVh+gDEBoiKBakNQ2XXU+LUqb1ntEvXhfZtEIdLXrPBJbQ5lDUAHvv5utrOyY TRypbSSzJKTk01l/YNWSUr0JNneDKzOM++Tbqzus1LMaLQLKbJ//HvvykKjuPgiYttT5OE yR32zzI/QppaRadBmrXWzrm8BCPz90aOEZLfIyZ9gHzpvRGuGAI7NwcP0GSYyBCJQXcDXp +89XdJcrLJ3Nx0kbe+0ZdtJQVlrDwRbzsS3iJ6BR8EN5mlkR1RosDwe0rKvCaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730046791; 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=zakRV+kbWkTpPmYd1v+VacJb3hIqBBBUHqMbFvB9aEM=; b=b86kDKuhlyruIAVEotUQWv4SERbbTCrbSYGx7IgbJIYQY10v8XWeton3onxnvz09tTk4tR 710ZMMFyLaw12JqgEFGm6l4QJQh/WOQCY29s1/jFt0ybUYefphffZ2UoEXd15vtTOSMp8B HqIXLkGlJkiJSkie74cmvu9kPuIBrQ/EgXSwEvh9oG+esPkCFtfVENT9+gpQs1Ljsgg7/q XifG03czrhOsKiSMMbceNeIMkbk6ZMcSPaCV2Gsf4vZrJFxbZPY6bm1gJ8dOQO0diiKCqW ZvBwUwedQwY2lNVXMRemt7Ip/RqRnhZ1yih3nZ5u2Vl2bW3MnxC1M5f6ohA40w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730046791; a=rsa-sha256; cv=none; b=X6ZkEZg/vwJRaiND6ibru18DPRJAR4YMhZpLkUqusoyCItjeuaMnbHckWKgWjWUBm7iWri 8BgFHLTQZsD/vgilvW2fgCd/Jkc7PH1nA629a/3Fs5mVeQWCdTn00bR68lenXiyBF8aguI udMtVHhyv95Ai409eUqwT583eHtR02Wy0UPFW34FBacIEVDmCYIz16MavOkpJ/ku7VmJDH u5nvvRSw4fijefCeqJhfkke2xR/mJVHOse39qZv4knlFyYiGTMC6n4AxTUjkK6NBTvEyjW s+Ob38Vaw1ZY8XGAOLM2xLpMP22GqsNfjjA3jHgMks3I+5XAktruAsZhCpAKUw== 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 4Xc2Bb1sskz12Xv; Sun, 27 Oct 2024 16:33:11 +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 49RGXB1I035406; Sun, 27 Oct 2024 16:33:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49RGXBwc035403; Sun, 27 Oct 2024 16:33:11 GMT (envelope-from git) Date: Sun, 27 Oct 2024 16:33:11 GMT Message-Id: <202410271633.49RGXBwc035403@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: 26524f063fca - stable/14 - sound: Change PCMDIR_* numbering 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: 26524f063fca6d6ab981e08911078f6e59f00f14 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=26524f063fca6d6ab981e08911078f6e59f00f14 commit 26524f063fca6d6ab981e08911078f6e59f00f14 Author: Christos Margiolis AuthorDate: 2024-10-24 11:37:17 +0000 Commit: Christos Margiolis CommitDate: 2024-10-27 16:32:17 +0000 sound: Change PCMDIR_* numbering Needed by a follow-up patch, so that channels can be sorted properly. This change does not affect the behavior of any subsystem. While here, change to an enum. Sponsored by: The FreeBSD Foundation MFC after: 2 days Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D47198 (cherry picked from commit a4111e9dc7225618fa8d2af64d866cf0b0aebd56) --- sys/dev/sound/pcm/channel.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/dev/sound/pcm/channel.h b/sys/dev/sound/pcm/channel.h index d146f51120d8..13efbef15d8b 100644 --- a/sys/dev/sound/pcm/channel.h +++ b/sys/dev/sound/pcm/channel.h @@ -335,10 +335,12 @@ extern int chn_latency_profile; extern int report_soft_formats; extern int report_soft_matrix; -#define PCMDIR_PLAY 1 -#define PCMDIR_PLAY_VIRTUAL 2 -#define PCMDIR_REC -1 -#define PCMDIR_REC_VIRTUAL -2 +enum { + PCMDIR_PLAY = 1, + PCMDIR_PLAY_VIRTUAL, + PCMDIR_REC, + PCMDIR_REC_VIRTUAL, +}; #define PCMTRIG_START 1 #define PCMTRIG_EMLDMAWR 2