diff options
Diffstat (limited to 'sound/firewire/amdtp.c')
-rw-r--r-- | sound/firewire/amdtp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/firewire/amdtp.c b/sound/firewire/amdtp.c index e573f253e39d..31dd1cfc79b3 100644 --- a/sound/firewire/amdtp.c +++ b/sound/firewire/amdtp.c | |||
@@ -107,7 +107,7 @@ const unsigned int amdtp_syt_intervals[CIP_SFC_COUNT] = { | |||
107 | }; | 107 | }; |
108 | EXPORT_SYMBOL(amdtp_syt_intervals); | 108 | EXPORT_SYMBOL(amdtp_syt_intervals); |
109 | 109 | ||
110 | const unsigned int amdtp_rate_table[] = { | 110 | const unsigned int amdtp_rate_table[CIP_SFC_COUNT] = { |
111 | [CIP_SFC_32000] = 32000, | 111 | [CIP_SFC_32000] = 32000, |
112 | [CIP_SFC_44100] = 44100, | 112 | [CIP_SFC_44100] = 44100, |
113 | [CIP_SFC_48000] = 48000, | 113 | [CIP_SFC_48000] = 48000, |
@@ -198,7 +198,7 @@ void amdtp_stream_set_parameters(struct amdtp_stream *s, | |||
198 | WARN_ON(midi_channels > AMDTP_MAX_CHANNELS_FOR_MIDI)) | 198 | WARN_ON(midi_channels > AMDTP_MAX_CHANNELS_FOR_MIDI)) |
199 | return; | 199 | return; |
200 | 200 | ||
201 | for (sfc = 0; sfc < sizeof(amdtp_rate_table); ++sfc) | 201 | for (sfc = 0; sfc < ARRAY_SIZE(amdtp_rate_table); ++sfc) |
202 | if (amdtp_rate_table[sfc] == rate) | 202 | if (amdtp_rate_table[sfc] == rate) |
203 | goto sfc_found; | 203 | goto sfc_found; |
204 | WARN_ON(1); | 204 | WARN_ON(1); |