xref: /rk3399_rockchip-uboot/drivers/sound/Kconfig (revision 5b9c2cccdfdeb81adbd95163ea6c431777c0fe5c)
10b11dbf7SMasahiro Yamadamenu "Sound support"
20b11dbf7SMasahiro Yamada
3ef35d98aSSimon Glassconfig SOUND
4ef35d98aSSimon Glass	bool "Enable sound support"
5ef35d98aSSimon Glass	help
6ef35d98aSSimon Glass	  Support making sounds through an audio codec. This is normally a
7ef35d98aSSimon Glass	  beep at a chosen frequency for a selected length of time. However
8ef35d98aSSimon Glass	  the drivers support playing arbitrary sound samples using a
9ef35d98aSSimon Glass	  PCM interface.
10ef35d98aSSimon Glass
11ef35d98aSSimon Glass	  Note: At present the sound setup is somewhat tangled up in that the
12ef35d98aSSimon Glass	  audio codecs are called from the sound-i2s code. This could be
13ef35d98aSSimon Glass	  converted to driver model.
1400cf7bf1SSimon Glass
1500cf7bf1SSimon Glassconfig I2S
1600cf7bf1SSimon Glass	bool "Enable I2S support"
1700cf7bf1SSimon Glass	depends on SOUND
1800cf7bf1SSimon Glass	help
1900cf7bf1SSimon Glass	  I2S is a serial bus often used to transmit audio data from the
2000cf7bf1SSimon Glass	  SoC to the audio codec. This option enables sound support using
2100cf7bf1SSimon Glass	  I2S. It calls either of the two supported codecs (no use is made
2200cf7bf1SSimon Glass	  of driver model at present).
236bd7be27SSimon Glass
246bd7be27SSimon Glassconfig I2S_SAMSUNG
256bd7be27SSimon Glass	bool "Enable I2C support for Samsung SoCs"
266bd7be27SSimon Glass	depends on SOUND
276bd7be27SSimon Glass	help
286bd7be27SSimon Glass	  Samsung Exynos SoCs support an I2S interface for sending audio
296bd7be27SSimon Glass	  data to an audio codec. This option enables support for this,
306bd7be27SSimon Glass	  using one of the available audio codec drivers. Enabling this
316bd7be27SSimon Glass	  option provides an implementation for sound_init() and
326bd7be27SSimon Glass	  sound_play().
337a170a59SSimon Glass
3469ab2873SSugar Zhangconfig I2S_ROCKCHIP
3569ab2873SSugar Zhang	bool "Enable I2S support for rockchip SoCs"
3669ab2873SSugar Zhang	depends on SOUND
3769ab2873SSugar Zhang	help
3869ab2873SSugar Zhang	  Rockchip SoCs support an I2S interface for sending audio
3969ab2873SSugar Zhang	  data to an audio codec. This option enables support for this,
4069ab2873SSugar Zhang	  using one of the available audio codec drivers. Enabling this
4169ab2873SSugar Zhang	  option provides an implementation for sound_init() and
4269ab2873SSugar Zhang	  sound_play().
4369ab2873SSugar Zhang
447a170a59SSimon Glassconfig SOUND_MAX98095
457a170a59SSimon Glass	bool "Support Maxim max98095 audio codec"
467a170a59SSimon Glass	depends on I2S_SAMSUNG
477a170a59SSimon Glass	help
487a170a59SSimon Glass	  Enable the max98095 audio codec. This is connected via I2S for
497a170a59SSimon Glass	  audio data and I2C for codec control. At present it only works
507a170a59SSimon Glass	  with the Samsung I2S driver.
51dd573f91SSimon Glass
524afb7f9cSSugar Zhangconfig SOUND_RK817
534afb7f9cSSugar Zhang	bool "Support Rockchip rk809/rk817 audio codec"
544afb7f9cSSugar Zhang	depends on I2S_ROCKCHIP && PMIC_RK8XX
554afb7f9cSSugar Zhang	help
564afb7f9cSSugar Zhang	  Enable the rk809/rk817 audio codec. This is connected via I2S for
574afb7f9cSSugar Zhang	  audio data and I2C for codec control.
584afb7f9cSSugar Zhang
59*5b9c2cccSSugar Zhangconfig SOUND_ROCKCHIP
60*5b9c2cccSSugar Zhang	bool "Support Rockchip Simple Sound Card"
61*5b9c2cccSSugar Zhang	depends on I2S_ROCKCHIP
62*5b9c2cccSSugar Zhang	help
63*5b9c2cccSSugar Zhang	  Enable the Rockchip Simple Sound Card.
64*5b9c2cccSSugar Zhang
653907305fSSimon Glassconfig SOUND_SANDBOX
663907305fSSimon Glass	bool "Support sandbox emulated audio codec"
673907305fSSimon Glass	depends on SANDBOX && SOUND
683907305fSSimon Glass	help
693907305fSSimon Glass	  U-Boot sandbox can emulate a sound device using SDL, playing the
703907305fSSimon Glass	  sound on the host machine. This option implements the sound_init()
713907305fSSimon Glass	  and sound_play() functions for sandbox. Note that you must install
723907305fSSimon Glass	  the SDL libraries for this to work.
733907305fSSimon Glass
74dd573f91SSimon Glassconfig SOUND_WM8994
75dd573f91SSimon Glass	bool "Support Wolfson Micro wm8994 audio codec"
76dd573f91SSimon Glass	depends on I2S_SAMSUNG
77dd573f91SSimon Glass	help
78dd573f91SSimon Glass	  Enable the wm8994 audio codec. This is connected via I2S for
79dd573f91SSimon Glass	  audio data and I2C for codec control. At present it only works
80dd573f91SSimon Glass	  with the Samsung I2S driver.
810b11dbf7SMasahiro Yamada
820b11dbf7SMasahiro Yamadaendmenu
83