aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>2023-05-14 19:03:20 +0200
committerTakashi Iwai <tiwai@suse.de>2023-05-15 22:00:54 +0200
commit60571ac9ea621d3d1404f78bc0f27b709e82f2fd (patch)
tree336c18f2f3d59463c525b72b42a8cd248904acc0 /tools/perf/scripts/python/exported-sql-viewer.py
parentALSA: emu10k1: simplify tone control switch DSP code (diff)
downloadlinux-60571ac9ea621d3d1404f78bc0f27b709e82f2fd.tar.gz
linux-60571ac9ea621d3d1404f78bc0f27b709e82f2fd.zip
ALSA: emu10k1: automate encoding of sub-register definitions
The idea to encode the bitfield manipulation in the register address is quite clever, but doing that by hand is ugly and error-prone. So derive it automatically from the mask instead. Macros cannot #define other macros, so we now declare enums instead. This also adds macros for decoding the register definitions. These will be used by later commits. Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Link: https://lore.kernel.org/r/20230514170323.3408798-1-oswald.buddenhagen@gmx.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions