Skip to content

Commit 1568b88

Browse files
adiknothtiwai
authored andcommitted
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>
1 parent 17d2f00 commit 1568b88

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎sound/pci/rme9652/hdspm.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3173,19 +3173,19 @@ static int hdspm_tco_ltc_frames(struct hdspm *hdspm)
31733173
HDSPM_TCO1_LTC_Format_MSB)) {
31743174
case 0:
31753175
/* 24 fps */
3176-
ret = 1;
3176+
ret = fps_24;
31773177
break;
31783178
case HDSPM_TCO1_LTC_Format_LSB:
31793179
/* 25 fps */
3180-
ret = 2;
3180+
ret = fps_25;
31813181
break;
31823182
case HDSPM_TCO1_LTC_Format_MSB:
3183-
/* 25 fps */
3184-
ret = 3;
3183+
/* 29.97 fps */
3184+
ret = fps_2997;
31853185
break;
31863186
default:
31873187
/* 30 fps */
3188-
ret = 4;
3188+
ret = fps_30;
31893189
break;
31903190
}
31913191
}

0 commit comments

Comments
 (0)