From 092c830f52293833dccd0e77aee81c831edebe27 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Sun, 26 Feb 2023 13:41:04 +0100 Subject: [PATCH] now all in one repo to avoid an explosion of git repos for the blog --- asusN7601ZM/README.md | 2 ++ asusN7601ZM/audio/README.md | 5 +++++ asusN7601ZM/audio/processlinux | 16 ++++++++++++++++ asusN7601ZM/audio/processwindows | 18 ++++++++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 asusN7601ZM/README.md create mode 100644 asusN7601ZM/audio/README.md create mode 100755 asusN7601ZM/audio/processlinux create mode 100755 asusN7601ZM/audio/processwindows diff --git a/asusN7601ZM/README.md b/asusN7601ZM/README.md new file mode 100644 index 0000000..8e564ff --- /dev/null +++ b/asusN7601ZM/README.md @@ -0,0 +1,2 @@ +This repository contains some utilities and setup info for the +ASUS N7601ZM on linux. diff --git a/asusN7601ZM/audio/README.md b/asusN7601ZM/audio/README.md new file mode 100644 index 0000000..66e8f7a --- /dev/null +++ b/asusN7601ZM/audio/README.md @@ -0,0 +1,5 @@ + + +This directory contains the scripts: +* [processlinux](processlinux): A script that converts the output of the linux realtek dump to the format expected for verbs in the firmware patch file. +* [processwindows](processwindows): A script that processes the realtek dump taken on windows and converts it to the verb format erquired by the firmware patch file. diff --git a/asusN7601ZM/audio/processlinux b/asusN7601ZM/audio/processlinux new file mode 100755 index 0000000..f0df560 --- /dev/null +++ b/asusN7601ZM/audio/processlinux @@ -0,0 +1,16 @@ +#!/bin/bash + +awk ' + /^Node/ { + node = $2 + next + } + + / *Coeff/ { + gsub(/^ *Coeff /, "") + gsub(/:/, "") + print node " " $0 + } + +' "$@" + diff --git a/asusN7601ZM/audio/processwindows b/asusN7601ZM/audio/processwindows new file mode 100755 index 0000000..4e14b3e --- /dev/null +++ b/asusN7601ZM/audio/processwindows @@ -0,0 +1,18 @@ +#!/bin/bash + +awk ' + /Wid=/ { + node=$2 + gsub(/^.*\[/, "", node) + gsub(/\].*$/, "", node) + #print node + next; + } + + /^Index/ { + if (node <= "0x26" ) { + print node " " $2 " " $3 + } + } +' "$@" +