| 1 | # |
| 2 | # Copyright (C) 2006-2012 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | SOUND_MENU:=Sound Support |
| 9 | |
| 10 | # allow targets to override the soundcore stuff |
| 11 | SOUNDCORE_LOAD ?= \ |
| 12 | soundcore \ |
| 13 | snd \ |
| 14 | snd-page-alloc \ |
| 15 | snd-hwdep \ |
| 16 | snd-seq-device \ |
| 17 | snd-rawmidi \ |
| 18 | snd-timer \ |
| 19 | snd-pcm \ |
| 20 | snd-mixer-oss \ |
| 21 | snd-pcm-oss |
| 22 | |
| 23 | SOUNDCORE_FILES ?= \ |
| 24 | $(LINUX_DIR)/sound/soundcore.ko \ |
| 25 | $(LINUX_DIR)/sound/core/snd.ko \ |
| 26 | $(LINUX_DIR)/sound/core/snd-page-alloc.ko \ |
| 27 | $(LINUX_DIR)/sound/core/snd-hwdep.ko \ |
| 28 | $(LINUX_DIR)/sound/core/seq/snd-seq-device.ko \ |
| 29 | $(LINUX_DIR)/sound/core/snd-rawmidi.ko \ |
| 30 | $(LINUX_DIR)/sound/core/snd-timer.ko \ |
| 31 | $(LINUX_DIR)/sound/core/snd-pcm.ko \ |
| 32 | $(LINUX_DIR)/sound/core/oss/snd-mixer-oss.ko \ |
| 33 | $(LINUX_DIR)/sound/core/oss/snd-pcm-oss.ko |
| 34 | |
| 35 | define KernelPackage/sound-core |
| 36 | SUBMENU:=$(SOUND_MENU) |
| 37 | TITLE:=Sound support |
| 38 | DEPENDS:=@AUDIO_SUPPORT |
| 39 | KCONFIG:= \ |
| 40 | CONFIG_SOUND \ |
| 41 | CONFIG_SND \ |
| 42 | CONFIG_SND_HWDEP \ |
| 43 | CONFIG_SND_RAWMIDI \ |
| 44 | CONFIG_SND_TIMER \ |
| 45 | CONFIG_SND_PCM \ |
| 46 | CONFIG_SND_SEQUENCER \ |
| 47 | CONFIG_SND_VIRMIDI \ |
| 48 | CONFIG_SND_SEQ_DUMMY \ |
| 49 | CONFIG_SND_SEQUENCER_OSS=y \ |
| 50 | CONFIG_HOSTAUDIO \ |
| 51 | CONFIG_SND_PCM_OSS \ |
| 52 | CONFIG_SND_MIXER_OSS \ |
| 53 | CONFIG_SOUND_OSS_CORE_PRECLAIM=y |
| 54 | FILES:=$(SOUNDCORE_FILES) |
| 55 | AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD)) |
| 56 | $(call AddDepends/input) |
| 57 | endef |
| 58 | |
| 59 | define KernelPackage/sound-core/uml |
| 60 | FILES:= \ |
| 61 | $(LINUX_DIR)/sound/soundcore.ko \ |
| 62 | $(LINUX_DIR)/arch/um/drivers/hostaudio.ko |
| 63 | AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio) |
| 64 | endef |
| 65 | |
| 66 | define KernelPackage/sound-core/description |
| 67 | Kernel modules for sound support |
| 68 | endef |
| 69 | |
| 70 | $(eval $(call KernelPackage,sound-core)) |
| 71 | |
| 72 | |
| 73 | define AddDepends/sound |
| 74 | SUBMENU:=$(SOUND_MENU) |
| 75 | DEPENDS+=kmod-sound-core $(1) @!TARGET_uml |
| 76 | endef |
| 77 | |
| 78 | |
| 79 | define KernelPackage/ac97 |
| 80 | TITLE:=ac97 controller |
| 81 | KCONFIG:=CONFIG_SND_AC97_CODEC |
| 82 | FILES:= \ |
| 83 | $(LINUX_DIR)/sound/ac97_bus.ko \ |
| 84 | $(LINUX_DIR)/sound/pci/ac97/snd-ac97-codec.ko |
| 85 | AUTOLOAD:=$(call AutoLoad,35,ac97_bus snd-ac97-codec) |
| 86 | $(call AddDepends/sound) |
| 87 | endef |
| 88 | |
| 89 | define KernelPackage/ac97/description |
| 90 | The ac97 controller |
| 91 | endef |
| 92 | |
| 93 | $(eval $(call KernelPackage,ac97)) |
| 94 | |
| 95 | |
| 96 | define KernelPackage/sound-seq |
| 97 | TITLE:=Sequencer support |
| 98 | FILES:= \ |
| 99 | $(LINUX_DIR)/sound/core/seq/snd-seq.ko \ |
| 100 | $(LINUX_DIR)/sound/core/seq/snd-seq-midi-event.ko \ |
| 101 | $(LINUX_DIR)/sound/core/seq/snd-seq-midi.ko |
| 102 | AUTOLOAD:=$(call AutoLoad,35,snd-seq snd-seq-midi-event snd-seq-midi) |
| 103 | $(call AddDepends/sound) |
| 104 | endef |
| 105 | |
| 106 | define KernelPackage/sound-seq/description |
| 107 | Kernel modules for sequencer support |
| 108 | endef |
| 109 | |
| 110 | $(eval $(call KernelPackage,sound-seq)) |
| 111 | |
| 112 | |
| 113 | define KernelPackage/sound-i8x0 |
| 114 | TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller |
| 115 | DEPENDS:=+kmod-ac97 |
| 116 | KCONFIG:=CONFIG_SND_INTEL8X0 |
| 117 | FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.ko |
| 118 | AUTOLOAD:=$(call AutoLoad,36,snd-intel8x0) |
| 119 | $(call AddDepends/sound) |
| 120 | endef |
| 121 | |
| 122 | define KernelPackage/sound-i8x0/description |
| 123 | support for the integrated AC97 sound device on motherboards |
| 124 | with Intel/SiS/nVidia/AMD chipsets, or ALi chipsets using |
| 125 | the M5455 Audio Controller. |
| 126 | endef |
| 127 | |
| 128 | $(eval $(call KernelPackage,sound-i8x0)) |
| 129 | |
| 130 | |
| 131 | define KernelPackage/sound-cs5535audio |
| 132 | TITLE:=CS5535 PCI Controller |
| 133 | DEPENDS:=+kmod-ac97 |
| 134 | KCONFIG:=CONFIG_SND_CS5535AUDIO |
| 135 | FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.ko |
| 136 | AUTOLOAD:=$(call AutoLoad,36,snd-cs5535audio) |
| 137 | $(call AddDepends/sound) |
| 138 | endef |
| 139 | |
| 140 | define KernelPackage/sound-cs5535audio/description |
| 141 | support for the integrated AC97 sound device on olpc |
| 142 | endef |
| 143 | |
| 144 | $(eval $(call KernelPackage,sound-cs5535audio)) |
| 145 | |
| 146 | |
| 147 | define KernelPackage/sound-soc-core |
| 148 | TITLE:=SoC sound support |
| 149 | DEPENDS:=+kmod-regmap |
| 150 | KCONFIG:= \ |
| 151 | CONFIG_SND_SOC \ |
| 152 | CONFIG_SND_SOC_DMAENGINE_PCM=y \ |
| 153 | CONFIG_SND_SOC_ALL_CODECS=n |
| 154 | FILES:=$(LINUX_DIR)/sound/soc/snd-soc-core.ko |
| 155 | AUTOLOAD:=$(call AutoLoad,55, snd-soc-core) |
| 156 | $(call AddDepends/sound) |
| 157 | endef |
| 158 | |
| 159 | $(eval $(call KernelPackage,sound-soc-core)) |
| 160 | |
| 161 | |
| 162 | define KernelPackage/sound-soc-ac97 |
| 163 | TITLE:=AC97 Codec support |
| 164 | KCONFIG:=CONFIG_SND_SOC_AC97_CODEC |
| 165 | FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-ac97.ko |
| 166 | AUTOLOAD:=$(call AutoLoad,57,snd-soc-ac97) |
| 167 | DEPENDS:=+kmod-ac97 +kmod-sound-soc-core |
| 168 | $(call AddDepends/sound) |
| 169 | endef |
| 170 | |
| 171 | $(eval $(call KernelPackage,sound-soc-ac97)) |
| 172 | |
| 173 | |
| 174 | define KernelPackage/sound-soc-gw_avila |
| 175 | TITLE:=Gateworks Avila SoC sound support |
| 176 | KCONFIG:= \ |
| 177 | CONFIG_SND_GW_AVILA_SOC \ |
| 178 | CONFIG_SND_GW_AVILA_SOC_PCM \ |
| 179 | CONFIG_SND_GW_AVILA_SOC_HSS |
| 180 | FILES:= \ |
| 181 | $(LINUX_DIR)/sound/soc/codecs/snd-soc-tlv320aic3x.ko \ |
| 182 | $(LINUX_DIR)/sound/soc/gw-avila/snd-soc-gw-avila.ko \ |
| 183 | $(LINUX_DIR)/sound/soc/gw-avila/snd-soc-gw-avila-pcm.ko \ |
| 184 | $(LINUX_DIR)/sound/soc/gw-avila/snd-soc-gw-avila-hss.ko |
| 185 | AUTOLOAD:=$(call AutoLoad,65,snd-soc-tlv320aic3x snd-soc-gw-avila snd-soc-gw-avila-pcm snd-soc-gw-avila-hss) |
| 186 | DEPENDS:=@TARGET_ixp4xx +kmod-sound-soc-core |
| 187 | $(call AddDepends/sound) |
| 188 | endef |
| 189 | |
| 190 | $(eval $(call KernelPackage,sound-soc-gw_avila)) |
| 191 | |
| 192 | |
| 193 | define KernelPackage/pcspkr |
| 194 | DEPENDS:=@!TARGET_x86 |
| 195 | TITLE:=PC speaker support |
| 196 | KCONFIG:= \ |
| 197 | CONFIG_INPUT_PCSPKR \ |
| 198 | CONFIG_SND_PCSP |
| 199 | FILES:= \ |
| 200 | $(LINUX_DIR)/drivers/input/misc/pcspkr.ko \ |
| 201 | $(LINUX_DIR)/sound/drivers/pcsp/snd-pcsp.ko |
| 202 | AUTOLOAD:=$(call AutoLoad,50,pcspkr snd-pcsp) |
| 203 | $(call AddDepends/input) |
| 204 | $(call AddDepends/sound) |
| 205 | endef |
| 206 | |
| 207 | define KernelPackage/pcspkr/description |
| 208 | This enables sounds (tones) through the pc speaker |
| 209 | endef |
| 210 | |
| 211 | $(eval $(call KernelPackage,pcspkr)) |
| 212 | |