From nobody Mon Dec 02 16:27:22 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 4Y28MG55Bbz5g4xg; Mon, 02 Dec 2024 16:27:22 +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 4Y28MG3Tnsz4TX0; Mon, 2 Dec 2024 16:27:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733156842; 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=MSQ9AyblEAbUgc9i+qalwtNMkScHkFvIR4ZnJwvVSmk=; b=YAPY8X4ARHQCXzr0edeJyM24gAJROITpkxhxpX3GC4L9nWJmg19WlcDYVds7gIt38ARsuE KFmNWgxLrLqT8ieIUZInmxYbaK0Npc/mbRo232je5nQHPTb/r8B3x340ATnfW0YIZA3sgU R0MjxS1yxH2nPN4hDxL7AmtELLafRl7nTGt2NP89grPsEhnv9XBH3v9E5UxqVtur0egV40 P+H7jjGBeiW9ALgchzDhxVch+XRzZbPrQyBiAzexmbNGAeu73LXp4DgNZspCw4EfNglMEv QfmennDmwnm8gJz1iwofMGY8Jdg3brrDcphLbbL1jWIcYgn2rDNGL79ljN+JKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733156842; 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=MSQ9AyblEAbUgc9i+qalwtNMkScHkFvIR4ZnJwvVSmk=; b=a4ibkjnF9KgLluTZ/V/lFdKsQP6xxtIcYJ+0XPvhJ9ezP444uDMGOzvShjDB77Vh9uUzcv qUBcrJwas0DPixtLZv9tgau4lFLIAUzcyaaPcIEoS9I0p6A/RqbctnqLjTEssIh2ijGrc6 6fvAoAKX3VMwS2OVKSbCPnIGL8gNPLjOmsNdIf5KFYXhJcgEWMhaxmusu3DLZ+c06+nEPs og78AuQPazYhPg0f7CRTWWTqZ/RWenwVBKJpK+UmCvSbklrO4XSK2QS20B7/uHxSHzIJda 45clsqosqYr86wiVL4cJrG0j2ALKpzQBiLGtcFO2Np4wkGbsvFwFeTIdtnkT3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733156842; a=rsa-sha256; cv=none; b=PJxDfDn/hsQ5R1wNfF0b1OwJwzNI82WWW8626MeuSfIPVdpfzXBJNH2Si0kLpw4K90KIjZ gIVokJiD85HkB7B0zXeofKgxyER5gSvqzP1LrfokpDOqbyMToA2gyMsIAAuNPXVA4S1b0j ueH2hODdxmz+FQO8D9H8CSrDa4UvvdePfjA1FsLUJiEbZZiVtCSKBsXoeoponTKPiAygC4 Up6ndILHD/E53pkEhOtt9daFIrnvEkfMK0klrdm/m3JKX1ZUwV+G+WLEMXNvElp5alK1N/ YxPz+ms490SIWMI6j8MhM2ISeK5q9Xpfju0rBivP5EbvMDF7dDRdrjYy5TfZRw== 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 4Y28MG32JSzlN0; Mon, 2 Dec 2024 16:27:22 +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 4B2GRMh2070786; Mon, 2 Dec 2024 16:27:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B2GRMZJ070783; Mon, 2 Dec 2024 16:27:22 GMT (envelope-from git) Date: Mon, 2 Dec 2024 16:27:22 GMT Message-Id: <202412021627.4B2GRMZJ070783@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: b88225120412 - main - sound: Remove unused code from pcm/g711.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: b882251204128388eb2f8e4f74e83ff1ca7863c4 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=b882251204128388eb2f8e4f74e83ff1ca7863c4 commit b882251204128388eb2f8e4f74e83ff1ca7863c4 Author: Christos Margiolis AuthorDate: 2024-12-02 16:26:32 +0000 Commit: Christos Margiolis CommitDate: 2024-12-02 16:26:32 +0000 sound: Remove unused code from pcm/g711.h These routines are already implemented in pcm/intpcm.h. No functional change intended. Sponsored by: The FreeBSD Foundation MFC after: 2 days Reviewed by: dev_submerge.ch, markj Differential Revision: https://reviews.freebsd.org/D47734 --- sys/dev/sound/pcm/g711.h | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/sys/dev/sound/pcm/g711.h b/sys/dev/sound/pcm/g711.h index fe9ddb651c8b..b7a57dd17a6b 100644 --- a/sys/dev/sound/pcm/g711.h +++ b/sys/dev/sound/pcm/g711.h @@ -187,37 +187,4 @@ static const struct { \ U8_TO_ULAW, U8_TO_ALAW \ } -#define G711_DECLARE_OP(t) \ -static __inline intpcm_t \ -pcm_read_ulaw(uint8_t v) \ -{ \ - \ - return (_G711_TO_INTPCM((t).ulaw_to_u8, v)); \ -} \ - \ -static __inline intpcm_t \ -pcm_read_alaw(uint8_t v) \ -{ \ - \ - return (_G711_TO_INTPCM((t).alaw_to_u8, v)); \ -} \ - \ -static __inline void \ -pcm_write_ulaw(uint8_t *dst, intpcm_t v) \ -{ \ - \ - *dst = _INTPCM_TO_G711((t).u8_to_ulaw, v); \ -} \ - \ -static __inline void \ -pcm_write_alaw(uint8_t *dst, intpcm_t v) \ -{ \ - \ - *dst = _INTPCM_TO_G711((t).u8_to_alaw, v); \ -} - -#define G711_DECLARE(t) \ - G711_DECLARE_TABLE(t); \ - G711_DECLARE_OP(t) - #endif /* !_SND_G711_H_ */