Skip to content

Auxiliary tools for ac100 hacking

Notifications You must be signed in to change notification settings

Stuw/ac100-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alc-ctl

auxiliary tool for alc5632 sound codec registers manipulation from userspace. alc-ctl reads and writes device registers over i2c bus.

NOTE: alc-ctl is based on http://people.canonical.com/~diwic/ac100/alc-dump.c (local copy is present in this repo)

USAGE:

% cat full-dump.sh
# Load i2c-dev kernel module (if it is not loaded yet)
lsmod | grep "i2c-dev" > /dev/null || sudo modprobe i2c-dev
# Dump all registers
for reg in \`seq 0 2 96 | xargs -L1 -I% echo "obase=16; %" | bc | tr '[:upper:]' '[:lower:]'\` ; do
    sudo ./alc-ctl /dev/i2c-0 r $reg
done

% ./full-dump.sh > before-playback.txt

nvtegrapart

Dump partition table from PT image.

NOTE: Based on kernel module sources

About

Auxiliary tools for ac100 hacking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages