Skip to content

Commit c9a57ed

Browse files
agarwalvaibhavgregkh
authored andcommitted
staging: greybus: audio: Enable GB codec, audio module compilation.
Currently you can't enable the Gey Bus Audio Codec because there is no entry for it in the Kconfig file. Originally the config name was going to be AUDIO_MSM8994 but that's not correct because other types of hardware are supported now. I have chosen the name AUDIO_APB_CODEC instead. Also I had to update the dependencies for GREYBUS_AUDIO to make the compile work. Signed-off-by: Vaibhav Agarwal <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/2b50959ccffe5a4372880d27e79ef3be1873372c.1594290158.git.vaibhav.sr@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 510e340 commit c9a57ed

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

drivers/staging/greybus/Kconfig

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,26 @@ if GREYBUS
33

44
config GREYBUS_AUDIO
55
tristate "Greybus Audio Class driver"
6-
depends on SOUND
6+
depends on SOUND && SND_SOC
77
help
88
Select this option if you have a device that follows the
99
Greybus Audio Class specification.
1010

1111
To compile this code as a module, chose M here: the module
1212
will be called gb-audio.ko
1313

14+
config GREYBUS_AUDIO_APB_CODEC
15+
tristate "Greybus APBridge Audio codec driver"
16+
depends on SND_SOC && GREYBUS_AUDIO
17+
help
18+
Select this option if you have a Toshiba APB device that has I2S
19+
ports and acts as a Greybus "Dummy codec". This device is a
20+
bridge from an APB-I2S port to a Unipro network.
21+
22+
To compile this code as a module, chose M here: the module
23+
will be called gb-audio-codec.ko
24+
25+
1426
config GREYBUS_BOOTROM
1527
tristate "Greybus Bootrom Class driver"
1628
help

drivers/staging/greybus/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ gb-audio-manager-y := audio_manager.o audio_manager_module.o
4040
#ccflags-y += -DGB_AUDIO_MANAGER_SYSFS
4141
#endif
4242

43-
obj-$(CONFIG_GREYBUS_AUDIO_MSM8994) += gb-audio-codec.o
44-
obj-$(CONFIG_GREYBUS_AUDIO_MSM8994) += gb-audio-module.o
43+
obj-$(CONFIG_GREYBUS_AUDIO_APB_CODEC) += gb-audio-codec.o
44+
obj-$(CONFIG_GREYBUS_AUDIO_APB_CODEC) += gb-audio-module.o
4545
obj-$(CONFIG_GREYBUS_AUDIO) += gb-audio-gb.o
4646
obj-$(CONFIG_GREYBUS_AUDIO) += gb-audio-apbridgea.o
4747
obj-$(CONFIG_GREYBUS_AUDIO) += gb-audio-manager.o

0 commit comments

Comments
 (0)