]> git.alsa-project.org Git - alsa-tools.git/commit
hdspmixer: add output loopback buttons
authorJasmin Fazlic <superfassl@gmail.com>
Sun, 7 Feb 2021 14:50:48 +0000 (15:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 27 Feb 2021 08:24:53 +0000 (09:24 +0100)
commit3e4fd7dffbf40b2997075320ce24aaae1b97f328
treea1c7acbde521d08201f78571ea824dae3e60ad22
parentc0e69055fade319638a79604bd3ed1f37ff764f4
hdspmixer: add output loopback buttons

This patch adds "LPBK" buttons to the output strip
channels allowing to toggle the hardware output
loopback state.

Efforts were made to hide the buttons for not yet
enabled devices but due to difficulties in implementation
was cancelled for the time being. Should it be a no-go
efforts should be made to fix this and hide them,
although I would think fixing the driver for other
devices would be an effort with much more merit.

This is currently only enabled for HDSP9632 devices
with following driver patch:
https://github.com/tiwai/sound/commit/da2a040ee7cfe1dd57d5bec7906cb979c5787a86

We check whether the system has the kernel patch
applied by calling `HDSPMixerCard::supportsLoopback()`
and if not these buttons remain gray (off) and do
nothing when clicked.

Signed-off-by: Jasmin Fazlic <superfassl@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
19 files changed:
hdspmixer/pixmaps/loopback.xpm [new file with mode: 0644]
hdspmixer/pixmaps/output.xpm
hdspmixer/pixmaps/output_r.xpm
hdspmixer/src/HDSPMixerCard.cxx
hdspmixer/src/HDSPMixerCard.h
hdspmixer/src/HDSPMixerLoopback.cxx [new file with mode: 0644]
hdspmixer/src/HDSPMixerLoopback.h [new file with mode: 0644]
hdspmixer/src/HDSPMixerOutput.cxx
hdspmixer/src/HDSPMixerOutput.h
hdspmixer/src/HDSPMixerOutputData.h
hdspmixer/src/HDSPMixerOutputs.cxx
hdspmixer/src/HDSPMixerPresetData.cxx
hdspmixer/src/HDSPMixerPresetData.h
hdspmixer/src/HDSPMixerPresets.cxx
hdspmixer/src/HDSPMixerWindow.cxx
hdspmixer/src/Makefile.am
hdspmixer/src/defines.h
hdspmixer/src/pixmaps.cxx
hdspmixer/src/pixmaps.h