aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>2012-10-19 11:42:25 -0400
committerTakashi Iwai <tiwai@suse.de>2012-10-20 04:40:40 -0400
commitd681deaa74748ce1d4b1a862438c955b70f46690 (patch)
treeb804f712f47097a10d1e70f8651076f34138f770 /sound
parentfba30fd342beda8e7908f214d9e7f8a62dcdc57d (diff)
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/rme9652/hdspm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c
index 81d83faab510..976e3a6b0508 100644
--- a/sound/pci/rme9652/hdspm.c
+++ b/sound/pci/rme9652/hdspm.c
@@ -2180,6 +2180,7 @@ static int snd_hdspm_get_autosync_sample_rate(struct snd_kcontrol *kcontrol,
2180 hdspm_get_s1_sample_rate(hdspm, 2180 hdspm_get_s1_sample_rate(hdspm,
2181 kcontrol->private_value-1); 2181 kcontrol->private_value-1);
2182 } 2182 }
2183 break;
2183 2184
2184 case AIO: 2185 case AIO:
2185 switch (kcontrol->private_value) { 2186 switch (kcontrol->private_value) {
@@ -2200,6 +2201,7 @@ static int snd_hdspm_get_autosync_sample_rate(struct snd_kcontrol *kcontrol,
2200 hdspm_get_s1_sample_rate(hdspm, 2201 hdspm_get_s1_sample_rate(hdspm,
2201 ucontrol->id.index-1); 2202 ucontrol->id.index-1);
2202 } 2203 }
2204 break;
2203 2205
2204 case AES32: 2206 case AES32:
2205 2207
@@ -2221,8 +2223,8 @@ static int snd_hdspm_get_autosync_sample_rate(struct snd_kcontrol *kcontrol,
2221 hdspm_get_s1_sample_rate(hdspm, 2223 hdspm_get_s1_sample_rate(hdspm,
2222 kcontrol->private_value-1); 2224 kcontrol->private_value-1);
2223 break; 2225 break;
2224
2225 } 2226 }
2227 break;
2226 default: 2228 default:
2227 break; 2229 break;
2228 } 2230 }