mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-11-27 07:00:09 -05:00
hdspmixer: Initialize headphones out in presets
Cards like the multiface/digiface have additional headphones out. Those were not initialized in the presets due to wrong loop boundaries: maxdest represents the amount of physical stereo pairs, and chnls is either equal or less, so the output fader array needs more iterations than the playback section. Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
92413b739e
commit
f9147bfc2c
1 changed files with 1 additions and 1 deletions
|
|
@ -734,7 +734,7 @@ void HDSPMixerWindow::restoreDefaults(int card)
|
|||
|
||||
for (int preset = 0; preset < 8; ++preset) {
|
||||
for (int speed = 0; speed < num_modes; ++speed) {
|
||||
for (int i = 0; i < chnls[speed]; i+=2) {
|
||||
for (int i = 0; i < 2*maxdest[speed]; i+=2) {
|
||||
for (int z = 0; z < maxdest[speed]; ++z) {
|
||||
/* Gain setup */
|
||||
if (cards[card]->type == H9632) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue