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>
This commit is contained in:
Adrian Knoth 2013-08-19 17:20:31 +02:00 committed by Takashi Iwai
parent 17d2f00836
commit 1568b88022
1 changed files with 5 additions and 5 deletions

View File

@ -3173,19 +3173,19 @@ static int hdspm_tco_ltc_frames(struct hdspm *hdspm)
HDSPM_TCO1_LTC_Format_MSB)) {
case 0:
/* 24 fps */
ret = 1;
ret = fps_24;
break;
case HDSPM_TCO1_LTC_Format_LSB:
/* 25 fps */
ret = 2;
ret = fps_25;
break;
case HDSPM_TCO1_LTC_Format_MSB:
/* 25 fps */
ret = 3;
/* 29.97 fps */
ret = fps_2997;
break;
default:
/* 30 fps */
ret = 4;
ret = fps_30;
break;
}
}