From: Clemens Ladisch Date: Sun, 16 Oct 2011 19:39:00 +0000 (+0200) Subject: ALSA: dice: make amdtp_rates[] const X-Git-Tag: v3.13-rc1~2^2~120^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c5280e996fdd14ffacfbbdf8ce5ac7f913b101d2;p=profile%2Fcommon%2Fkernel-common.git ALSA: dice: make amdtp_rates[] const Signed-off-by: Clemens Ladisch --- diff --git a/sound/firewire/amdtp.c b/sound/firewire/amdtp.c index a09c3b3..5540f70 100644 --- a/sound/firewire/amdtp.c +++ b/sound/firewire/amdtp.c @@ -65,7 +65,7 @@ void amdtp_out_stream_destroy(struct amdtp_out_stream *s) } EXPORT_SYMBOL(amdtp_out_stream_destroy); -unsigned int amdtp_syt_intervals[CIP_SFC_COUNT] = { +const unsigned int amdtp_syt_intervals[CIP_SFC_COUNT] = { [CIP_SFC_32000] = 8, [CIP_SFC_44100] = 8, [CIP_SFC_48000] = 8, diff --git a/sound/firewire/amdtp.h b/sound/firewire/amdtp.h index f3d03dd..839ebf8 100644 --- a/sound/firewire/amdtp.h +++ b/sound/firewire/amdtp.h @@ -103,7 +103,7 @@ void amdtp_out_stream_pcm_prepare(struct amdtp_out_stream *s); unsigned long amdtp_out_stream_pcm_pointer(struct amdtp_out_stream *s); void amdtp_out_stream_pcm_abort(struct amdtp_out_stream *s); -extern unsigned int amdtp_syt_intervals[CIP_SFC_COUNT]; +extern const unsigned int amdtp_syt_intervals[CIP_SFC_COUNT]; static inline bool amdtp_out_stream_running(struct amdtp_out_stream *s) {