aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/pcm.c')
-rw-r--r--sound/core/pcm.c13
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
212const char *snd_pcm_format_name(snd_pcm_format_t format) 212const 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}
218EXPORT_SYMBOL_GPL(snd_pcm_format_name); 218EXPORT_SYMBOL_GPL(snd_pcm_format_name);
219 219
@@ -269,12 +269,12 @@ static const char *snd_pcm_stream_name(int stream)
269 269
270static const char *snd_pcm_access_name(snd_pcm_access_t access) 270static 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
275static const char *snd_pcm_subformat_name(snd_pcm_subformat_t subformat) 275static 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
280static const char *snd_pcm_tstamp_mode_name(int mode) 280static 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
285static const char *snd_pcm_state_name(snd_pcm_state_t state) 285static 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,
364static void snd_pcm_substream_proc_info_read(struct snd_info_entry *entry, 364static 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
371static void snd_pcm_substream_proc_hw_params_read(struct snd_info_entry *entry, 370static void snd_pcm_substream_proc_hw_params_read(struct snd_info_entry *entry,