Ignore:
Timestamp:
Dec 11, 2005, 5:57:39 PM (20 years ago)
Author:
vladest
Message:

Latest update from ALSA. some intial > 15 interrupts support

File:
1 edited

Legend:

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

    r33 r34  
    2929#include "ac97_codec.h"
    3030#include "cs46xx_dsp_spos.h"
    31 
    32 #ifndef PCI_VENDOR_ID_CIRRUS
    33 #define PCI_VENDOR_ID_CIRRUS            0x1013
    34 #endif
    35 #ifndef PCI_DEVICE_ID_CIRRUS_4610
    36 #define PCI_DEVICE_ID_CIRRUS_4610       0x6001
    37 #endif
    38 #ifndef PCI_DEVICE_ID_CIRRUS_4612
    39 #define PCI_DEVICE_ID_CIRRUS_4612       0x6003
    40 #endif
    41 #ifndef PCI_DEVICE_ID_CIRRUS_4615
    42 #define PCI_DEVICE_ID_CIRRUS_4615       0x6004
    43 #endif
    4431
    4532/*
     
    16451632#define CS46XX_MIXER_SPDIF_OUTPUT_ELEMENT   2
    16461633
    1647 typedef struct _snd_cs46xx cs46xx_t;
    1648 
    1649 typedef struct _snd_cs46xx_pcm_t {
     1634
     1635struct snd_cs46xx_pcm {
    16501636        struct snd_dma_buffer hw_buf;
    16511637 
    16521638        unsigned int ctl;
    1653         unsigned int shift;     /* Shift count to trasform frames in bytes */
    1654         snd_pcm_indirect_t pcm_rec;
    1655         snd_pcm_substream_t *substream;
    1656 
    1657         pcm_channel_descriptor_t * pcm_channel;
     1639        unsigned int shift;     /* Shift count to trasform frames in bytes */
     1640        struct snd_pcm_indirect pcm_rec;
     1641        struct snd_pcm_substream *substream;
     1642
     1643        struct dsp_pcm_channel_descriptor * pcm_channel;
    16581644
    16591645        int pcm_channel_id;    /* Fron Rear, Center Lfe  ... */
    1660 } cs46xx_pcm_t;
    1661 
    1662 typedef struct {
     1646};
     1647
     1648struct snd_cs46xx_region {
    16631649        char name[24];
    1664         unsigned long base;
    1665         void __iomem *remap_addr;
     1650        unsigned long base;
     1651        void __iomem *remap_addr;
    16661652        unsigned long size;
    16671653        struct resource *resource;
    1668 } snd_cs46xx_region_t;
    1669 
    1670 struct _snd_cs46xx {
     1654};
     1655
     1656struct snd_cs46xx {
    16711657        int irq;
    16721658        unsigned long ba0_addr;
     
    16741660        union {
    16751661                struct {
    1676                         snd_cs46xx_region_t ba0;
    1677                         snd_cs46xx_region_t data0;
    1678                         snd_cs46xx_region_t data1;
    1679                         snd_cs46xx_region_t pmem;
    1680                         snd_cs46xx_region_t reg;
     1662                        struct snd_cs46xx_region ba0;
     1663                        struct snd_cs46xx_region data0;
     1664                        struct snd_cs46xx_region data1;
     1665                        struct snd_cs46xx_region pmem;
     1666                        struct snd_cs46xx_region reg;
    16811667                } name;
    1682                 snd_cs46xx_region_t idx[5];
     1668                struct snd_cs46xx_region idx[5];
    16831669        } region;
    16841670
    16851671        unsigned int mode;
    16861672       
    1687         struct {
     1673        struct {
    16881674                struct snd_dma_buffer hw_buf;
    16891675
    16901676                unsigned int ctl;
    1691                 unsigned int shift;     /* Shift count to trasform frames in bytes */
    1692                 snd_pcm_indirect_t pcm_rec;
    1693                 snd_pcm_substream_t *substream;
     1677                unsigned int shift;     /* Shift count to trasform frames in bytes */
     1678                struct snd_pcm_indirect pcm_rec;
     1679                struct snd_pcm_substream *substream;
    16941680        } capt;
    16951681
    16961682
    16971683        int nr_ac97_codecs;
    1698         ac97_bus_t *ac97_bus;
    1699         ac97_t *ac97[MAX_NR_AC97];
     1684        struct snd_ac97_bus *ac97_bus;
     1685        struct snd_ac97 *ac97[MAX_NR_AC97];
    17001686
    17011687        struct pci_dev *pci;
    1702         snd_card_t *card;
    1703         snd_pcm_t *pcm;
    1704 
    1705         snd_rawmidi_t *rmidi;
    1706         snd_rawmidi_substream_t *midi_input;
    1707         snd_rawmidi_substream_t *midi_output;
     1688        struct snd_card *card;
     1689        struct snd_pcm *pcm;
     1690
     1691        struct snd_rawmidi *rmidi;
     1692        struct snd_rawmidi_substream *midi_input;
     1693        struct snd_rawmidi_substream *midi_output;
    17081694
    17091695        spinlock_t reg_lock;
     
    17121698
    17131699        int amplifier;
    1714         void (*amplifier_ctrl)(cs46xx_t *, int);
    1715         void (*active_ctrl)(cs46xx_t *, int);
    1716         void (*mixer_init)(cs46xx_t *);
    1717 
    1718         struct pci_dev *acpi_dev;
     1700        void (*amplifier_ctrl)(struct snd_cs46xx *, int);
     1701        void (*active_ctrl)(struct snd_cs46xx *, int);
     1702        void (*mixer_init)(struct snd_cs46xx *);
     1703
    17191704        int acpi_port;
    1720         snd_kcontrol_t *eapd_switch; /* for amplifier hack */
     1705        struct snd_kcontrol *eapd_switch; /* for amplifier hack */
    17211706        int accept_valid;       /* accept mmap valid (for OSS) */
    17221707
    1723         struct snd_cs46xx_gameport *gameport;
     1708        struct gameport *gameport;
    17241709
    17251710#ifdef CONFIG_SND_CS46XX_DEBUG_GPIO
     
    17291714        struct semaphore spos_mutex;
    17301715
    1731         dsp_spos_instance_t * dsp_spos_instance;
    1732 
    1733         snd_pcm_t *pcm_rear;
    1734         snd_pcm_t *pcm_center_lfe;
    1735         snd_pcm_t *pcm_iec958;
     1716        struct dsp_spos_instance * dsp_spos_instance;
     1717
     1718        struct snd_pcm *pcm_rear;
     1719        struct snd_pcm *pcm_center_lfe;
     1720        struct snd_pcm *pcm_iec958;
    17361721#else /* for compatibility */
    1737         cs46xx_pcm_t *playback_pcm;
     1722        struct snd_cs46xx_pcm *playback_pcm;
    17381723        unsigned int play_ctl;
    17391724#endif
    17401725};
    17411726
    1742 int snd_cs46xx_create(snd_card_t *card,
     1727int snd_cs46xx_create(struct snd_card *card,
    17431728                      struct pci_dev *pci,
    17441729                      int external_amp, int thinkpad,
    1745                       cs46xx_t **rcodec);
    1746 
    1747 int snd_cs46xx_pcm(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
    1748 int snd_cs46xx_pcm_rear(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
    1749 int snd_cs46xx_pcm_iec958(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
    1750 int snd_cs46xx_pcm_center_lfe(cs46xx_t *chip, int device, snd_pcm_t **rpcm);
    1751 int snd_cs46xx_mixer(cs46xx_t *chip);
    1752 int snd_cs46xx_midi(cs46xx_t *chip, int device, snd_rawmidi_t **rmidi);
    1753 int snd_cs46xx_start_dsp(cs46xx_t *chip);
    1754 void snd_cs46xx_gameport(cs46xx_t *chip);
     1730                      struct snd_cs46xx **rcodec);
     1731int snd_cs46xx_suspend(struct pci_dev *pci, pm_message_t state);
     1732int snd_cs46xx_resume(struct pci_dev *pci);
     1733
     1734int snd_cs46xx_pcm(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm);
     1735int snd_cs46xx_pcm_rear(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm);
     1736int snd_cs46xx_pcm_iec958(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm);
     1737int snd_cs46xx_pcm_center_lfe(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm);
     1738int snd_cs46xx_mixer(struct snd_cs46xx *chip, int spdif_device);
     1739int snd_cs46xx_midi(struct snd_cs46xx *chip, int device, struct snd_rawmidi **rmidi);
     1740int snd_cs46xx_start_dsp(struct snd_cs46xx *chip);
     1741int snd_cs46xx_gameport(struct snd_cs46xx *chip);
     1742
    17551743#endif /* __SOUND_CS46XX_H */
Note: See TracChangeset for help on using the changeset viewer.