Authentication-Results: mail-b.sr.ht; dkim=pass header.d=craftyguy.net header.i=@craftyguy.net Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by mail-b.sr.ht (Postfix) with ESMTPS id 33EC311EF1D for <~mil/sxmo-devel@lists.sr.ht>; Fri, 23 Apr 2021 17:45:23 +0000 (UTC) Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4FRhX21Xt9zQk3G; Fri, 23 Apr 2021 19:45:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craftyguy.net; s=MBO0001; t=1619199920; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=yDTsXRtDNcTFqka+puHyX7SYpSrATECy6jazCs7Pcug=; b=r7l9CO2KwkAAZQ0pmUPDp0TlMSD0NrEsAYey4SB2YjyshkXJ6FKYq60z/2kPIxFNhW6rxR zoLpmE74c5cEnhFiF3EEheCC54UJDotze/RsIltGxS75eI4i0anuf+RZXL25u6bLDMHHlE dzn5end7XFza0jyjmKYEEaVdCMBi//Ma7m21vwiNvmdb+LRKsKfRBpRHeyRUsrX8BJYqf+ z6EQsYaEWfXQ7FgooEaHvPYuYfRhdB28YEaVleX3Oue5jYhkwnGyZUTiMGxvQAAsphVoKH WATb6YpABkN7MWB/pchvr5ewSpE/oTK6b80B/altc0o0JL1chkV4vfOAB3tJkw== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id O4wU7CcPF7iX; Fri, 23 Apr 2021 19:45:19 +0200 (CEST) From: Clayton Craft To: ~mil/sxmo-devel@lists.sr.ht Subject: [PATCH sxmo-utils 0/4] Add support for env device profiles Date: Fri, 23 Apr 2021 10:45:11 -0700 Message-Id: <20210423174515.3697034-1-clayton@craftyguy.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-SPAM-Probability: X-Rspamd-Score: -4.76 / 15.00 / 15.00 X-Rspamd-Queue-Id: 2F65117CF X-Rspamd-UID: b38f3c This series adds support for having device profiles, which set/override env vars in sxmo for anything that requires device-specific values. The series includes 1 profile (well, 3, but they're symlinked..) for the Librem 5, basic audio seems to be working with this (speaker/mic), headset audio out is untested though. The audio scripts were changed to default to the existing values if none are set in the env, so this should continue working on the pinephone without any explicit profile.. but it might not be a bad idea to add an explicit pinephone profile later on. Clayton Craft (4): sxmo_xinit: add support for overriding vars with device-specific profiles sxmo_audioout: use existing env vars for audio devices sxmo_audiocurrentdevice: use existing env vars for audio devices sxmo_deviceprofile_librem5*: add initial profile for librem5 scripts/core/sxmo_audiocurrentdevice.sh | 10 +++++++--- scripts/core/sxmo_audioout.sh | 6 +++--- scripts/core/sxmo_xinit.sh | 9 +++++++++ .../sxmo_deviceprofile_librem5r2purism.sh | 1 + .../sxmo_deviceprofile_librem5r3purism.sh | 1 + .../sxmo_deviceprofile_librem5r4purism.sh | 3 +++ 6 files changed, 24 insertions(+), 6 deletions(-) create mode 120000 scripts/deviceprofiles/sxmo_deviceprofile_librem5r2purism.sh create mode 120000 scripts/deviceprofiles/sxmo_deviceprofile_librem5r3purism.sh create mode 100644 scripts/deviceprofiles/sxmo_deviceprofile_librem5r4purism.sh -- 2.31.1