Skip to content

Instantly share code, notes, and snippets.

View hitech95's full-sized avatar
🏠
Working from home

Nicolò hitech95

🏠
Working from home
View GitHub Profile
@hitech95
hitech95 / mapt.config
Created December 28, 2021 09:49
Openwrt with MAP-T basic configuration
CONFIG_TARGET_ath79=y
CONFIG_TARGET_ath79_generic=y
CONFIG_TARGET_ath79_generic_DEVICE_8dev_carambola2=y
CONFIG_HTOP_LMSENSORS=y
CONFIG_LIBCURL_COOKIES=y
CONFIG_LIBCURL_FILE=y
CONFIG_LIBCURL_FTP=y
CONFIG_LIBCURL_HTTP=y
CONFIG_LIBCURL_NGHTTP2=y
CONFIG_LIBCURL_NO_SMB="!"
From f98d3008b89a03fca0030301da3db4b8a3a18361 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicol=C3=B2=20Veronese?= <nicveronese@gmail.com>
Date: Sun, 24 Jun 2018 12:53:16 +0200
Subject: [PATCH 1/2] ASoC: add generic simple-amplifier support
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Many boards have speaker amplifier attached on an analog output.
Most of them are only managed by a mute or shutdown GPIO.
@hitech95
hitech95 / simple-amp.c
Last active June 22, 2018 15:29
Simple amp with GPIO mute/shutdown.
/*
* ALSA SoC simple amplifier driver
*
* Copyright 2018 <nicveronese@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi
index a21f2ed..324a13f 100644
--- a/arch/arm/boot/dts/sun8i-a33.dtsi
+++ b/arch/arm/boot/dts/sun8i-a33.dtsi
@@ -184,22 +184,27 @@
sound: sound {
compatible = "simple-audio-card";
simple-audio-card,name = "sun8i-a33-audio";
- simple-audio-card,format = "i2s";
- simple-audio-card,frame-master = <&link_codec>;
@hitech95
hitech95 / audio_patch_hitech95_2018_16_21.patch
Last active June 21, 2018 09:48
audio_patch_hitech95_2018_16_19.patch
diff --git a/arch/arm/boot/dts/sun8i-a33.dtsi b/arch/arm/boot/dts/sun8i-a33.dtsi
index a21f2ed..324a13f 100644
--- a/arch/arm/boot/dts/sun8i-a33.dtsi
+++ b/arch/arm/boot/dts/sun8i-a33.dtsi
@@ -184,22 +184,27 @@
sound: sound {
compatible = "simple-audio-card";
simple-audio-card,name = "sun8i-a33-audio";
- simple-audio-card,format = "i2s";
- simple-audio-card,frame-master = <&link_codec>;