sound.mk 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. SOUND_MENU:=Sound Support
  8. define KernelPackage/pcspkr
  9. SUBMENU:=$(SOUND_MENU)
  10. TITLE:=PC speaker support
  11. KCONFIG:=CONFIG_INPUT_PCSPKR
  12. FILES:=$(LINUX_DIR)/drivers/input/misc/pcspkr.ko
  13. AUTOLOAD:=$(call AutoLoad,50,pcspkr)
  14. endef
  15. define KernelPackage/pcspkr/description
  16. This enables sounds (tones) through the pc speaker
  17. endef
  18. $(eval $(call KernelPackage,pcspkr))
  19. # allow targets to override the soundcore stuff
  20. SOUNDCORE_LOAD ?= \
  21. soundcore \
  22. snd \
  23. snd-page-alloc \
  24. snd-hwdep \
  25. snd-seq-device \
  26. snd-rawmidi \
  27. snd-timer \
  28. snd-pcm \
  29. snd-mixer-oss \
  30. snd-pcm-oss
  31. SOUNDCORE_FILES ?= \
  32. $(LINUX_DIR)/sound/soundcore.ko \
  33. $(LINUX_DIR)/sound/core/snd.ko \
  34. $(LINUX_DIR)/sound/core/snd-page-alloc.ko \
  35. $(LINUX_DIR)/sound/core/snd-hwdep.ko \
  36. $(LINUX_DIR)/sound/core/seq/snd-seq-device.ko \
  37. $(LINUX_DIR)/sound/core/snd-rawmidi.ko \
  38. $(LINUX_DIR)/sound/core/snd-timer.ko \
  39. $(LINUX_DIR)/sound/core/snd-pcm.ko \
  40. $(LINUX_DIR)/sound/core/oss/snd-mixer-oss.ko \
  41. $(LINUX_DIR)/sound/core/oss/snd-pcm-oss.ko
  42. define KernelPackage/sound-core
  43. SUBMENU:=$(SOUND_MENU)
  44. TITLE:=Sound support
  45. DEPENDS:=@AUDIO_SUPPORT
  46. KCONFIG:= \
  47. CONFIG_SOUND \
  48. CONFIG_SND \
  49. CONFIG_SND_HWDEP \
  50. CONFIG_SND_RAWMIDI \
  51. CONFIG_SND_TIMER \
  52. CONFIG_SND_PCM \
  53. CONFIG_SND_SEQUENCER \
  54. CONFIG_SND_VIRMIDI \
  55. CONFIG_SND_SEQ_DUMMY \
  56. CONFIG_SND_SEQUENCER_OSS=y \
  57. CONFIG_HOSTAUDIO \
  58. CONFIG_SND_PCM_OSS \
  59. CONFIG_SND_MIXER_OSS \
  60. CONFIG_SOUND_OSS_CORE_PRECLAIM=y
  61. FILES:=$(SOUNDCORE_FILES)
  62. AUTOLOAD:=$(call AutoLoad,30,$(SOUNDCORE_LOAD))
  63. $(call AddDepends/input)
  64. endef
  65. define KernelPackage/sound-core/uml
  66. FILES:= \
  67. $(LINUX_DIR)/sound/soundcore.ko \
  68. $(LINUX_DIR)/arch/um/drivers/hostaudio.ko
  69. AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio)
  70. endef
  71. define KernelPackage/sound-core/description
  72. Kernel modules for sound support
  73. endef
  74. $(eval $(call KernelPackage,sound-core))
  75. define AddDepends/sound
  76. SUBMENU:=$(SOUND_MENU)
  77. DEPENDS+=kmod-sound-core $(1) @!TARGET_uml
  78. endef
  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. define KernelPackage/ac97/description
  89. The ac97 controller
  90. endef
  91. $(eval $(call KernelPackage,ac97))
  92. define KernelPackage/sound-seq
  93. TITLE:=Sequencer support
  94. FILES:= \
  95. $(LINUX_DIR)/sound/core/seq/snd-seq.ko \
  96. $(LINUX_DIR)/sound/core/seq/snd-seq-midi-event.ko \
  97. $(LINUX_DIR)/sound/core/seq/snd-seq-midi.ko
  98. AUTOLOAD:=$(call AutoLoad,35,snd-seq snd-seq-midi-event snd-seq-midi)
  99. $(call AddDepends/sound)
  100. endef
  101. define KernelPackage/sound-seq/description
  102. Kernel modules for sequencer support
  103. endef
  104. $(eval $(call KernelPackage,sound-seq))
  105. define KernelPackage/sound-i8x0
  106. TITLE:=Intel/SiS/nVidia/AMD/ALi AC97 Controller
  107. DEPENDS:=+kmod-ac97
  108. KCONFIG:=CONFIG_SND_INTEL8X0
  109. FILES:=$(LINUX_DIR)/sound/pci/snd-intel8x0.ko
  110. AUTOLOAD:=$(call AutoLoad,36,snd-intel8x0)
  111. $(call AddDepends/sound)
  112. endef
  113. define KernelPackage/sound-i8x0/description
  114. support for the integrated AC97 sound device on motherboards
  115. with Intel/SiS/nVidia/AMD chipsets, or ALi chipsets using
  116. the M5455 Audio Controller.
  117. endef
  118. $(eval $(call KernelPackage,sound-i8x0))
  119. define KernelPackage/sound-cs5535audio
  120. TITLE:=CS5535 PCI Controller
  121. DEPENDS:=+kmod-ac97
  122. KCONFIG:=CONFIG_SND_CS5535AUDIO
  123. FILES:=$(LINUX_DIR)/sound/pci/cs5535audio/snd-cs5535audio.ko
  124. AUTOLOAD:=$(call AutoLoad,36,snd-cs5535audio)
  125. $(call AddDepends/sound)
  126. endef
  127. define KernelPackage/sound-cs5535audio/description
  128. support for the integrated AC97 sound device on olpc
  129. endef
  130. $(eval $(call KernelPackage,sound-cs5535audio))
  131. define KernelPackage/sound-soc-core
  132. TITLE:=SoC sound support
  133. KCONFIG:= \
  134. CONFIG_SND_SOC \
  135. CONFIG_SND_SOC_ALL_CODECS=n
  136. FILES:=$(LINUX_DIR)/sound/soc/snd-soc-core.ko
  137. AUTOLOAD:=$(call AutoLoad,55, snd-soc-core)
  138. $(call AddDepends/sound)
  139. endef
  140. $(eval $(call KernelPackage,sound-soc-core))
  141. define KernelPackage/sound-soc-ac97
  142. TITLE:=AC97 Codec support
  143. KCONFIG:=CONFIG_SND_SOC_AC97_CODEC
  144. FILES:=$(LINUX_DIR)/sound/soc/codecs/snd-soc-ac97.ko
  145. AUTOLOAD:=$(call AutoLoad,57,snd-soc-ac97)
  146. DEPENDS:=+kmod-ac97 +kmod-sound-soc-core
  147. $(call AddDepends/sound)
  148. endef
  149. $(eval $(call KernelPackage,sound-soc-ac97))