ALSA: hdspm - Fix reported autosync_sample_rate
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Fri, 19 Oct 2012 15:42:25 +0000 (17:42 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 20 Oct 2012 08:40:40 +0000 (10:40 +0200)
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>
sound/pci/rme9652/hdspm.c

index 81d83faab510455bb18c8ff7cc94f2087dcbf3ac..976e3a6b05082b753c2af94c2f7e2efd9f3f7744 100644 (file)
@@ -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;
        }