Intel/rt5651 updates
Subsystems (3)
cover Intel/rt5651 updates
Fix existing quirks and add new ones, and add support for LineIn
An updated UCM file supporting all possible inputs/outputs is available at https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
Additional validation of the microphone/LineIn settings is still on-going with Carlo Caione and Realtek.
Keyon Jie (1):
ASoC: Intel: bytcr-rt5651: add quirk for IN3P which may also be used
Pierre-Louis Bossart (3):
ASoC: Intel: bytcr-rt5651: enable MinnowBoard Turbot quirks
ASoC: Intel: bytcr-rt5651: fix Kiano DMI quirk
ASoC: Intel: bytcr-rt5651: add support for Line In
sound/soc/intel/boards/bytcr_rt5651.c | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-)
Signature · 1 line
2.14.1
PATCH 1/4 ASoC: Intel: bytcr-rt5651: add quirk for IN3P which may also be used
From: Keyon Jie <[email protected]>
On Minnowboard Max with Realtek rt5651 eval board, the IN3P is connected to Headset Mic.
Here add and select it for Minnowboard Max.
--- sound/soc/intel/boards/bytcr_rt5651.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-)
sound/soc/intel/boards/bytcr_rt5651.c +14 -2
@@ -39,6 +39,7 @@ enum {BYT_RT5651_IN1_MAP ,BYT_RT5651_IN2_MAP ,BYT_RT5651_IN1_IN2_MAP , + BYT_RT5651_IN3_MAP, };#define BYT_RT5651_MAP (quirk) ((quirk) & GENMASK(7, 0))
@@ -63,6 +64,8 @@ static void log_quirks(struct device *dev)dev_info (dev,"quirk IN1_MAP enabled" );if (BYT_RT5651_MAP (byt_rt5651_quirk) ==BYT_RT5651_IN2_MAP )dev_info (dev,"quirk IN2_MAP enabled" ); +if (BYT_RT5651_MAP (byt_rt5651_quirk) ==BYT_RT5651_IN3_MAP ) +dev_info (dev,"quirk IN3_MAP enabled" );if (byt_rt5651_quirk &BYT_RT5651_DMIC_EN )dev_info (dev,"quirk DMIC enabled" );if (byt_rt5651_quirk &BYT_RT5651_MCLK_EN )
@@ -179,6 +182,12 @@ static const struct snd_soc_dapm_route byt_rt5651_intmic_in1_in2_map[] = { {"IN3P", NULL, "Headset Mic"}, }; +static const struct snd_soc_dapm_route byt_rt5651_intmic_in3_map[] = { + {"Internal Mic" ,NULL ,"micbias1" }, + {"IN3P" ,NULL ,"Headset Mic" }, + {"IN1P" ,NULL ,"Internal Mic" }, +}; +static const struct snd_kcontrol_new byt_rt5651_controls[] = {SOC_DAPM_PIN_SWITCH ("Headphone" ), SOC_DAPM_PIN_SWITCH("Headset Mic"),
@@ -255,8 +264,7 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = {DMI_MATCH (DMI_SYS_VENDOR ,"Circuitco" ), DMI_MATCH(DMI_PRODUCT_NAME, "Minnowboard Max B3 PLATFORM"), }, - .driver_data = (void *)(BYT_RT5651_DMIC_MAP | - BYT_RT5651_DMIC_EN), + .driver_data = (void *)(BYT_RT5651_IN3_MAP), }, { .callback = byt_rt5651_quirk_cb,
@@ -293,6 +301,10 @@ static int byt_rt5651_init(struct snd_soc_pcm_runtime *runtime) custom_map = byt_rt5651_intmic_in1_in2_map; num_routes =ARRAY_SIZE (byt_rt5651_intmic_in1_in2_map);break ; +case BYT_RT5651_IN3_MAP : + custom_map = byt_rt5651_intmic_in3_map; + num_routes =ARRAY_SIZE (byt_rt5651_intmic_in3_map); +break ;default : custom_map = byt_rt5651_intmic_dmic_map; num_routes =ARRAY_SIZE (byt_rt5651_intmic_dmic_map);
Signature · 1 line
2.14.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcr-rt5651: add quirk for IN3P which may also be used" to the asoc tree
The patch
ASoC: Intel: bytcr-rt5651: add quirk for IN3P which may also be used
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
Quoted 1 line
From
60e3b52e9354550c28090237b083b20bbabed598Mon Sep 17 00:00:00 2001
From: Keyon Jie <[email protected]>
Date: Fri, 5 Jan 2018 13:20:18 -0600
Subject: [PATCH] ASoC: Intel: bytcr-rt5651: add quirk for IN3P which may also
be used
On Minnowboard Max with Realtek rt5651 eval board, the IN3P is connected to Headset Mic.
Here add and select it for Minnowboard Max.
--- sound/soc/intel/boards/bytcr_rt5651.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-)
sound/soc/intel/boards/bytcr_rt5651.c +14 -2
@@ -39,6 +39,7 @@ enum {BYT_RT5651_IN1_MAP ,BYT_RT5651_IN2_MAP ,BYT_RT5651_IN1_IN2_MAP , + BYT_RT5651_IN3_MAP, };#define BYT_RT5651_MAP (quirk) ((quirk) & GENMASK(7, 0))
@@ -63,6 +64,8 @@ static void log_quirks(struct device *dev)dev_info (dev,"quirk IN1_MAP enabled" );if (BYT_RT5651_MAP (byt_rt5651_quirk) ==BYT_RT5651_IN2_MAP )dev_info (dev,"quirk IN2_MAP enabled" ); +if (BYT_RT5651_MAP (byt_rt5651_quirk) ==BYT_RT5651_IN3_MAP ) +dev_info (dev,"quirk IN3_MAP enabled" );if (byt_rt5651_quirk &BYT_RT5651_DMIC_EN )dev_info (dev,"quirk DMIC enabled" );if (byt_rt5651_quirk &BYT_RT5651_MCLK_EN )
@@ -179,6 +182,12 @@ static const struct snd_soc_dapm_route byt_rt5651_intmic_in1_in2_map[] = { {"IN3P", NULL, "Headset Mic"}, }; +static const struct snd_soc_dapm_route byt_rt5651_intmic_in3_map[] = { + {"Internal Mic" ,NULL ,"micbias1" }, + {"IN3P" ,NULL ,"Headset Mic" }, + {"IN1P" ,NULL ,"Internal Mic" }, +}; +static const struct snd_kcontrol_new byt_rt5651_controls[] = {SOC_DAPM_PIN_SWITCH ("Headphone" ), SOC_DAPM_PIN_SWITCH("Headset Mic"),
@@ -255,8 +264,7 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = {DMI_MATCH (DMI_SYS_VENDOR ,"Circuitco" ), DMI_MATCH(DMI_PRODUCT_NAME, "Minnowboard Max B3 PLATFORM"), }, - .driver_data = (void *)(BYT_RT5651_DMIC_MAP | - BYT_RT5651_DMIC_EN), + .driver_data = (void *)(BYT_RT5651_IN3_MAP), }, { .callback = byt_rt5651_quirk_cb,
@@ -294,6 +302,10 @@ static int byt_rt5651_init(struct snd_soc_pcm_runtime *runtime) custom_map = byt_rt5651_intmic_in1_in2_map; num_routes =ARRAY_SIZE (byt_rt5651_intmic_in1_in2_map);break ; +case BYT_RT5651_IN3_MAP : + custom_map = byt_rt5651_intmic_in3_map; + num_routes =ARRAY_SIZE (byt_rt5651_intmic_in3_map); +break ;default : custom_map = byt_rt5651_intmic_dmic_map; num_routes =ARRAY_SIZE (byt_rt5651_intmic_dmic_map);
Signature · 1 line
2.15.1
PATCH 2/4 ASoC: Intel: bytcr_rt5651: enable MinnowBoard Turbot quirks
In reply to Pierre-Louis BossartDefine DMI quirk for rt5651 eval board connected to MinnowBoard Turbot. The only difference with a MinnowBoard MAX is that the MCLK pin is enabled on the LSE connector
--- sound/soc/intel/boards/bytcr_rt5651.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/bytcr_rt5651.c +9 -0
@@ -266,6 +266,15 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = { }, .driver_data = (void *)(BYT_RT5651_IN3_MAP), }, + { + .callback = byt_rt5651_quirk_cb, + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ADI" ), + DMI_MATCH(DMI_PRODUCT_NAME, "Minnowboard Turbot"), + }, + .driver_data = (void *)(BYT_RT5651_MCLK_EN | + BYT_RT5651_IN3_MAP), + }, { .callback = byt_rt5651_quirk_cb, .matches = {
Signature · 1 line
2.14.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcr-rt5651: enable MinnowBoard Turbot quirks" to the asoc tree
The patch
ASoC: Intel: bytcr-rt5651: enable MinnowBoard Turbot quirks
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
Quoted 1 line
From
416f2b51119b8cdd899b226e4cf683d000797a8bMon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 5 Jan 2018 13:20:20 -0600
Subject: [PATCH] ASoC: Intel: bytcr-rt5651: enable MinnowBoard Turbot quirks
Define DMI quirk for rt5651 eval board connected to MinnowBoard Turbot. The only difference with a MinnowBoard MAX is that the MCLK pin is enabled on the LSE connector
--- sound/soc/intel/boards/bytcr_rt5651.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/bytcr_rt5651.c +9 -0
@@ -266,6 +266,15 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = { }, .driver_data = (void *)(BYT_RT5651_IN3_MAP), }, + { + .callback = byt_rt5651_quirk_cb, + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ADI" ), + DMI_MATCH(DMI_PRODUCT_NAME, "Minnowboard Turbot"), + }, + .driver_data = (void *)(BYT_RT5651_MCLK_EN | + BYT_RT5651_IN3_MAP), + }, { .callback = byt_rt5651_quirk_cb, .matches = {
Signature · 1 line
2.15.1
PATCH 2/4 ASoC: Intel: bytcr-rt5651: enable MinnowBoard Turbot quirks
In reply to Pierre-Louis BossartDefine DMI quirk for rt5651 eval board connected to MinnowBoard Turbot. The only difference with a MinnowBoard MAX is that the MCLK pin is enabled on the LSE connector
--- sound/soc/intel/boards/bytcr_rt5651.c | 9 +++++++++ 1 file changed, 9 insertions(+)
sound/soc/intel/boards/bytcr_rt5651.c +9 -0
@@ -266,6 +266,15 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = { }, .driver_data = (void *)(BYT_RT5651_IN3_MAP), }, + { + .callback = byt_rt5651_quirk_cb, + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ADI" ), + DMI_MATCH(DMI_PRODUCT_NAME, "Minnowboard Turbot"), + }, + .driver_data = (void *)(BYT_RT5651_MCLK_EN | + BYT_RT5651_IN3_MAP), + }, { .callback = byt_rt5651_quirk_cb, .matches = {
Signature · 1 line
2.14.1
Re: [PATCH 2/4] ASoC: Intel: bytcr-rt5651: enable MinnowBoard Turbot quirks
Quoted 14 lines
-----Original Message-----
From: [email protected] [mailto:alsa-devel-bounces@alsa- project.org] On Behalf Of Pierre-Louis Bossart
Sent: Saturday, January 6, 2018 3:20 AM
To: [email protected]
Cc: [email protected]; Keyon Jie <[email protected]>; Pierre-Louis Bossart <[email protected]>; [email protected]; Koul, Vinod <[email protected]>; [email protected]; Carlo Caione <[email protected]>; [email protected]
Subject: [alsa-devel] [PATCH 2/4] ASoC: Intel: bytcr-rt5651: enable MinnowBoard Turbot quirks
Quoted 5 lines
Define DMI quirk for rt5651 eval board connected to MinnowBoard Turbot. The only difference with a MinnowBoard MAX is that the MCLK pin is enabled on the LSE connector
Signed-off-by Pierre-Louis Bossart <[email protected]>
Quoted 34 lines
--- sound/soc/intel/boards/bytcr_rt5651.c | 9 +++++++++ 1 file changed, 9 insertions(+)sound/soc/intel/boards/bytcr_rt5651.c +9
-0@@ -266,6 +266,15 @@ static const struct dmi_system_id byt_rt5651_quirk_table[] = { }, .driver_data = (void *)(BYT_RT5651_IN3_MAP), }, + { + .callback = byt_rt5651_quirk_cb, + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ADI" ), +DMI_MATCH (DMI_PRODUCT_NAME ,"Minnowboard Turbot"), + }, + .driver_data = (void *)(BYT_RT5651_MCLK_EN | + BYT_RT5651_IN3_MAP), + }, {sound/soc/intel/boards/bytcr_rt5651.c +0
-1.callback = byt_rt5651_quirk_cb, .matches = { --2.14.1
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
PATCH 3/4 ASoC: Intel: bytcr_rt5651: fix Kiano DMI quirk
In reply to Pierre-Louis BossartThe current code doesn't enable the MCLK which reduces audio quality (PLL driven from BLCK), fix the quirk
--- sound/soc/intel/boards/bytcr_rt5651.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/intel/boards/bytcr_rt5651.c +2 -1
@@ -281,7 +281,8 @@ 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_IN1_IN2_MAP), + .driver_data = (void *)(BYT_RT5651_MCLK_EN | + BYT_RT5651_IN1_IN2_MAP), }, {} };
Signature · 1 line
2.14.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcr_rt5651: fix Kiano DMI quirk" to the asoc tree
The patch
ASoC: Intel: bytcr_rt5651: fix Kiano DMI quirk
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
Quoted 1 line
From
56e49aa41da204f8582816c3f2572862c71adc90Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 5 Jan 2018 13:20:21 -0600
Subject: [PATCH] ASoC: Intel: bytcr_rt5651: fix Kiano DMI quirk
The current code doesn't enable the MCLK which reduces audio quality (PLL driven from BLCK), fix the quirk
--- sound/soc/intel/boards/bytcr_rt5651.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/intel/boards/bytcr_rt5651.c +2 -1
@@ -264,7 +264,8 @@ 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_IN1_IN2_MAP), + .driver_data = (void *)(BYT_RT5651_MCLK_EN | + BYT_RT5651_IN1_IN2_MAP), }, {} };
Signature · 1 line
2.15.1
PATCH 3/4 ASoC: Intel: bytcr-rt5651: fix Kiano DMI quirk
In reply to Pierre-Louis BossartThe current code doesn't enable the MCLK which reduces audio quality (PLL driven from BLCK), fix the quirk
--- sound/soc/intel/boards/bytcr_rt5651.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/intel/boards/bytcr_rt5651.c +2 -1
@@ -281,7 +281,8 @@ 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_IN1_IN2_MAP), + .driver_data = (void *)(BYT_RT5651_MCLK_EN | + BYT_RT5651_IN1_IN2_MAP), }, {} };
Signature · 1 line
2.14.1
PATCH 4/4 ASoC: Intel: bytcr-rt5651: add support for Line In
In reply to Pierre-Louis BossartAdd the DAPM widgets and routes.
Tested with MinnowMax Turbot + rt5651 eval board with Speaker (LineOut) -> LineIn loopback
Thanks to Bard Liao @ Realtek for providing the 0dB settings
"IN Capture Volume" = 23
"ADC Capture Volume" = 47
"OUT Playback Volume" = 31
"DAC1 Playback Volume" = 175
--- sound/soc/intel/boards/bytcr_rt5651.c | 6 ++++++ 1 file changed, 6 insertions(+)
sound/soc/intel/boards/bytcr_rt5651.c +6 -0
@@ -131,6 +131,7 @@ static const struct snd_soc_dapm_widget byt_rt5651_widgets[] = {SND_SOC_DAPM_MIC ("Headset Mic" ,NULL ),SND_SOC_DAPM_MIC ("Internal Mic" ,NULL ),SND_SOC_DAPM_SPK ("Speaker" ,NULL ), +SND_SOC_DAPM_LINE ("Line In" ,NULL ),SND_SOC_DAPM_SUPPLY ("Platform Clock" ,SND_SOC_NOPM ,0 ,0 , platform_clock_control,SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
@@ -142,6 +143,7 @@ static const struct snd_soc_dapm_route byt_rt5651_audio_map[] = { {"Headset Mic", NULL, "Platform Clock"}, {"Internal Mic", NULL, "Platform Clock"}, {"Speaker", NULL, "Platform Clock"}, + {"Line In", NULL, "Platform Clock"}, {"AIF1 Playback", NULL, "ssp2 Tx"}, {"ssp2 Tx", NULL, "codec_out0"},
@@ -155,6 +157,9 @@ static const struct snd_soc_dapm_route byt_rt5651_audio_map[] = { {"Headphone", NULL, "HPOR"}, {"Speaker", NULL, "LOUTL"}, {"Speaker", NULL, "LOUTR"}, + {"IN2P", NULL, "Line In"}, + {"IN2N", NULL, "Line In"}, + }; static const struct snd_soc_dapm_route byt_rt5651_intmic_dmic_map[] = {
@@ -193,6 +198,7 @@ static const struct snd_kcontrol_new byt_rt5651_controls[] = {SOC_DAPM_PIN_SWITCH ("Headset Mic" ),SOC_DAPM_PIN_SWITCH ("Internal Mic" ),SOC_DAPM_PIN_SWITCH ("Speaker" ), + SOC_DAPM_PIN_SWITCH("Line In"), }; static struct snd_soc_jack_pin bytcr_jack_pins[] = {
Signature · 1 line
2.14.1
Mark Brown
maintainerApplied "ASoC: Intel: bytcr-rt5651: add support for Line In" to the asoc tree
The patch
ASoC: Intel: bytcr-rt5651: add support for Line In
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
Quoted 1 line
From
ea39bdcf22b084c6e6db0078f3140f0655a1e572Mon Sep 17 00:00:00 2001
From: Pierre-Louis Bossart <[email protected]>
Date: Fri, 5 Jan 2018 13:20:23 -0600
Subject: [PATCH] ASoC: Intel: bytcr-rt5651: add support for Line In
Add the DAPM widgets and routes.
Tested with MinnowMax Turbot + rt5651 eval board with Speaker (LineOut) -> LineIn loopback
Thanks to Bard Liao @ Realtek for providing the 0dB settings
"IN Capture Volume" = 23
"ADC Capture Volume" = 47
"OUT Playback Volume" = 31
"DAC1 Playback Volume" = 175
--- sound/soc/intel/boards/bytcr_rt5651.c | 6 ++++++ 1 file changed, 6 insertions(+)
sound/soc/intel/boards/bytcr_rt5651.c +6 -0
@@ -131,6 +131,7 @@ static const struct snd_soc_dapm_widget byt_rt5651_widgets[] = {SND_SOC_DAPM_MIC ("Headset Mic" ,NULL ),SND_SOC_DAPM_MIC ("Internal Mic" ,NULL ),SND_SOC_DAPM_SPK ("Speaker" ,NULL ), +SND_SOC_DAPM_LINE ("Line In" ,NULL ),SND_SOC_DAPM_SUPPLY ("Platform Clock" ,SND_SOC_NOPM ,0 ,0 , platform_clock_control,SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
@@ -142,6 +143,7 @@ static const struct snd_soc_dapm_route byt_rt5651_audio_map[] = { {"Headset Mic", NULL, "Platform Clock"}, {"Internal Mic", NULL, "Platform Clock"}, {"Speaker", NULL, "Platform Clock"}, + {"Line In", NULL, "Platform Clock"}, {"AIF1 Playback", NULL, "ssp2 Tx"}, {"ssp2 Tx", NULL, "codec_out0"},
@@ -155,6 +157,9 @@ static const struct snd_soc_dapm_route byt_rt5651_audio_map[] = { {"Headphone", NULL, "HPOR"}, {"Speaker", NULL, "LOUTL"}, {"Speaker", NULL, "LOUTR"}, + {"IN2P", NULL, "Line In"}, + {"IN2N", NULL, "Line In"}, + }; static const struct snd_soc_dapm_route byt_rt5651_intmic_dmic_map[] = {
@@ -193,6 +198,7 @@ static const struct snd_kcontrol_new byt_rt5651_controls[] = {SOC_DAPM_PIN_SWITCH ("Headset Mic" ),SOC_DAPM_PIN_SWITCH ("Internal Mic" ),SOC_DAPM_PIN_SWITCH ("Speaker" ), + SOC_DAPM_PIN_SWITCH("Line In"), }; static struct snd_soc_jack_pin bytcr_jack_pins[] = {
Signature · 1 line
2.15.1
Quoted 6 lines · Pierre-Louis Bossart
Fix existing quirks and add new ones, and add support for LineIn
An updated UCM file supporting all possible inputs/outputs is available at https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
Additional validation of the microphone/LineIn settings is still on-going with Carlo Caione and Realtek.
Signature · 1 line
~Vinod