Changeset 73 for GPL/trunk/alsa-kernel


Ignore:
Timestamp:
Jan 14, 2006, 11:32:17 PM (20 years ago)
Author:
vladest
Message:

Fixed compile issues
Fixed SB128 driver

Location:
GPL/trunk/alsa-kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/core/memory.c

    r32 r73  
    186186}
    187187
    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 
    202188static void snd_memory_info_read(snd_info_entry_t *entry, snd_info_buffer_t * buffer)
    203189{
     
    321307}
    322308
     309char *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
    323323void *kzalloc(size_t size, unsigned int flags)
    324324{
  • GPL/trunk/alsa-kernel/include/sound/driver.h

    r71 r73  
    532532#define kstrdup(s, flags)  snd_hidden_kstrdup(s, flags)
    533533#endif
     534
     535char *snd_hidden_kstrdup(const char *s, int flags);
     536#define kstrdup(s, flags)  snd_hidden_kstrdup(s, flags)
     537
    534538char *snd_kmalloc_strdup(const char *string, int flags);
    535539int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count);
     
    741745#endif
    742746
     747#define printk_ratelimit()      1
     748
    743749typedef unsigned gfp_t;
    744750
    745 char *kstrdup(const char *s, gfp_t gfp_flags);
    746 
    747751#endif                          /* __DRIVER_H */
  • GPL/trunk/alsa-kernel/pci/ens1370.c

    r70 r73  
    11341134                                   &snd_es1370_hw_constraints_rates);
    11351135#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);
    11381138#endif
    11391139        return 0;
     
    11571157                                      &snd_es1370_hw_constraints_clock);
    11581158#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);
    11611161#endif
    11621162        return 0;
Note: See TracChangeset for help on using the changeset viewer.