aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/cs5535audio/Makefile5
-rw-r--r--sound/pci/cs5535audio/cs5535audio.c1
-rw-r--r--sound/pci/cs5535audio/cs5535audio_olpc.c15
3 files changed, 13 insertions, 8 deletions
diff --git a/sound/pci/cs5535audio/Makefile b/sound/pci/cs5535audio/Makefile
index 3e41fd39780d..ccc642269b9e 100644
--- a/sound/pci/cs5535audio/Makefile
+++ b/sound/pci/cs5535audio/Makefile
@@ -4,10 +4,7 @@
4 4
5snd-cs5535audio-y := cs5535audio.o cs5535audio_pcm.o 5snd-cs5535audio-y := cs5535audio.o cs5535audio_pcm.o
6snd-cs5535audio-$(CONFIG_PM) += cs5535audio_pm.o 6snd-cs5535audio-$(CONFIG_PM) += cs5535audio_pm.o
7 7snd-cs5535audio-$(CONFIG_OLPC) += cs5535audio_olpc.o
8ifdef CONFIG_OLPC
9snd-cs5535audio-objs += cs5535audio_olpc.o
10endif
11 8
12# Toplevel Module Dependency 9# Toplevel Module Dependency
13obj-$(CONFIG_SND_CS5535AUDIO) += snd-cs5535audio.o 10obj-$(CONFIG_SND_CS5535AUDIO) += snd-cs5535audio.o
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c
index 130f10a8d524..826e6dec2e97 100644
--- a/sound/pci/cs5535audio/cs5535audio.c
+++ b/sound/pci/cs5535audio/cs5535audio.c
@@ -174,7 +174,6 @@ static int __devinit snd_cs5535audio_mixer(struct cs5535audio *cs5535au)
174 174
175 snd_ac97_tune_hardware(cs5535au->ac97, ac97_quirks, ac97_quirk); 175 snd_ac97_tune_hardware(cs5535au->ac97, ac97_quirks, ac97_quirk);
176 176
177 /* olpc_quirks is dummied out if not olpc */
178 err = olpc_quirks(card, cs5535au->ac97); 177 err = olpc_quirks(card, cs5535au->ac97);
179 if (err < 0) { 178 if (err < 0) {
180 snd_printk(KERN_ERR "olpc quirks failed\n"); 179 snd_printk(KERN_ERR "olpc quirks failed\n");
diff --git a/sound/pci/cs5535audio/cs5535audio_olpc.c b/sound/pci/cs5535audio/cs5535audio_olpc.c
index 45b24f718d62..164f6bdab991 100644
--- a/sound/pci/cs5535audio/cs5535audio_olpc.c
+++ b/sound/pci/cs5535audio/cs5535audio_olpc.c
@@ -1,4 +1,14 @@
1#include <sound/driver.h> 1/*
2 * OLPC XO-1 additional sound features
3 *
4 * Copyright © 2006 Jaya Kumar <jayakumar.lkml@gmail.com>
5 * Copyright © 2007-2008 Andres Salomon <dilinger@debian.org>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
2#include <sound/core.h> 12#include <sound/core.h>
3#include <sound/info.h> 13#include <sound/info.h>
4#include <sound/control.h> 14#include <sound/control.h>
@@ -106,7 +116,7 @@ static struct snd_kcontrol_new olpc_cs5535audio_ctls[] __devinitdata = {
106 .info = olpc_dc_info, 116 .info = olpc_dc_info,
107 .get = olpc_dc_get, 117 .get = olpc_dc_get,
108 .put = olpc_dc_put, 118 .put = olpc_dc_put,
109 .private_value = 0 119 .private_value = 0,
110}, 120},
111{ 121{
112 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 122 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
@@ -161,4 +171,3 @@ int __devinit olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97)
161 olpc_mic_bias(ac97, 0); 171 olpc_mic_bias(ac97, 0);
162 return 0; 172 return 0;
163} 173}
164