drivers: most: add ALSA sound driver

This patch moves the ALSA sound driver out of the staging area and adds it
to the stable part of the MOST driver. Modifications to the Makefiles and
Kconfigs are done accordingly to not break the build.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1612865627-29950-1-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Christian Gromm 2021-02-09 11:13:47 +01:00 committed by Greg Kroah-Hartman
parent f7bff01774
commit 13b41b5783
7 changed files with 11 additions and 21 deletions

View File

@ -32,4 +32,14 @@ config MOST_CDEV
To compile this driver as a module, choose M here: the
module will be called most_cdev.
config MOST_SND
tristate "Sound"
depends on SND
select SND_PCM
help
Say Y here if you want to commumicate via ALSA/sound devices.
To compile this driver as a module, choose M here: the
module will be called most_sound.
endif

View File

@ -5,3 +5,4 @@ most_core-y := core.o \
obj-$(CONFIG_MOST_USB_HDM) += most_usb.o
obj-$(CONFIG_MOST_CDEV) += most_cdev.o
obj-$(CONFIG_MOST_SND) += most_snd.o

View File

@ -20,8 +20,6 @@ if MOST_COMPONENTS
source "drivers/staging/most/net/Kconfig"
source "drivers/staging/most/sound/Kconfig"
source "drivers/staging/most/video/Kconfig"
source "drivers/staging/most/dim2/Kconfig"

View File

@ -1,7 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_MOST_NET) += net/
obj-$(CONFIG_MOST_SOUND) += sound/
obj-$(CONFIG_MOST_VIDEO) += video/
obj-$(CONFIG_MOST_DIM2) += dim2/
obj-$(CONFIG_MOST_I2C) += i2c/

View File

@ -1,14 +0,0 @@
# SPDX-License-Identifier: GPL-2.0
#
# MOST ALSA configuration
#
config MOST_SOUND
tristate "Sound"
depends on SND
select SND_PCM
help
Say Y here if you want to commumicate via ALSA/sound devices.
To compile this driver as a module, choose M here: the
module will be called most_sound.

View File

@ -1,4 +0,0 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_MOST_SOUND) += most_sound.o
most_sound-objs := sound.o