Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1568b880 authored by Adrian Knoth's avatar Adrian Knoth Committed by Takashi Iwai
Browse files

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: default avatarAdrian Knoth <adi@drcomp.erfurt.thur.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 17d2f008
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -3173,19 +3173,19 @@ static int hdspm_tco_ltc_frames(struct hdspm *hdspm)
					HDSPM_TCO1_LTC_Format_MSB)) {
					HDSPM_TCO1_LTC_Format_MSB)) {
		case 0:
		case 0:
			/* 24 fps */
			/* 24 fps */
			ret = 1;
			ret = fps_24;
			break;
			break;
		case HDSPM_TCO1_LTC_Format_LSB:
		case HDSPM_TCO1_LTC_Format_LSB:
			/* 25 fps */
			/* 25 fps */
			ret = 2;
			ret = fps_25;
			break;
			break;
		case HDSPM_TCO1_LTC_Format_MSB:
		case HDSPM_TCO1_LTC_Format_MSB:
			/* 25 fps */
			/* 29.97 fps */
			ret = 3;
			ret = fps_2997;
			break;
			break;
		default:
		default:
			/* 30 fps */
			/* 30 fps */
			ret = 4;
			ret = fps_30;
			break;
			break;
		}
		}
	}
	}