diff options
| author | Oswald Buddenhagen <[email protected]> | 2023-05-10 19:39:07 +0200 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2023-05-12 09:17:04 +0200 |
| commit | 4c7bfbcf7516b0804ba0204e865f885baca604e4 (patch) | |
| tree | b11f3cac866e1fb6d562d2ce63b56ab9513e3bd4 /tools/perf/scripts/python | |
| parent | 4102ac29759586e86cf129d66fc5ad5406a431a8 (diff) | |
ALSA: emu10k1: simplify snd_emu10k1_audigy_dsp_convert_32_to_2x16()
Instead of spending lots of instructions on masking and transplanting
the sign bit, sidestep the issue by replacing the last bit shift with
a wrapping addition to self.
Solution stolen from kX-project, after I pondered other ideas first.
Also, the function really doesn't need to return a constant int value.
Signed-off-by: Oswald Buddenhagen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions