From nobody Sat Apr 13 17:12:36 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 4VH0P03dlnz5Hp85; Sat, 13 Apr 2024 17:12:36 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VH0P036JYz4TL7; Sat, 13 Apr 2024 17:12:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713028356; 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=P6jFsugwTx8flFe2C7QTFcxyKxloAS4UbpmG/bDHUXk=; b=gHn1aqrlkhOSlN/eHhq5PjI/WQ+pJRDmAf1mCUXXsOYjsyikrS0gzwF3CUIR334VzbqRut +MZdLe2SSVdGeZT6S/KpaOhzTr73p2H/ycQ9y6sA7OCrfSBIeY8yk3NbcJeKAranOyzzHE 1ju/Ks4C6vR01uqLVMgPfHyI8ICkGMmDZq1xCXGZ/dVYS2hXu6csGQih5/seFv0kTtTR4r 1OKHtuP58Z1MXSM4RTz7q+1oQ/Srj4C/+LeoAHfr4+87RMtfEwAHtAHWPl+/c8/CR3DWWK KS/EvKaVoHvxmTyaSU03sRW6qPm9AdzczpOmJRk/rdJWrP9TvWNE9Gt9wDvwfg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713028356; a=rsa-sha256; cv=none; b=ZSIdf8GBzcBCqeoeHtnLwN1XA74np29VLBFffs1tMB1dSSdYw7SXvFZI+IeEES0yhSDm6+ T2BavoYlYLdsfruDtMCad13VSaVUNHm3YqnclGdLlpqh4h011zmbonadiCxJAXRXfqhA86 PDQG17S2b1/IKb+plscgFbcUaUsGTDZq3//oeYh80hFgI/cj700GYrEP+cvEXdF7akOxWb LDu6znYXGeAWZqGwUiYJTW8+vdm749YtS3Gcrg3XJopGT/LWsWIYWXGi6cnHwdTKgNnJwE Uzcc+x0nJgnA1GTDJzTuEXW2H9kQTvxcxnBpAIA43pcYH05yJVh0zlfOc3xZtA== 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=1713028356; 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=P6jFsugwTx8flFe2C7QTFcxyKxloAS4UbpmG/bDHUXk=; b=JnATIJepV7/72ai4w93vlCF5Z3o4kfzjug/0CHWsWvNvwVSwwjuT61mBdG/Zdvrd3SOv05 kfLB0QwTu3b1R7RLRWVsQ+icVcR9/7tC03/ncH+D08h9R6Wqz5BSVIUTl2ojNm2tR+LlWp 3Wbl5NypyF2f7vK3AcVXGAz0Vwp+XI8NpdLNrOP8gUiGL/LX173QWnGLY/flL52h4EsG99 JRFsrQV35fMW9cbD8+pBqKnQklcjcLp64N8IMyqOx4BrHZ+ROeokZNj/EZ9dohQz6Ep1Ch /DMsAiV36Czu2dKnYVo/sC5a8CPj7R8d2vSYfrokUohgbjw2YC/BGiN3pRGXNg== 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 4VH0P02jvzzhhZ; Sat, 13 Apr 2024 17:12:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43DHCacr019839; Sat, 13 Apr 2024 17:12:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43DHCarN019836; Sat, 13 Apr 2024 17:12:36 GMT (envelope-from git) Date: Sat, 13 Apr 2024 17:12:36 GMT Message-Id: <202404131712.43DHCarN019836@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: 068c675ca7ae - main - sound: Remove leftover references to snd_clone 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 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: 068c675ca7aec11d3546c3f908e842a7eca2ccae Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=068c675ca7aec11d3546c3f908e842a7eca2ccae commit 068c675ca7aec11d3546c3f908e842a7eca2ccae Author: Christos Margiolis AuthorDate: 2024-04-13 17:12:27 +0000 Commit: Christos Margiolis CommitDate: 2024-04-13 17:12:27 +0000 sound: Remove leftover references to snd_clone The snd_clone framework does not exist as of e8c0d15a64fadb4a330f2da7244becaac161bb70 ("sound: Get rid of snd_clone and use DEVFS_CDEVPRIV(9)"), so remove leftover references to it from unit.c. Sponsored by: The FreeBSD Foundation MFC after: 2 months Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D44758 --- sys/dev/sound/unit.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/sys/dev/sound/unit.c b/sys/dev/sound/unit.c index 1f1b889b42ce..28ffbde1f7ec 100644 --- a/sys/dev/sound/unit.c +++ b/sys/dev/sound/unit.c @@ -44,24 +44,17 @@ * * eg: dsp0.p1 - u=0, d=p, c=1 * dsp1.vp0 - u=1, d=vp, c=0 - * dsp0.10 - u=0, d=clone, c=allocated clone (see further explanation) * - * Maximum unit of soundcards can be tuned through "hw.snd.maxunit", which - * is between SND_UNIT_UMIN (16) and SND_UNIT_UMAX (2048). By design, - * maximum allowable allocated channel is 256, with exception for clone - * devices which doesn't have any notion of channel numbering. The use of - * channel numbering in a clone device is simply to provide uniqueness among - * allocated clones. This also means that the maximum allowable clonable - * device is largely dependant and dynamically tuned depending on - * hw.snd.maxunit. + * Maximum unit of soundcards can be tuned through "hw.snd.maxunit", which is + * between SND_UNIT_UMIN (16) and SND_UNIT_UMAX (2048). By design, the maximum + * allowable allocated channel is 256. */ /* Default width */ static int snd_u_shift = 9; /* 0 - 0x1ff : 512 distinct soundcards */ static int snd_d_shift = 5; /* 0 - 0x1f : 32 distinct device types */ static int snd_c_shift = 10; /* 0 - 0x3ff : 1024 distinct channels - (256 limit "by design", - except for clone devices) */ + (256 limit "by design") */ static int snd_unit_initialized = 0; @@ -184,10 +177,7 @@ snd_unit_init(void) snd_u_shift++) ; - /* - * Make room for channels/clones allocation unit - * to fit within 24bit MAXMINOR limit. - */ + /* Make room for channels to fit within 24bit MAXMINOR limit. */ snd_c_shift = 24 - snd_u_shift - snd_d_shift; }