aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>2013-08-19 11:20:31 -0400
committerTakashi Iwai <tiwai@suse.de>2013-08-19 14:09:03 -0400
commit1568b8802227f4e7b0ad79a49cd35d4e285570f2 (patch)
treea3bcdb0f416f5015ed8514eb621fc36e12f128ed
parent17d2f00836cce9b1a24e65670ad78dbab275777b (diff)
ALSA: hdspm - Use enums in hdspm_tco_ltc_frames()
This patch doesn't change functionality, it only improves readability and fixes a copy&paste error in a comment. Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/rme9652/hdspm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c
index e4d76a6a7960..3cde55b753e2 100644
--- a/sound/pci/rme9652/hdspm.c
+++ b/sound/pci/rme9652/hdspm.c
@@ -3173,19 +3173,19 @@ static int hdspm_tco_ltc_frames(struct hdspm *hdspm)
3173 HDSPM_TCO1_LTC_Format_MSB)) { 3173 HDSPM_TCO1_LTC_Format_MSB)) {
3174 case 0: 3174 case 0:
3175 /* 24 fps */ 3175 /* 24 fps */
3176 ret = 1; 3176 ret = fps_24;
3177 break; 3177 break;
3178 case HDSPM_TCO1_LTC_Format_LSB: 3178 case HDSPM_TCO1_LTC_Format_LSB:
3179 /* 25 fps */ 3179 /* 25 fps */
3180 ret = 2; 3180 ret = fps_25;
3181 break; 3181 break;
3182 case HDSPM_TCO1_LTC_Format_MSB: 3182 case HDSPM_TCO1_LTC_Format_MSB:
3183 /* 25 fps */ 3183 /* 29.97 fps */
3184 ret = 3; 3184 ret = fps_2997;
3185 break; 3185 break;
3186 default: 3186 default:
3187 /* 30 fps */ 3187 /* 30 fps */
3188 ret = 4; 3188 ret = fps_30;
3189 break; 3189 break;
3190 } 3190 }
3191 } 3191 }