Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 91056acb authored by Barry Song's avatar Barry Song Committed by Mark Brown
Browse files

ASoC: Blackfin: fix DAI/SPORT config dependency issues



While I2S/TDM/AC97 DAI is built-in, others are compiled as modules,
SND_BF5XX_SOC_SPORT will be module, then DAI can't get some symbols.
Except that, SND_BF5XX_AC97 depends on SND_BF5XX_SOC_AC97 too.

Signed-off-by: default avatarBarry Song <barry.song@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 950a95d4
Loading
Loading
Loading
Loading
+6 −5
Original line number Original line Diff line number Diff line
config SND_BF5XX_I2S
config SND_BF5XX_I2S
	tristate "SoC I2S Audio for the ADI BF5xx chip"
	tristate "SoC I2S Audio for the ADI BF5xx chip"
	depends on BLACKFIN
	depends on BLACKFIN
	select SND_BF5XX_SOC_SPORT
	help
	help
	  Say Y or M if you want to add support for codecs attached to
	  Say Y or M if you want to add support for codecs attached to
	  the Blackfin SPORT (synchronous serial ports) interface in I2S
	  the Blackfin SPORT (synchronous serial ports) interface in I2S
@@ -35,6 +36,7 @@ config SND_BFIN_AD73311_SE
config SND_BF5XX_TDM
config SND_BF5XX_TDM
	tristate "SoC I2S(TDM mode) Audio for the ADI BF5xx chip"
	tristate "SoC I2S(TDM mode) Audio for the ADI BF5xx chip"
	depends on (BLACKFIN && SND_SOC)
	depends on (BLACKFIN && SND_SOC)
	select SND_BF5XX_SOC_SPORT
	help
	help
	  Say Y or M if you want to add support for codecs attached to
	  Say Y or M if you want to add support for codecs attached to
	  the Blackfin SPORT (synchronous serial ports) interface in TDM
	  the Blackfin SPORT (synchronous serial ports) interface in TDM
@@ -61,6 +63,10 @@ config SND_BF5XX_SOC_AD193X
config SND_BF5XX_AC97
config SND_BF5XX_AC97
	tristate "SoC AC97 Audio for the ADI BF5xx chip"
	tristate "SoC AC97 Audio for the ADI BF5xx chip"
	depends on BLACKFIN
	depends on BLACKFIN
	select AC97_BUS
	select SND_SOC_AC97_BUS
	select SND_BF5XX_SOC_SPORT
	select SND_BF5XX_SOC_AC97
	help
	help
	  Say Y or M if you want to add support for codecs attached to
	  Say Y or M if you want to add support for codecs attached to
	  the Blackfin SPORT (synchronous serial ports) interface in slot 16
	  the Blackfin SPORT (synchronous serial ports) interface in slot 16
@@ -122,17 +128,12 @@ config SND_BF5XX_SOC_SPORT


config SND_BF5XX_SOC_I2S
config SND_BF5XX_SOC_I2S
	tristate
	tristate
	select SND_BF5XX_SOC_SPORT


config SND_BF5XX_SOC_TDM
config SND_BF5XX_SOC_TDM
	tristate
	tristate
	select SND_BF5XX_SOC_SPORT


config SND_BF5XX_SOC_AC97
config SND_BF5XX_SOC_AC97
	tristate
	tristate
	select AC97_BUS
	select SND_SOC_AC97_BUS
	select SND_BF5XX_SOC_SPORT


config SND_BF5XX_SPORT_NUM
config SND_BF5XX_SPORT_NUM
	int "Set a SPORT for Sound chip"
	int "Set a SPORT for Sound chip"