Changeset 34 for GPL/trunk/alsa-kernel/include/sound/cs46xx.h
- Timestamp:
- Dec 11, 2005, 5:57:39 PM (20 years ago)
- File:
-
- 1 edited
-
GPL/trunk/alsa-kernel/include/sound/cs46xx.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/cs46xx.h
r33 r34 29 29 #include "ac97_codec.h" 30 30 #include "cs46xx_dsp_spos.h" 31 32 #ifndef PCI_VENDOR_ID_CIRRUS33 #define PCI_VENDOR_ID_CIRRUS 0x101334 #endif35 #ifndef PCI_DEVICE_ID_CIRRUS_461036 #define PCI_DEVICE_ID_CIRRUS_4610 0x600137 #endif38 #ifndef PCI_DEVICE_ID_CIRRUS_461239 #define PCI_DEVICE_ID_CIRRUS_4612 0x600340 #endif41 #ifndef PCI_DEVICE_ID_CIRRUS_461542 #define PCI_DEVICE_ID_CIRRUS_4615 0x600443 #endif44 31 45 32 /* … … 1645 1632 #define CS46XX_MIXER_SPDIF_OUTPUT_ELEMENT 2 1646 1633 1647 typedef struct _snd_cs46xx cs46xx_t; 1648 1649 typedef struct _snd_cs46xx_pcm_t { 1634 1635 struct snd_cs46xx_pcm { 1650 1636 struct snd_dma_buffer hw_buf; 1651 1637 1652 1638 unsigned int ctl; 1653 unsigned int shift; /* Shift count to trasform frames in bytes */1654 snd_pcm_indirect_t pcm_rec;1655 s nd_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; 1658 1644 1659 1645 int pcm_channel_id; /* Fron Rear, Center Lfe ... */ 1660 } cs46xx_pcm_t;1661 1662 typedef struct{1646 }; 1647 1648 struct snd_cs46xx_region { 1663 1649 char name[24]; 1664 unsigned long base;1665 void __iomem *remap_addr;1650 unsigned long base; 1651 void __iomem *remap_addr; 1666 1652 unsigned long size; 1667 1653 struct resource *resource; 1668 } snd_cs46xx_region_t;1669 1670 struct _snd_cs46xx {1654 }; 1655 1656 struct snd_cs46xx { 1671 1657 int irq; 1672 1658 unsigned long ba0_addr; … … 1674 1660 union { 1675 1661 struct { 1676 s nd_cs46xx_region_tba0;1677 s nd_cs46xx_region_tdata0;1678 s nd_cs46xx_region_tdata1;1679 s nd_cs46xx_region_tpmem;1680 s nd_cs46xx_region_treg;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; 1681 1667 } name; 1682 s nd_cs46xx_region_tidx[5];1668 struct snd_cs46xx_region idx[5]; 1683 1669 } region; 1684 1670 1685 1671 unsigned int mode; 1686 1672 1687 struct {1673 struct { 1688 1674 struct snd_dma_buffer hw_buf; 1689 1675 1690 1676 unsigned int ctl; 1691 unsigned int shift; /* Shift count to trasform frames in bytes */1692 snd_pcm_indirect_t pcm_rec;1693 s nd_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; 1694 1680 } capt; 1695 1681 1696 1682 1697 1683 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]; 1700 1686 1701 1687 struct pci_dev *pci; 1702 s nd_card_t*card;1703 s nd_pcm_t*pcm;1704 1705 s nd_rawmidi_t*rmidi;1706 s nd_rawmidi_substream_t*midi_input;1707 s nd_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; 1708 1694 1709 1695 spinlock_t reg_lock; … … 1712 1698 1713 1699 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 1719 1704 int acpi_port; 1720 s nd_kcontrol_t*eapd_switch; /* for amplifier hack */1705 struct snd_kcontrol *eapd_switch; /* for amplifier hack */ 1721 1706 int accept_valid; /* accept mmap valid (for OSS) */ 1722 1707 1723 struct snd_cs46xx_gameport *gameport;1708 struct gameport *gameport; 1724 1709 1725 1710 #ifdef CONFIG_SND_CS46XX_DEBUG_GPIO … … 1729 1714 struct semaphore spos_mutex; 1730 1715 1731 dsp_spos_instance_t* dsp_spos_instance;1732 1733 s nd_pcm_t*pcm_rear;1734 s nd_pcm_t*pcm_center_lfe;1735 s nd_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; 1736 1721 #else /* for compatibility */ 1737 cs46xx_pcm_t*playback_pcm;1722 struct snd_cs46xx_pcm *playback_pcm; 1738 1723 unsigned int play_ctl; 1739 1724 #endif 1740 1725 }; 1741 1726 1742 int snd_cs46xx_create(s nd_card_t*card,1727 int snd_cs46xx_create(struct snd_card *card, 1743 1728 struct pci_dev *pci, 1744 1729 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); 1731 int snd_cs46xx_suspend(struct pci_dev *pci, pm_message_t state); 1732 int snd_cs46xx_resume(struct pci_dev *pci); 1733 1734 int snd_cs46xx_pcm(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm); 1735 int snd_cs46xx_pcm_rear(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm); 1736 int snd_cs46xx_pcm_iec958(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm); 1737 int snd_cs46xx_pcm_center_lfe(struct snd_cs46xx *chip, int device, struct snd_pcm **rpcm); 1738 int snd_cs46xx_mixer(struct snd_cs46xx *chip, int spdif_device); 1739 int snd_cs46xx_midi(struct snd_cs46xx *chip, int device, struct snd_rawmidi **rmidi); 1740 int snd_cs46xx_start_dsp(struct snd_cs46xx *chip); 1741 int snd_cs46xx_gameport(struct snd_cs46xx *chip); 1742 1755 1743 #endif /* __SOUND_CS46XX_H */
Note:
See TracChangeset
for help on using the changeset viewer.
