diff options
Diffstat (limited to 'sound/pci/rme9652/hdspm.c')
-rw-r--r-- | sound/pci/rme9652/hdspm.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c index b7702b225c3e..367dd411247d 100644 --- a/sound/pci/rme9652/hdspm.c +++ b/sound/pci/rme9652/hdspm.c | |||
@@ -1017,6 +1017,17 @@ static void hdspm_set_sgbuf(struct hdspm *hdspm, | |||
1017 | struct snd_pcm_substream *substream, | 1017 | struct snd_pcm_substream *substream, |
1018 | unsigned int reg, int channels); | 1018 | unsigned int reg, int channels); |
1019 | 1019 | ||
1020 | static int hdspm_aes_sync_check(struct hdspm *hdspm, int idx); | ||
1021 | static int hdspm_wc_sync_check(struct hdspm *hdspm); | ||
1022 | static int hdspm_tco_sync_check(struct hdspm *hdspm); | ||
1023 | static int hdspm_sync_in_sync_check(struct hdspm *hdspm); | ||
1024 | |||
1025 | static int hdspm_get_aes_sample_rate(struct hdspm *hdspm, int index); | ||
1026 | static int hdspm_get_tco_sample_rate(struct hdspm *hdspm); | ||
1027 | static int hdspm_get_wc_sample_rate(struct hdspm *hdspm); | ||
1028 | |||
1029 | |||
1030 | |||
1020 | static inline int HDSPM_bit2freq(int n) | 1031 | static inline int HDSPM_bit2freq(int n) |
1021 | { | 1032 | { |
1022 | static const int bit2freq_tab[] = { | 1033 | static const int bit2freq_tab[] = { |
@@ -1152,10 +1163,7 @@ static int hdspm_rate_multiplier(struct hdspm *hdspm, int rate) | |||
1152 | return rate; | 1163 | return rate; |
1153 | } | 1164 | } |
1154 | 1165 | ||
1155 | static int hdspm_tco_sync_check(struct hdspm *hdspm); | 1166 | /* check for external sample rate, returns the sample rate in Hz*/ |
1156 | static int hdspm_sync_in_sync_check(struct hdspm *hdspm); | ||
1157 | |||
1158 | /* check for external sample rate */ | ||
1159 | static int hdspm_external_sample_rate(struct hdspm *hdspm) | 1167 | static int hdspm_external_sample_rate(struct hdspm *hdspm) |
1160 | { | 1168 | { |
1161 | unsigned int status, status2, timecode; | 1169 | unsigned int status, status2, timecode; |