diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /sound/core/pcm.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'sound/core/pcm.c')
-rw-r--r-- | sound/core/pcm.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sound/core/pcm.c b/sound/core/pcm.c index ac242a377aea..ee9abb2d9001 100644 --- a/sound/core/pcm.c +++ b/sound/core/pcm.c | |||
@@ -211,9 +211,9 @@ static char *snd_pcm_format_names[] = { | |||
211 | 211 | ||
212 | const char *snd_pcm_format_name(snd_pcm_format_t format) | 212 | const char *snd_pcm_format_name(snd_pcm_format_t format) |
213 | { | 213 | { |
214 | if (format >= ARRAY_SIZE(snd_pcm_format_names)) | 214 | if ((__force unsigned int)format >= ARRAY_SIZE(snd_pcm_format_names)) |
215 | return "Unknown"; | 215 | return "Unknown"; |
216 | return snd_pcm_format_names[format]; | 216 | return snd_pcm_format_names[(__force unsigned int)format]; |
217 | } | 217 | } |
218 | EXPORT_SYMBOL_GPL(snd_pcm_format_name); | 218 | EXPORT_SYMBOL_GPL(snd_pcm_format_name); |
219 | 219 | ||
@@ -269,12 +269,12 @@ static const char *snd_pcm_stream_name(int stream) | |||
269 | 269 | ||
270 | static const char *snd_pcm_access_name(snd_pcm_access_t access) | 270 | static const char *snd_pcm_access_name(snd_pcm_access_t access) |
271 | { | 271 | { |
272 | return snd_pcm_access_names[access]; | 272 | return snd_pcm_access_names[(__force int)access]; |
273 | } | 273 | } |
274 | 274 | ||
275 | static const char *snd_pcm_subformat_name(snd_pcm_subformat_t subformat) | 275 | static const char *snd_pcm_subformat_name(snd_pcm_subformat_t subformat) |
276 | { | 276 | { |
277 | return snd_pcm_subformat_names[subformat]; | 277 | return snd_pcm_subformat_names[(__force int)subformat]; |
278 | } | 278 | } |
279 | 279 | ||
280 | static const char *snd_pcm_tstamp_mode_name(int mode) | 280 | static const char *snd_pcm_tstamp_mode_name(int mode) |
@@ -284,7 +284,7 @@ static const char *snd_pcm_tstamp_mode_name(int mode) | |||
284 | 284 | ||
285 | static const char *snd_pcm_state_name(snd_pcm_state_t state) | 285 | static const char *snd_pcm_state_name(snd_pcm_state_t state) |
286 | { | 286 | { |
287 | return snd_pcm_state_names[state]; | 287 | return snd_pcm_state_names[(__force int)state]; |
288 | } | 288 | } |
289 | 289 | ||
290 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) | 290 | #if defined(CONFIG_SND_PCM_OSS) || defined(CONFIG_SND_PCM_OSS_MODULE) |
@@ -364,8 +364,7 @@ static void snd_pcm_stream_proc_info_read(struct snd_info_entry *entry, | |||
364 | static void snd_pcm_substream_proc_info_read(struct snd_info_entry *entry, | 364 | static void snd_pcm_substream_proc_info_read(struct snd_info_entry *entry, |
365 | struct snd_info_buffer *buffer) | 365 | struct snd_info_buffer *buffer) |
366 | { | 366 | { |
367 | snd_pcm_proc_info_read((struct snd_pcm_substream *)entry->private_data, | 367 | snd_pcm_proc_info_read(entry->private_data, buffer); |
368 | buffer); | ||
369 | } | 368 | } |
370 | 369 | ||
371 | static void snd_pcm_substream_proc_hw_params_read(struct snd_info_entry *entry, | 370 | static void snd_pcm_substream_proc_hw_params_read(struct snd_info_entry *entry, |