diff options
| author | Oswald Buddenhagen <oswald.buddenhagen@gmx.de> | 2023-05-14 19:03:20 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2023-05-15 22:00:54 +0200 |
| commit | 60571ac9ea621d3d1404f78bc0f27b709e82f2fd (patch) | |
| tree | 336c18f2f3d59463c525b72b42a8cd248904acc0 /tools/perf/scripts/python/netdev-times.py | |
| parent | ALSA: emu10k1: simplify tone control switch DSP code (diff) | |
| download | linux-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/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
