Ignore:
Timestamp:
Oct 23, 2006, 11:07:11 PM (19 years ago)
Author:
vladest
Message:

SB code update
HDA code update
Some other updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/include/sound/control.h

    r77 r84  
    2828typedef int (snd_kcontrol_get_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol);
    2929typedef int (snd_kcontrol_put_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucontrol);
     30typedef int (snd_kcontrol_tlv_rw_t)(struct snd_kcontrol *kcontrol,
     31                                    int op_flag, /* 0=read,1=write,-1=command */
     32                                    unsigned int size,
     33                                    unsigned int __user *tlv);
    3034
    3135struct snd_kcontrol_new {
     
    4044    snd_kcontrol_get_t *get;
    4145    snd_kcontrol_put_t *put;
    42     unsigned int *tlv;
     46    union {
     47        snd_kcontrol_tlv_rw_t *c;
     48        unsigned int *p;
     49    } tlv;
    4350    unsigned long private_value;
    4451};
     
    5764        snd_kcontrol_get_t *get;
    5865        snd_kcontrol_put_t *put;
    59         unsigned int *tlv;
     66        union {
     67                snd_kcontrol_tlv_rw_t *c;
     68                unsigned int *p;
     69        } tlv;
    6070        unsigned long private_value;
    6171#ifdef TARGET_OS2
     
    140150}
    141151
     152static inline struct snd_ctl_elem_id *snd_ctl_build_ioff(struct snd_ctl_elem_id *dst_id,
     153                                                    struct snd_kcontrol *src_kctl,
     154                                                    unsigned int offset)
     155{
     156        *dst_id = src_kctl->id;
     157        dst_id->index += offset;
     158        dst_id->numid += offset;
     159        return dst_id;
     160}
     161
    142162#endif                          /* __CONTROL_H */
Note: See TracChangeset for help on using the changeset viewer.