From nobody Thu Oct 24 11:37:32 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 4XZ3ms290Kz5bNVZ; Thu, 24 Oct 2024 11:37:33 +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 4XZ3mr64Kyz3xJb; Thu, 24 Oct 2024 11:37:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729769852; 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=pB2fMYjtDpEtlVsVb03Aqy7NxxTqmnTK8LQu/Sby+1Q=; b=atVTeqadPer1sEXmI/fsm3bZ+ia1Kyir1fpNTBfFuOLy+cAJId4owpc4AwUNQLPA8OKTJc 2FSpGDwPsZo/cemBIUNZyfR7bAvmRBP8Y5C+NNcs1CIkPk9W9z329EHorPy+G9+Wm8cD/r ui8dpP9qHJNHtpGBPIOT4sF4q4/TAD0VMKjHjFp0Cg8gEKXrsLuFvFLz72DQ6Wv3YQ4nFA /WCNhBpiDVA1p7QHYjmHUKMgkl8bcIiXv4jpWEYVNaDV4rWgzJ0v/evPFmSxqVvMShsv7K T0EXqfGSvbGoZ2spqWsqIrUggKroZXoKnILXOANFH11oXaM0+zAXERn+jl0g4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729769852; 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=pB2fMYjtDpEtlVsVb03Aqy7NxxTqmnTK8LQu/Sby+1Q=; b=GlKASp5qL78FRDFtIPgihmjSi7vpxfdrvxr4uahcMcuU8tM0z6nZpBDUxboOAE2qQHpohr 7anvyUuUaUrb9vRQixlDzS5F17g8dvRQKgQR3d+2becj8KwYDh8lvms0ww+ccgHnaP80Nu rO1W1qk0WFMWF8f5FbFYxzXa6uDIhfAUkGO+nYuO4TMp6/2JFw4x1tfQhh+Q8uDzmkstVx mxvX3JhVLuvUXGA6Gs3SjwbfF1bgHa/DPvetm/Igw3YEPyRPztvbCQP7PSsVNYsH4D/vVF 7NYh0eK9xsDOluzyLZUlKL57xLeH92aB5es44u88wmAta2TwUx4TnJbiy8F5Uw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729769852; a=rsa-sha256; cv=none; b=CSpg5O0XhLyGjkRsOYPOpNEcr4axzKwDWoVPkVAgsezw4D0cWqCSL1XJObXAzx4P5PlRFi Qb2h9+9NJcvk8i86L45d06FqN61uzru60jClUO2hRujiddfeSnR/EyB3dh41Z0EuJzsRSd WCDQhfGXVlcIYaOIfW2TOty6usmydVGXUwl479L2S6s//JXbQ1g0zllSn8iUX4rshSgXsb rnrw3/Mqg5b4wiODQo3cVCFSma2aGOJ60M84Zy4mq71E7p0DpI+4y50w7ShkXqsyQSgOI9 7e71RxqMXArq0KuKhEdoOf1WhmKKiB0u6g/oKaZmHXll7Om1957e4NkOyxtJmg== 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 4XZ3mr4cvhzh48; Thu, 24 Oct 2024 11:37:32 +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 49OBbWA5071677; Thu, 24 Oct 2024 11:37:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49OBbWup071674; Thu, 24 Oct 2024 11:37:32 GMT (envelope-from git) Date: Thu, 24 Oct 2024 11:37:32 GMT Message-Id: <202410241137.49OBbWup071674@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: a4111e9dc722 - main - sound: Change PCMDIR_* numbering 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: a4111e9dc7225618fa8d2af64d866cf0b0aebd56 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=a4111e9dc7225618fa8d2af64d866cf0b0aebd56 commit a4111e9dc7225618fa8d2af64d866cf0b0aebd56 Author: Christos Margiolis AuthorDate: 2024-10-24 11:37:17 +0000 Commit: Christos Margiolis CommitDate: 2024-10-24 11:37: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 --- 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