mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 15:49:56 +00:00
ALSA: hdspm - Fix sync check reporting on all RME HDSPM cards
Due to missing breaks and the resulting fall-through, card subtype selection was effectively missing, thus causing the wrong sync check functions to be called. Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
21a164df0c
commit
fba30fd342
@ -3959,6 +3959,7 @@ static int snd_hdspm_get_sync_check(struct snd_kcontrol *kcontrol,
|
|||||||
default:
|
default:
|
||||||
val = hdspm_s1_sync_check(hdspm, ucontrol->id.index-1);
|
val = hdspm_s1_sync_check(hdspm, ucontrol->id.index-1);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case AIO:
|
case AIO:
|
||||||
switch (kcontrol->private_value) {
|
switch (kcontrol->private_value) {
|
||||||
@ -3971,6 +3972,7 @@ static int snd_hdspm_get_sync_check(struct snd_kcontrol *kcontrol,
|
|||||||
default:
|
default:
|
||||||
val = hdspm_s1_sync_check(hdspm, ucontrol->id.index-1);
|
val = hdspm_s1_sync_check(hdspm, ucontrol->id.index-1);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case MADI:
|
case MADI:
|
||||||
switch (kcontrol->private_value) {
|
switch (kcontrol->private_value) {
|
||||||
@ -3983,6 +3985,7 @@ static int snd_hdspm_get_sync_check(struct snd_kcontrol *kcontrol,
|
|||||||
case 3: /* SYNC_IN */
|
case 3: /* SYNC_IN */
|
||||||
val = hdspm_sync_in_sync_check(hdspm); break;
|
val = hdspm_sync_in_sync_check(hdspm); break;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case MADIface:
|
case MADIface:
|
||||||
val = hdspm_madi_sync_check(hdspm); /* MADI */
|
val = hdspm_madi_sync_check(hdspm); /* MADI */
|
||||||
@ -4000,6 +4003,7 @@ static int snd_hdspm_get_sync_check(struct snd_kcontrol *kcontrol,
|
|||||||
val = hdspm_aes_sync_check(hdspm,
|
val = hdspm_aes_sync_check(hdspm,
|
||||||
kcontrol->private_value-1);
|
kcontrol->private_value-1);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user