Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1486620 > unrolled thread
| Started by | Randy Li <ayaka@soulik.info> |
|---|---|
| First post | 2016-09-19 18:00 +0200 |
| Last post | 2016-09-19 18:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] ASoC: samsung: make audio interface/controller explicitly Randy Li <ayaka@soulik.info> - 2016-09-19 18:00 +0200
Re: [PATCH] ASoC: samsung: make audio interface/controller explicitly Krzysztof Kozlowski <krzk@kernel.org> - 2016-09-19 18:40 +0200
| From | Randy Li <ayaka@soulik.info> |
|---|---|
| Date | 2016-09-19 18:00 +0200 |
| Subject | [PATCH] ASoC: samsung: make audio interface/controller explicitly |
| Message-ID | <sj998-7ii-15@gated-at.bofh.it> |
It is simple sound card time, we could assign different codec
to a interface without making a specific driver for it. The SPDIF
and I2S interface for Samsung would be possible used by simple-sound-card,
but not sure about the PCM.
Signed-off-by: Randy Li <ayaka@soulik.info>
---
sound/soc/samsung/Kconfig | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/sound/soc/samsung/Kconfig b/sound/soc/samsung/Kconfig
index 7b722b0..210ce38 100644
--- a/sound/soc/samsung/Kconfig
+++ b/sound/soc/samsung/Kconfig
@@ -1,3 +1,7 @@
+menu "SoC Audio for Samsung CPUs"
+
+comment "Common SoC Audio options for Samsung CPUs:"
+
config SND_SOC_SAMSUNG
tristate "ASoC support for Samsung"
depends on (PLAT_SAMSUNG || ARCH_EXYNOS)
@@ -18,18 +22,22 @@ config SND_S3C2412_SOC_I2S
select SND_S3C_I2SV2_SOC
config SND_SAMSUNG_PCM
- tristate
+ tristate "Samsung PCM interface support"
+ depends on SND_SOC_SAMSUNG
config SND_SAMSUNG_AC97
tristate
select SND_SOC_AC97_BUS
+ depends on SND_SOC_SAMSUNG
config SND_SAMSUNG_SPDIF
- tristate
+ tristate "Samsung SPDIF transmitter support"
+ depends on SND_SOC_SAMSUNG
select SND_SOC_SPDIF
config SND_SAMSUNG_I2S
- tristate
+ tristate "Samsung I2S interface support"
+ depends on I2C && SND_SOC_SAMSUNG
config SND_SOC_SAMSUNG_NEO1973_WM8753
tristate "Audio support for Openmoko Neo1973 Smartphones (GTA02)"
@@ -229,3 +237,5 @@ config SND_SOC_ARNDALE_RT5631_ALC5631
depends on SND_SOC_SAMSUNG && I2C
select SND_SAMSUNG_I2S
select SND_SOC_RT5631
+
+endmenu
--
2.7.4
[toc] | [next] | [standalone]
| From | Krzysztof Kozlowski <krzk@kernel.org> |
|---|---|
| Date | 2016-09-19 18:40 +0200 |
| Message-ID | <sj9LQ-7Ol-21@gated-at.bofh.it> |
| In reply to | #1486620 |
On Mon, Sep 19, 2016 at 11:51:58PM +0800, Randy Li wrote: > It is simple sound card time, we could assign different codec > to a interface without making a specific driver for it. The SPDIF > and I2S interface for Samsung would be possible used by simple-sound-card, > but not sure about the PCM. > > Signed-off-by: Randy Li <ayaka@soulik.info> > --- > sound/soc/samsung/Kconfig | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) > > diff --git a/sound/soc/samsung/Kconfig b/sound/soc/samsung/Kconfig > index 7b722b0..210ce38 100644 > --- a/sound/soc/samsung/Kconfig > +++ b/sound/soc/samsung/Kconfig > @@ -1,3 +1,7 @@ > +menu "SoC Audio for Samsung CPUs" This adds a new empty layer. One have to choose this menu and then SND_SOC_SAMSUNG to access specific options. Instead of new menu, the SND_SOC_SAMSUNG should be menuconfig. The existing "depends on" and the one you added below won't be needed then, I think. Just have to be sure that nothing selects particular drivers without selecting SND_SOC_SAMSUNG first. Best regards, Krzysztof > + > +comment "Common SoC Audio options for Samsung CPUs:" > + > config SND_SOC_SAMSUNG > tristate "ASoC support for Samsung" > depends on (PLAT_SAMSUNG || ARCH_EXYNOS) > @@ -18,18 +22,22 @@ config SND_S3C2412_SOC_I2S > select SND_S3C_I2SV2_SOC > > config SND_SAMSUNG_PCM > - tristate > + tristate "Samsung PCM interface support" > + depends on SND_SOC_SAMSUNG > > config SND_SAMSUNG_AC97 > tristate > select SND_SOC_AC97_BUS > + depends on SND_SOC_SAMSUNG > > config SND_SAMSUNG_SPDIF > - tristate > + tristate "Samsung SPDIF transmitter support" > + depends on SND_SOC_SAMSUNG > select SND_SOC_SPDIF > > config SND_SAMSUNG_I2S > - tristate > + tristate "Samsung I2S interface support" > + depends on I2C && SND_SOC_SAMSUNG > > config SND_SOC_SAMSUNG_NEO1973_WM8753 > tristate "Audio support for Openmoko Neo1973 Smartphones (GTA02)" > @@ -229,3 +237,5 @@ config SND_SOC_ARNDALE_RT5631_ALC5631 > depends on SND_SOC_SAMSUNG && I2C > select SND_SAMSUNG_I2S > select SND_SOC_RT5631 > + > +endmenu > -- > 2.7.4 >
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web