From patchwork Sun Dec 26 16:16:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Kehayias X-Patchwork-Id: 35664 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C4B1027BBE9; Sun, 26 Dec 2021 16:17:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 080E727BBEA for ; Sun, 26 Dec 2021 16:17:11 +0000 (GMT) Received: from localhost ([::1]:56158 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1WCs-0000LM-1S for patchwork@mira.cbaines.net; Sun, 26 Dec 2021 11:17:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1WCk-0000LD-Np for guix-patches@gnu.org; Sun, 26 Dec 2021 11:17:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58036) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1WCk-0004RG-E4 for guix-patches@gnu.org; Sun, 26 Dec 2021 11:17:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1WCk-00025d-3d for guix-patches@gnu.org; Sun, 26 Dec 2021 11:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52803] [PATCH] gnu: Add headsetcontrol. Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 26 Dec 2021 16:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52803 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52803@debbugs.gnu.org X-Debbugs-Original-To: Guix-patches Received: via spool by submit@debbugs.gnu.org id=B.16405353897979 (code B ref -1); Sun, 26 Dec 2021 16:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Dec 2021 16:16:29 +0000 Received: from localhost ([127.0.0.1]:41349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1WCD-00024d-4Q for submit@debbugs.gnu.org; Sun, 26 Dec 2021 11:16:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:57814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1WCB-00024V-8r for submit@debbugs.gnu.org; Sun, 26 Dec 2021 11:16:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33226) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1WCB-0000Ko-4N for guix-patches@gnu.org; Sun, 26 Dec 2021 11:16:27 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:31883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1WC3-0004DT-3x for guix-patches@gnu.org; Sun, 26 Dec 2021 11:16:20 -0500 Date: Sun, 26 Dec 2021 16:16:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1640535374; bh=M6y+r5LkPPYeLqChxmoQ07ELHl9t6RmQ91z0tvv/14A=; h=Date:To:From:Reply-To:Subject:Message-ID:From:To:Cc; b=jcj4gAnSi9EXHCe6fPA8SAlYmvhfuHb+heq9Rah6K+BPoggIHfxcgPWT1F5wwuvL3 VTGCgabj8OjA2O6KjbXlzfcN3tlLfieGdDueStfVXkd65uWk4YvxrlP+XC4R4j0VzJ JmauZF80RE09xEpFTadtqvFAIWcx/IW7r9++HZcCic3k+vSfY2DfmFRUrP6ojcSB/q 4Gz1AXNTdmjgf9EyIMrMk0XTZcpvp88bHKCcBzW3cf8Qct0yT+FB9fD4GCLNbDr54l IxnnTnWEzcmGoo29vIo0sP7PM5/8XPB7f80n4VBFWCWwmhEDqkQzea88AFkm9GoYR7 8Dy/1WckPtQ4w== Message-ID: MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.131; envelope-from=john.kehayias@protonmail.com; helo=mail-40131.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches X-Patchwork-Original-From: John Kehayias via Guix-patches via From: John Kehayias X-getmail-retrieved-from-mailbox: Patches Attached is a patch to add the program headsetcontrol, which allows getting/setting properties for USB headsets. I've been using a previous version (2.4) locally for quite some time and it works well. The package also builds udev rules, should a note be added to the description that it includes udev rules or anything about that? Thanks! John From 1a22f60566e10b3ce391aa95f3b8b520556cb590 Mon Sep 17 00:00:00 2001 From: John Kehayias Date: Sun, 26 Dec 2021 11:13:29 -0500 Subject: [PATCH] gnu: Add headsetcontrol. * gnu/packages/hardware.scm (headsetcontrol): New variable. --- gnu/packages/hardware.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index ddd0f5acc1..129ea7c20e 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm @@ -316,6 +316,30 @@ (define-public h-client (home-page "https://savannah.nongnu.org/projects/h-client/") (license license:gpl3+)))) +(define-public headsetcontrol + (package + (name "headsetcontrol") + (version "2.6") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Sapd/HeadsetControl") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0a7zimzi71416pmn6z0l1dn1c2x8p702hkd0k6da9rsznff85a88")))) + (build-system cmake-build-system) + (inputs + (list hidapi)) + (synopsis "Sidetone and Battery status for USB headsets") + (description + "A tool to control certain aspects of USB-connected headsets on Linux. +Currently, support is provided for adjusting sidetone, getting battery state, +controlling LEDs, and setting the inactive time.") + (home-page "https://github.com/Sapd/HeadsetControl") + (license license:gpl3))) + (define-public i7z (let ((revision "0") (commit "1a41ff13db747e962456ddbb5ccb2b7fc43ca0cb")) -- 2.34.1