Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <vaibhav.sr@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/2b50959ccffe5a4372880d27e79ef3be1873372c.1594290158.git.vaibhav.sr@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Vaibhav Agarwal and committed by
Greg Kroah-Hartman
c9a57edd 510e340e

+15 -3
+13 -1
drivers/staging/greybus/Kconfig
··· 3 3 4 4 config GREYBUS_AUDIO 5 5 tristate "Greybus Audio Class driver" 6 - depends on SOUND 6 + depends on SOUND && SND_SOC 7 7 help 8 8 Select this option if you have a device that follows the 9 9 Greybus Audio Class specification. 10 10 11 11 To compile this code as a module, chose M here: the module 12 12 will be called gb-audio.ko 13 + 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 + 13 25 14 26 config GREYBUS_BOOTROM 15 27 tristate "Greybus Bootrom Class driver"
+2 -2
drivers/staging/greybus/Makefile
··· 40 40 #ccflags-y += -DGB_AUDIO_MANAGER_SYSFS 41 41 #endif 42 42 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 45 45 obj-$(CONFIG_GREYBUS_AUDIO) += gb-audio-gb.o 46 46 obj-$(CONFIG_GREYBUS_AUDIO) += gb-audio-apbridgea.o 47 47 obj-$(CONFIG_GREYBUS_AUDIO) += gb-audio-manager.o