cs5535audio.h (5a2dd72abdae75ea2960145e0549635ce4e0be96) | cs5535audio.h (3c55494670745e523f69b56edb66ca0b50a470c2) |
---|---|
1#ifndef __SOUND_CS5535AUDIO_H 2#define __SOUND_CS5535AUDIO_H 3 4#define cs_writel(cs5535au, reg, val) outl(val, (cs5535au)->port + reg) 5#define cs_writeb(cs5535au, reg, val) outb(val, (cs5535au)->port + reg) 6#define cs_readl(cs5535au, reg) inl((cs5535au)->port + reg) 7#define cs_readw(cs5535au, reg) inw((cs5535au)->port + reg) 8#define cs_readb(cs5535au, reg) inb((cs5535au)->port + reg) --- 85 unchanged lines hidden (view full) --- 94 struct cs5535audio_dma dmas[NUM_CS5535AUDIO_DMAS]; 95}; 96 97#ifdef CONFIG_PM 98int snd_cs5535audio_suspend(struct pci_dev *pci, pm_message_t state); 99int snd_cs5535audio_resume(struct pci_dev *pci); 100#endif 101 | 1#ifndef __SOUND_CS5535AUDIO_H 2#define __SOUND_CS5535AUDIO_H 3 4#define cs_writel(cs5535au, reg, val) outl(val, (cs5535au)->port + reg) 5#define cs_writeb(cs5535au, reg, val) outb(val, (cs5535au)->port + reg) 6#define cs_readl(cs5535au, reg) inl((cs5535au)->port + reg) 7#define cs_readw(cs5535au, reg) inw((cs5535au)->port + reg) 8#define cs_readb(cs5535au, reg) inb((cs5535au)->port + reg) --- 85 unchanged lines hidden (view full) --- 94 struct cs5535audio_dma dmas[NUM_CS5535AUDIO_DMAS]; 95}; 96 97#ifdef CONFIG_PM 98int snd_cs5535audio_suspend(struct pci_dev *pci, pm_message_t state); 99int snd_cs5535audio_resume(struct pci_dev *pci); 100#endif 101 |
102#if defined(CONFIG_OLPC) && defined(CONFIG_MGEODE_LX) | 102#ifdef CONFIG_OLPC |
103void __devinit olpc_prequirks(struct snd_card *card, 104 struct snd_ac97_template *ac97); 105int __devinit olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97); | 103void __devinit olpc_prequirks(struct snd_card *card, 104 struct snd_ac97_template *ac97); 105int __devinit olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97); |
106void __devexit olpc_quirks_cleanup(void); |
|
106void olpc_analog_input(struct snd_ac97 *ac97, int on); 107void olpc_mic_bias(struct snd_ac97 *ac97, int on); 108 109static inline void olpc_capture_open(struct snd_ac97 *ac97) 110{ 111 /* default to Analog Input off */ 112 olpc_analog_input(ac97, 0); 113 /* enable MIC Bias for recording */ --- 9 unchanged lines hidden (view full) --- 123} 124#else 125static inline void olpc_prequirks(struct snd_card *card, 126 struct snd_ac97_template *ac97) { } 127static inline int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) 128{ 129 return 0; 130} | 107void olpc_analog_input(struct snd_ac97 *ac97, int on); 108void olpc_mic_bias(struct snd_ac97 *ac97, int on); 109 110static inline void olpc_capture_open(struct snd_ac97 *ac97) 111{ 112 /* default to Analog Input off */ 113 olpc_analog_input(ac97, 0); 114 /* enable MIC Bias for recording */ --- 9 unchanged lines hidden (view full) --- 124} 125#else 126static inline void olpc_prequirks(struct snd_card *card, 127 struct snd_ac97_template *ac97) { } 128static inline int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) 129{ 130 return 0; 131} |
132static inline void olpc_quirks_cleanup(void) { } |
|
131static inline void olpc_analog_input(struct snd_ac97 *ac97, int on) { } 132static inline void olpc_mic_bias(struct snd_ac97 *ac97, int on) { } 133static inline void olpc_capture_open(struct snd_ac97 *ac97) { } 134static inline void olpc_capture_close(struct snd_ac97 *ac97) { } 135#endif 136 137int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535audio); 138 139#endif /* __SOUND_CS5535AUDIO_H */ 140 | 133static inline void olpc_analog_input(struct snd_ac97 *ac97, int on) { } 134static inline void olpc_mic_bias(struct snd_ac97 *ac97, int on) { } 135static inline void olpc_capture_open(struct snd_ac97 *ac97) { } 136static inline void olpc_capture_close(struct snd_ac97 *ac97) { } 137#endif 138 139int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535audio); 140 141#endif /* __SOUND_CS5535AUDIO_H */ 142 |