mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 13:44:15 +08:00
ALSA: hdspm - Fix reported autosync_sample_rate
Missing breaks lead to a fall-through, thus causing the wrong autosync_sample_rate to be reported. Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
fba30fd342
commit
d681deaa74
@ -2180,6 +2180,7 @@ static int snd_hdspm_get_autosync_sample_rate(struct snd_kcontrol *kcontrol,
|
||||
hdspm_get_s1_sample_rate(hdspm,
|
||||
kcontrol->private_value-1);
|
||||
}
|
||||
break;
|
||||
|
||||
case AIO:
|
||||
switch (kcontrol->private_value) {
|
||||
@ -2200,6 +2201,7 @@ static int snd_hdspm_get_autosync_sample_rate(struct snd_kcontrol *kcontrol,
|
||||
hdspm_get_s1_sample_rate(hdspm,
|
||||
ucontrol->id.index-1);
|
||||
}
|
||||
break;
|
||||
|
||||
case AES32:
|
||||
|
||||
@ -2221,8 +2223,8 @@ static int snd_hdspm_get_autosync_sample_rate(struct snd_kcontrol *kcontrol,
|
||||
hdspm_get_s1_sample_rate(hdspm,
|
||||
kcontrol->private_value-1);
|
||||
break;
|
||||
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user