The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] Update codec driver for dual mics configuration
@ 2017-11-21 17:15 Carlo Caione
  2017-11-21 17:15 ` [PATCH 1/2] ASoC: intel: byt: Introduce new map for dual mics Carlo Caione
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Carlo Caione @ 2017-11-21 17:15 UTC (permalink / raw)
  To: linux, pierre-louis.bossart, lgirdwood, broonie, alsa-devel,
	linux-kernel
  Cc: Carlo Caione

From: Carlo Caione <carlo@endlessm.com>

The RT5651 codec has 3 analog input ports. Some laptops (like the KIANO laptop)
have two different analog mics on two ports, leaving the headset on the
remaining one. We need to add a new quirk to support also this configuration.

Carlo Caione (2):
  ASoC: intel: byt: Introduce new map for dual mics
  ASoC: intel: byt: Fix quirk for KIANO laptop

 sound/soc/intel/boards/bytcr_rt5651.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH 1/2] ASoC: intel: byt: Introduce new map for dual mics
  2017-11-21 17:15 [PATCH 0/2] Update codec driver for dual mics configuration Carlo Caione
@ 2017-11-21 17:15 ` Carlo Caione
  2017-11-29 18:59   ` Applied "ASoC: intel: byt: Introduce new map for dual mics" to the asoc tree Mark Brown
  2017-11-21 17:15 ` [PATCH 2/2] ASoC: intel: byt: Fix quirk for KIANO laptop Carlo Caione
  2017-11-28 14:08 ` [PATCH 0/2] Update codec driver for dual mics configuration Carlo Caione
  2 siblings, 1 reply; 7+ messages in thread
From: Carlo Caione @ 2017-11-21 17:15 UTC (permalink / raw)
  To: linux, pierre-louis.bossart, lgirdwood, broonie, alsa-devel,
	linux-kernel
  Cc: Carlo Caione

From: Carlo Caione <carlo@endlessm.com>

The RT5651 codec has 3 analog inputs. Some laptops have two different
internal analog microphones on the external case.
Add a new custom quirk mapping the two internal mics on IN1P / IN2P,
leaving the headset mic on IN3P.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
---
 sound/soc/intel/boards/bytcr_rt5651.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c
index d955836c6870..e3d5e6ea707f 100644
--- a/sound/soc/intel/boards/bytcr_rt5651.c
+++ b/sound/soc/intel/boards/bytcr_rt5651.c
@@ -38,6 +38,7 @@ enum {
 	BYT_RT5651_DMIC_MAP,
 	BYT_RT5651_IN1_MAP,
 	BYT_RT5651_IN2_MAP,
+	BYT_RT5651_IN1_IN2_MAP,
 };
 
 #define BYT_RT5651_MAP(quirk)	((quirk) & GENMASK(7, 0))
@@ -171,6 +172,13 @@ static const struct snd_soc_dapm_route byt_rt5651_intmic_in2_map[] = {
 	{"IN2P", NULL, "Internal Mic"},
 };
 
+static const struct snd_soc_dapm_route byt_rt5651_intmic_in1_in2_map[] = {
+	{"Internal Mic", NULL, "micbias1"},
+	{"IN1P", NULL, "Internal Mic"},
+	{"IN2P", NULL, "Internal Mic"},
+	{"IN3P", NULL, "Headset Mic"},
+};
+
 static const struct snd_kcontrol_new byt_rt5651_controls[] = {
 	SOC_DAPM_PIN_SWITCH("Headphone"),
 	SOC_DAPM_PIN_SWITCH("Headset Mic"),
@@ -281,6 +289,10 @@ static int byt_rt5651_init(struct snd_soc_pcm_runtime *runtime)
 		custom_map = byt_rt5651_intmic_in2_map;
 		num_routes = ARRAY_SIZE(byt_rt5651_intmic_in2_map);
 		break;
+	case BYT_RT5651_IN1_IN2_MAP:
+		custom_map = byt_rt5651_intmic_in1_in2_map;
+		num_routes = ARRAY_SIZE(byt_rt5651_intmic_in1_in2_map);
+		break;
 	default:
 		custom_map = byt_rt5651_intmic_dmic_map;
 		num_routes = ARRAY_SIZE(byt_rt5651_intmic_dmic_map);
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] ASoC: intel: byt: Fix quirk for KIANO laptop
  2017-11-21 17:15 [PATCH 0/2] Update codec driver for dual mics configuration Carlo Caione
  2017-11-21 17:15 ` [PATCH 1/2] ASoC: intel: byt: Introduce new map for dual mics Carlo Caione
@ 2017-11-21 17:15 ` Carlo Caione
  2017-11-29 18:59   ` Applied "ASoC: intel: byt: Fix quirk for KIANO laptop" to the asoc tree Mark Brown
  2017-11-28 14:08 ` [PATCH 0/2] Update codec driver for dual mics configuration Carlo Caione
  2 siblings, 1 reply; 7+ messages in thread
From: Carlo Caione @ 2017-11-21 17:15 UTC (permalink / raw)
  To: linux, pierre-louis.bossart, lgirdwood, broonie, alsa-devel,
	linux-kernel
  Cc: Carlo Caione

From: Carlo Caione <carlo@endlessm.com>

This laptop has actually two different analog mics, no just one. Fix the
quirk to reflect the correct configuration.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
---
 sound/soc/intel/boards/bytcr_rt5651.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c
index e3d5e6ea707f..488ec48f296a 100644
--- a/sound/soc/intel/boards/bytcr_rt5651.c
+++ b/sound/soc/intel/boards/bytcr_rt5651.c
@@ -264,7 +264,7 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = {
 			DMI_MATCH(DMI_SYS_VENDOR, "KIANO"),
 			DMI_MATCH(DMI_PRODUCT_NAME, "KIANO SlimNote 14.2"),
 		},
-		.driver_data = (void *)(BYT_RT5651_IN2_MAP),
+		.driver_data = (void *)(BYT_RT5651_IN1_IN2_MAP),
 	},
 	{}
 };
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] Update codec driver for dual mics configuration
  2017-11-21 17:15 [PATCH 0/2] Update codec driver for dual mics configuration Carlo Caione
  2017-11-21 17:15 ` [PATCH 1/2] ASoC: intel: byt: Introduce new map for dual mics Carlo Caione
  2017-11-21 17:15 ` [PATCH 2/2] ASoC: intel: byt: Fix quirk for KIANO laptop Carlo Caione
@ 2017-11-28 14:08 ` Carlo Caione
  2017-11-28 15:15   ` Mark Brown
  2 siblings, 1 reply; 7+ messages in thread
From: Carlo Caione @ 2017-11-28 14:08 UTC (permalink / raw)
  To: Pierre-Louis Bossart
  Cc: Linux Upstreaming Team, Liam Girdwood, Mark Brown, alsa-devel,
	open list, Carlo Caione

On Tue, Nov 21, 2017 at 5:15 PM, Carlo Caione <carlo@caione.org> wrote:
> From: Carlo Caione <carlo@endlessm.com>
>
> The RT5651 codec has 3 analog input ports. Some laptops (like the KIANO laptop)
> have two different analog mics on two ports, leaving the headset on the
> remaining one. We need to add a new quirk to support also this configuration.
>
> Carlo Caione (2):
>   ASoC: intel: byt: Introduce new map for dual mics
>   ASoC: intel: byt: Fix quirk for KIANO laptop

gentle ping.

cheers,

-- 
Carlo Caione

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 0/2] Update codec driver for dual mics configuration
  2017-11-28 14:08 ` [PATCH 0/2] Update codec driver for dual mics configuration Carlo Caione
@ 2017-11-28 15:15   ` Mark Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2017-11-28 15:15 UTC (permalink / raw)
  To: Carlo Caione
  Cc: Pierre-Louis Bossart, Linux Upstreaming Team, Liam Girdwood,
	alsa-devel, open list, Carlo Caione

[-- Attachment #1: Type: text/plain, Size: 1306 bytes --]

On Tue, Nov 28, 2017 at 02:08:05PM +0000, Carlo Caione wrote:
> On Tue, Nov 21, 2017 at 5:15 PM, Carlo Caione <carlo@caione.org> wrote:
> > From: Carlo Caione <carlo@endlessm.com>
> >
> > The RT5651 codec has 3 analog input ports. Some laptops (like the KIANO laptop)
> > have two different analog mics on two ports, leaving the headset on the
> > remaining one. We need to add a new quirk to support also this configuration.
> >
> > Carlo Caione (2):
> >   ASoC: intel: byt: Introduce new map for dual mics
> >   ASoC: intel: byt: Fix quirk for KIANO laptop
> 
> gentle ping.

Please don't send content free pings and please allow a reasonable time
for review.  People get busy, go on holiday, attend conferences and so 
on so unless there is some reason for urgency (like critical bug fixes)
please allow at least a couple of weeks for review.  If there have been
review comments then people may be waiting for those to be addressed.

Sending content free pings adds to the mail volume (if they are seen at
all) which is often the problem and since they can't be reviewed
directly if something has gone wrong you'll have to resend the patches
anyway, though there are some other maintainers who like them - if in
doubt look at how patches for the subsystem are normally handled.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Applied "ASoC: intel: byt: Fix quirk for KIANO laptop" to the asoc tree
  2017-11-21 17:15 ` [PATCH 2/2] ASoC: intel: byt: Fix quirk for KIANO laptop Carlo Caione
@ 2017-11-29 18:59   ` Mark Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2017-11-29 18:59 UTC (permalink / raw)
  To: Carlo Caione
  Cc: Mark Brown, linux, pierre-louis.bossart, lgirdwood, broonie,
	alsa-devel, linux-kernel, alsa-devel

The patch

   ASoC: intel: byt: Fix quirk for KIANO laptop

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From 56fa898be862053327b2ff8abfa0a6e7f350f81d Mon Sep 17 00:00:00 2001
From: Carlo Caione <carlo@endlessm.com>
Date: Tue, 21 Nov 2017 17:15:46 +0000
Subject: [PATCH] ASoC: intel: byt: Fix quirk for KIANO laptop

This laptop has actually two different analog mics, no just one. Fix the
quirk to reflect the correct configuration.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/intel/boards/bytcr_rt5651.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c
index e3d5e6ea707f..488ec48f296a 100644
--- a/sound/soc/intel/boards/bytcr_rt5651.c
+++ b/sound/soc/intel/boards/bytcr_rt5651.c
@@ -264,7 +264,7 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = {
 			DMI_MATCH(DMI_SYS_VENDOR, "KIANO"),
 			DMI_MATCH(DMI_PRODUCT_NAME, "KIANO SlimNote 14.2"),
 		},
-		.driver_data = (void *)(BYT_RT5651_IN2_MAP),
+		.driver_data = (void *)(BYT_RT5651_IN1_IN2_MAP),
 	},
 	{}
 };
-- 
2.15.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Applied "ASoC: intel: byt: Introduce new map for dual mics" to the asoc tree
  2017-11-21 17:15 ` [PATCH 1/2] ASoC: intel: byt: Introduce new map for dual mics Carlo Caione
@ 2017-11-29 18:59   ` Mark Brown
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2017-11-29 18:59 UTC (permalink / raw)
  To: Carlo Caione
  Cc: Mark Brown, linux, pierre-louis.bossart, lgirdwood, broonie,
	alsa-devel, linux-kernel, alsa-devel

The patch

   ASoC: intel: byt: Introduce new map for dual mics

has been applied to the asoc tree at

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git 

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.  

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

>From ea261bd02a671e2dd60380053dddffedab81644d Mon Sep 17 00:00:00 2001
From: Carlo Caione <carlo@endlessm.com>
Date: Tue, 21 Nov 2017 17:15:45 +0000
Subject: [PATCH] ASoC: intel: byt: Introduce new map for dual mics

The RT5651 codec has 3 analog inputs. Some laptops have two different
internal analog microphones on the external case.
Add a new custom quirk mapping the two internal mics on IN1P / IN2P,
leaving the headset mic on IN3P.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/intel/boards/bytcr_rt5651.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c
index d955836c6870..e3d5e6ea707f 100644
--- a/sound/soc/intel/boards/bytcr_rt5651.c
+++ b/sound/soc/intel/boards/bytcr_rt5651.c
@@ -38,6 +38,7 @@ enum {
 	BYT_RT5651_DMIC_MAP,
 	BYT_RT5651_IN1_MAP,
 	BYT_RT5651_IN2_MAP,
+	BYT_RT5651_IN1_IN2_MAP,
 };
 
 #define BYT_RT5651_MAP(quirk)	((quirk) & GENMASK(7, 0))
@@ -171,6 +172,13 @@ static const struct snd_soc_dapm_route byt_rt5651_intmic_in2_map[] = {
 	{"IN2P", NULL, "Internal Mic"},
 };
 
+static const struct snd_soc_dapm_route byt_rt5651_intmic_in1_in2_map[] = {
+	{"Internal Mic", NULL, "micbias1"},
+	{"IN1P", NULL, "Internal Mic"},
+	{"IN2P", NULL, "Internal Mic"},
+	{"IN3P", NULL, "Headset Mic"},
+};
+
 static const struct snd_kcontrol_new byt_rt5651_controls[] = {
 	SOC_DAPM_PIN_SWITCH("Headphone"),
 	SOC_DAPM_PIN_SWITCH("Headset Mic"),
@@ -281,6 +289,10 @@ static int byt_rt5651_init(struct snd_soc_pcm_runtime *runtime)
 		custom_map = byt_rt5651_intmic_in2_map;
 		num_routes = ARRAY_SIZE(byt_rt5651_intmic_in2_map);
 		break;
+	case BYT_RT5651_IN1_IN2_MAP:
+		custom_map = byt_rt5651_intmic_in1_in2_map;
+		num_routes = ARRAY_SIZE(byt_rt5651_intmic_in1_in2_map);
+		break;
 	default:
 		custom_map = byt_rt5651_intmic_dmic_map;
 		num_routes = ARRAY_SIZE(byt_rt5651_intmic_dmic_map);
-- 
2.15.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-29 18:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-21 17:15 [PATCH 0/2] Update codec driver for dual mics configuration Carlo Caione
2017-11-21 17:15 ` [PATCH 1/2] ASoC: intel: byt: Introduce new map for dual mics Carlo Caione
2017-11-29 18:59   ` Applied "ASoC: intel: byt: Introduce new map for dual mics" to the asoc tree Mark Brown
2017-11-21 17:15 ` [PATCH 2/2] ASoC: intel: byt: Fix quirk for KIANO laptop Carlo Caione
2017-11-29 18:59   ` Applied "ASoC: intel: byt: Fix quirk for KIANO laptop" to the asoc tree Mark Brown
2017-11-28 14:08 ` [PATCH 0/2] Update codec driver for dual mics configuration Carlo Caione
2017-11-28 15:15   ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox