Skip to content

Instantly share code, notes, and snippets.

View steffengy's full-sized avatar

Steffen Butzer steffengy

View GitHub Profile
@steffengy
steffengy / linux-sound-UX3405MA.patch
Created April 3, 2024 18:30
Linux 6.8.2 patch 10431A63 - UX3405MA.304 Sound CS35L41 Workaround
--- ./cs35l41_hda_property.old.c 2024-04-03 15:32:51.000000000 +0200
+++ ./cs35l41_hda_property.c 2024-04-03 20:27:58.179588400 +0200
@@ -83,6 +83,7 @@
{ "104317F3", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 },
{ "10431863", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
{ "104318D3", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 },
+ { "10431A63", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, -1, 2, -1, 0, 0, 0 },
{ "10431A83", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 },
{ "10431C9F", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
{ "10431CAF", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
@steffengy
steffengy / postgres_static.diff
Created February 11, 2016 00:05
9.5 static build attempt
From 0c9bdf00d985fade4fb324b145e8f52c3defa857 Mon Sep 17 00:00:00 2001
From: Steffen <steffen.butzer@outlook.com>
Date: Thu, 11 Feb 2016 01:04:27 +0100
Subject: [PATCH] emulated dynloader: static build of hopefully all essential
core components
---
src/Makefile | 5 +-
src/Makefile.global.in | 2 +-
src/Makefile.shlib | 24 ++-
@steffengy
steffengy / build_cross_gcc
Created February 10, 2016 02:46 — forked from preshing/build_cross_gcc
A shell script to download packages for, configure, build and install a GCC cross-compiler.
#! /bin/bash
set -e
trap 'previous_command=$this_command; this_command=$BASH_COMMAND' DEBUG
trap 'echo FAILED COMMAND: $previous_command' EXIT
#-------------------------------------------------------------------------------------------
# This script will download packages for, configure, build and install a GCC cross-compiler.
# Customize the variables (INSTALL_PATH, TARGET, etc.) to your liking before running.
# If you get an error and need to resume the script from some point in the middle,
# just delete/comment the preceding lines before running it again.
/* port of https://github.com/beautify-web/js-beautify/blob/master/python/jsbeautifier/unpackers/packer.py (MIT) */
var unpacker = {
unpack: function (str) {
var params = unpacker.filterargs(str);
var payload = params[0], symtab = params[1], radix = params[2], count = params[3];
if (count != symtab.length) {
throw new Error("Malformed p.a.c.k.e.r. symtab. (" + count + " != " + symtab.length + ")");
}
var unbase = unpacker.unbaser(radix);
var lookup = (word) => symtab[unbase(word)] || word;