Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Adrian Knoth and committed by
Takashi Iwai
1568b880 17d2f008

+5 -5
+5 -5
sound/pci/rme9652/hdspm.c
··· 3173 3173 HDSPM_TCO1_LTC_Format_MSB)) { 3174 3174 case 0: 3175 3175 /* 24 fps */ 3176 - ret = 1; 3176 + ret = fps_24; 3177 3177 break; 3178 3178 case HDSPM_TCO1_LTC_Format_LSB: 3179 3179 /* 25 fps */ 3180 - ret = 2; 3180 + ret = fps_25; 3181 3181 break; 3182 3182 case HDSPM_TCO1_LTC_Format_MSB: 3183 - /* 25 fps */ 3184 - ret = 3; 3183 + /* 29.97 fps */ 3184 + ret = fps_2997; 3185 3185 break; 3186 3186 default: 3187 3187 /* 30 fps */ 3188 - ret = 4; 3188 + ret = fps_30; 3189 3189 break; 3190 3190 } 3191 3191 }