summaryrefslogtreecommitdiffstats
path: root/sound/pci/cs5535audio/cs5535audio.h
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2008-11-06 16:44:08 -0500
committerTakashi Iwai <tiwai@suse.de>2008-12-10 17:14:40 +0100
commit3556d18465c6e67c7a8f436428b95671add02f57 (patch)
treed7ab24c23a9fb2c9ad99588e4bf29683de60c943 /sound/pci/cs5535audio/cs5535audio.h
parentc8974be5465b87414fa542cf9cca1a1ba21b8d60 (diff)
downloadop-kernel-dev-3556d18465c6e67c7a8f436428b95671add02f57.zip
op-kernel-dev-3556d18465c6e67c7a8f436428b95671add02f57.tar.gz
ALSA: cs5535audio: invert EAPD for OLPC (newer than B3)
Fix an audible pop described in <http://dev.laptop.org/ticket/977>. Originally based upon fixes by Mitch Bradley and Chris Ball. Signed-off-by: Andres Salomon <dilinger@debian.org>
Diffstat (limited to 'sound/pci/cs5535audio/cs5535audio.h')
-rw-r--r--sound/pci/cs5535audio/cs5535audio.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio.h b/sound/pci/cs5535audio/cs5535audio.h
index adcb213..93602cf 100644
--- a/sound/pci/cs5535audio/cs5535audio.h
+++ b/sound/pci/cs5535audio/cs5535audio.h
@@ -103,9 +103,16 @@ int snd_cs5535audio_resume(struct pci_dev *pci);
#endif
#ifdef CONFIG_OLPC
-int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97);
+void __devinit olpc_prequirks(struct snd_card *card,
+ struct snd_ac97_template *ac97);
+int __devinit olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97);
#else
-#define olpc_quirks(arg, arg2) (0)
+static inline void olpc_prequirks(struct snd_card *card,
+ struct snd_ac97_template *ac97) { }
+static inline int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97)
+{
+ return 0;
+}
#endif
int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535audio);
OpenPOWER on IntegriCloud