Ignore:
Timestamp:
Jul 23, 2006, 11:54:27 AM (19 years ago)
Author:
vladest
Message:

Provide sources to latest exist binary. See changelog for changes

Location:
GPL/trunk/alsa-kernel/include/sound
Files:
5 edited

Legend:

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

    r76 r77  
    3232#include "info.h"
    3333
     34#define CONFIG_SND_AC97_POWER_SAVE /* experimental !!! */
    3435/*
    3536 *  AC'97 codec registers
     
    141142#define AC97_GP_DRSS_78         0x0400  /* LR 7+8 */
    142143
     144/* powerdown bits */
     145#define AC97_PD_ADC_STATUS      0x0001  /* ADC status (RO) */
     146#define AC97_PD_DAC_STATUS      0x0002  /* DAC status (RO) */
     147#define AC97_PD_MIXER_STATUS    0x0004  /* Analog mixer status (RO) */
     148#define AC97_PD_VREF_STATUS     0x0008  /* Vref status (RO) */
     149#define AC97_PD_PR0             0x0100  /* Power down PCM ADCs and input MUX */
     150#define AC97_PD_PR1             0x0200  /* Power down PCM front DAC */
     151#define AC97_PD_PR2             0x0400  /* Power down Mixer (Vref still on) */
     152#define AC97_PD_PR3             0x0800  /* Power down Mixer (Vref off) */
     153#define AC97_PD_PR4             0x1000  /* Power down AC-Link */
     154#define AC97_PD_PR5             0x2000  /* Disable internal clock usage */
     155#define AC97_PD_PR6             0x4000  /* Headphone amplifier */
     156#define AC97_PD_EAPD            0x8000  /* External Amplifer Power Down (EAPD) */
     157
    143158/* extended audio ID bit defines */
    144159#define AC97_EI_VRA             0x0001  /* Variable bit rate supported */
     
    266281/* specific - Analog Devices */
    267282#define AC97_AD_TEST            0x5a    /* test register */
     283#define AC97_AD_TEST2           0x5c    /* undocumented test register 2 */
    268284#define AC97_AD_CODEC_CFG       0x70    /* codec configuration */
    269285#define AC97_AD_JACK_SPDIF      0x72    /* Jack Sense & S/PDIF */
     
    359375#define AC97_SCAP_DETECT_BY_VENDOR (1<<8) /* use vendor registers for read tests */
    360376#define AC97_SCAP_NO_SPDIF      (1<<9)  /* don't build SPDIF controls */
     377#define AC97_SCAP_EAPD_LED      (1<<10) /* EAPD as mute LED */
    361378
    362379/* ac97->flags */
     
    379396#define AC97_HAS_NO_TONE        (1<<16) /* no Tone volume */
    380397#define AC97_HAS_NO_STD_PCM     (1<<17) /* no standard AC97 PCM volume and mute */
     398#define AC97_HAS_NO_AUX         (1<<18) /* no standard AC97 AUX volume and mute */
    381399
    382400/* rates indexes */
     
    489507        /* jack-sharing info */
    490508        unsigned char indep_surround;
    491         unsigned char channel_mode;
     509        unsigned char channel_mode;
     510
     511#ifdef CONFIG_SND_AC97_POWER_SAVE
     512        unsigned int power_up;  /* power states */
     513        struct workqueue_struct *power_workq;
     514        struct work_struct power_work;
     515#endif
    492516        struct device dev;
    493517};
     
    531555int snd_ac97_update(struct snd_ac97 *ac97, unsigned short reg, unsigned short value);
    532556int snd_ac97_update_bits(struct snd_ac97 *ac97, unsigned short reg, unsigned short mask, unsigned short value);
     557#ifdef CONFIG_SND_AC97_POWER_SAVE
     558int snd_ac97_update_power(struct snd_ac97 *ac97, int reg, int powerup);
     559#else
     560static inline int snd_ac97_update_power(struct snd_ac97 *ac97, int reg,
     561                                        int powerup)
     562{
     563        return 0;
     564}
     565#endif
    533566#ifdef CONFIG_PM
    534567void snd_ac97_suspend(struct snd_ac97 *ac97);
     
    588621    unsigned int spdif;            /* spdif pcm */
    589622#endif
    590         unsigned short aslots;             /* active slots */
    591         unsigned int rates;                /* available rates */
     623    unsigned short aslots;                 /* active slots */
     624    unsigned short cur_dbl;                /* current double-rate state */
     625    unsigned int rates;            /* available rates */
    592626        struct {
    593627                unsigned short slots;      /* driver input: requested AC97 slot numbers */
  • GPL/trunk/alsa-kernel/include/sound/asound.h

    r36 r77  
    714714 ****************************************************************************/
    715715
    716 #define SNDRV_CTL_VERSION               SNDRV_PROTOCOL_VERSION(2, 0, 3)
     716#define SNDRV_CTL_VERSION               SNDRV_PROTOCOL_VERSION(2, 0, 4)
    717717
    718718struct snd_ctl_card_info {
     
    844844};
    845845
     846struct snd_ctl_tlv {
     847    unsigned int numid; /* control element numeric identification */
     848    unsigned int length;        /* in bytes aligned to 4 */
     849    unsigned int tlv[1];        /* first TLV */
     850};
     851
    846852enum {
    847853        SNDRV_CTL_IOCTL_PVERSION = _IOR('U', 0x00, int),
     
    856862        SNDRV_CTL_IOCTL_ELEM_ADD = _IOWR('U', 0x17, struct snd_ctl_elem_info),
    857863        SNDRV_CTL_IOCTL_ELEM_REPLACE = _IOWR('U', 0x18, struct snd_ctl_elem_info),
    858         SNDRV_CTL_IOCTL_ELEM_REMOVE = _IOWR('U', 0x19, struct snd_ctl_elem_id),
     864        SNDRV_CTL_IOCTL_ELEM_REMOVE = _IOWR('U', 0x19, struct snd_ctl_elem_id),
     865        SNDRV_CTL_IOCTL_TLV_READ = _IOWR('U', 0x1a, struct snd_ctl_tlv),
    859866        SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE = _IOWR('U', 0x20, int),
    860867        SNDRV_CTL_IOCTL_HWDEP_INFO = _IOR('U', 0x21, struct snd_hwdep_info),
  • GPL/trunk/alsa-kernel/include/sound/compat_22.h

    r32 r77  
    122122#define list_for_each_safe(pos, npos, head) \
    123123        for (pos = (head)->next, npos = pos->next ; pos != (head); pos = npos, npos = pos->next)
     124
     125/**
     126 * list_for_each_entry  -       iterate over list of given type
     127 * @pos:        the type * to use as a loop counter.
     128 * @head:       the head for your list.
     129 * @member:     the name of the list_struct within the struct.
     130 */
     131#define list_for_each_entry(pos, head, member)                          \
     132        for (pos = list_entry((head)->next, typeof(*pos), member);      \
     133             pos->member.next, &pos->member != (head);  \
     134             pos = list_entry(pos->member.next, typeof(*pos), member))
    124135
    125136#ifndef IORESOURCE_IO
  • GPL/trunk/alsa-kernel/include/sound/control.h

    r32 r77  
    4040    snd_kcontrol_get_t *get;
    4141    snd_kcontrol_put_t *put;
     42    unsigned int *tlv;
    4243    unsigned long private_value;
    4344};
     
    5556        snd_kcontrol_info_t *info;
    5657        snd_kcontrol_get_t *get;
    57         snd_kcontrol_put_t *put;
     58        snd_kcontrol_put_t *put;
     59        unsigned int *tlv;
    5860        unsigned long private_value;
    5961#ifdef TARGET_OS2
  • GPL/trunk/alsa-kernel/include/sound/mpu401.h

    r32 r77  
    4646#define MPU401_HW_AUREAL                19      /* Aureal Vortex */
    4747
     48#define MPU401_INFO_INPUT       (1 << 0)        /* input stream */
     49#define MPU401_INFO_OUTPUT      (1 << 1)        /* output stream */
     50#define MPU401_INFO_INTEGRATED  (1 << 2)        /* integrated h/w port */
     51#define MPU401_INFO_MMIO        (1 << 3)        /* MMIO access */
     52#define MPU401_INFO_TX_IRQ      (1 << 4)        /* independent TX irq */
     53
    4854#define MPU401_MODE_BIT_INPUT           0
    4955#define MPU401_MODE_BIT_OUTPUT          1
     
    6268        struct snd_rawmidi *rmidi;
    6369
    64         unsigned short hardware;        /* MPU401_HW_XXXX */
     70        unsigned short hardware;        /* MPU401_HW_XXXX */
     71        unsigned int info_flags;        /* MPU401_INFO_XXX */
    6572        unsigned long port;             /* base port of MPU-401 chip */
    6673        unsigned long cport;            /* port + 1 (usually) */
     
    100107 */
    101108
    102 irqreturn_t snd_mpu401_uart_interrupt(int irq, void *dev_id, struct pt_regs *regs);
     109irqreturn_t snd_mpu401_uart_interrupt(int irq, void *dev_id,
     110                                      struct pt_regs *regs);
     111irqreturn_t snd_mpu401_uart_interrupt_tx(int irq, void *dev_id,
     112                                         struct pt_regs *regs);
    103113
    104114int snd_mpu401_uart_new(struct snd_card *card,
    105115                        int device,
    106116                        unsigned short hardware,
    107                         unsigned long port,
    108                         int integrated,
     117                        unsigned long port,
     118                        unsigned int info_flags,
    109119                        int irq,
    110120                        int irq_flags,
Note: See TracChangeset for help on using the changeset viewer.