Changeset 73 for GPL/trunk/alsa-kernel
- Timestamp:
- Jan 14, 2006, 11:32:17 PM (20 years ago)
- Location:
- GPL/trunk/alsa-kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/core/memory.c
r32 r73 186 186 } 187 187 188 char *snd_hidden_kstrdup(const char *s, int flags)189 {190 int len;191 char *buf;192 193 if (!s) return NULL;194 195 len = strlen(s) + 1;196 buf = _snd_kmalloc(len, flags);197 if (buf)198 memcpy(buf, s, len);199 return buf;200 }201 202 188 static void snd_memory_info_read(snd_info_entry_t *entry, snd_info_buffer_t * buffer) 203 189 { … … 321 307 } 322 308 309 char *snd_hidden_kstrdup(const char *s, int flags) 310 { 311 int len; 312 char *buf; 313 314 if (!s) return NULL; 315 316 len = strlen(s) + 1; 317 buf = _snd_kmalloc(len, flags); 318 if (buf) 319 memcpy(buf, s, len); 320 return buf; 321 } 322 323 323 void *kzalloc(size_t size, unsigned int flags) 324 324 { -
GPL/trunk/alsa-kernel/include/sound/driver.h
r71 r73 532 532 #define kstrdup(s, flags) snd_hidden_kstrdup(s, flags) 533 533 #endif 534 535 char *snd_hidden_kstrdup(const char *s, int flags); 536 #define kstrdup(s, flags) snd_hidden_kstrdup(s, flags) 537 534 538 char *snd_kmalloc_strdup(const char *string, int flags); 535 539 int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count); … … 741 745 #endif 742 746 747 #define printk_ratelimit() 1 748 743 749 typedef unsigned gfp_t; 744 750 745 char *kstrdup(const char *s, gfp_t gfp_flags);746 747 751 #endif /* __DRIVER_H */ -
GPL/trunk/alsa-kernel/pci/ens1370.c
r70 r73 1134 1134 &snd_es1370_hw_constraints_rates); 1135 1135 #else 1136 snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,1137 &snd_es1371_hw_constraints_dac_clock);1136 // snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 1137 // &snd_es1371_hw_constraints_dac_clock); 1138 1138 #endif 1139 1139 return 0; … … 1157 1157 &snd_es1370_hw_constraints_clock); 1158 1158 #else 1159 snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,1160 &snd_es1371_hw_constraints_dac_clock);1159 // snd_pcm_hw_constraint_ratdens(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 1160 // &snd_es1371_hw_constraints_dac_clock); 1161 1161 #endif 1162 1162 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.