diff mbox

ASoC: Intel: kbl_da7219_max98357a: add fe_ops for kbl Audio Capture Port

Message ID 1529388966-5184-1-git-send-email-mac.chiang@intel.com (mailing list archive)
State Accepted
Commit 5fd46e649ee63259f2197625662477ac67a69e79
Headers show

Commit Message

Chiang, Mac June 19, 2018, 6:16 a.m. UTC
From: Mac Chiang <mac.chiang@intel.com>

platform support fixed constraint hw_prams as Stereo, 48KHz, 16 bits.
This fixed the headset mic recorded noise due to mono capturing
request from some apps. e.g. online Voice Recorder

Signed-off-by: Louis Collard <louiscollard@google.com>
Signed-off-by: Mac Chiang <mac.chiang@intel.com>
---
 sound/soc/intel/boards/kbl_da7219_max98357a.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Pierre-Louis Bossart June 19, 2018, 2:41 p.m. UTC | #1
On 6/19/18 1:16 AM, mac.chiang@intel.com wrote:
> From: Mac Chiang <mac.chiang@intel.com>
> 
> platform support fixed constraint hw_prams as Stereo, 48KHz, 16 bits.
> This fixed the headset mic recorded noise due to mono capturing
> request from some apps. e.g. online Voice Recorder

This change mirrors existing code in bxt_da7219_max98357a.c so

Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>

> 
> Signed-off-by: Louis Collard <louiscollard@google.com>
> Signed-off-by: Mac Chiang <mac.chiang@intel.com>
> ---
>   sound/soc/intel/boards/kbl_da7219_max98357a.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/sound/soc/intel/boards/kbl_da7219_max98357a.c b/sound/soc/intel/boards/kbl_da7219_max98357a.c
> index 94294c2..7961f1f 100644
> --- a/sound/soc/intel/boards/kbl_da7219_max98357a.c
> +++ b/sound/soc/intel/boards/kbl_da7219_max98357a.c
> @@ -380,6 +380,7 @@ static struct snd_soc_dai_link kabylake_dais[] = {
>   		.trigger = {
>   			SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
>   		.dpcm_capture = 1,
> +		.ops = &kabylake_da7219_fe_ops,
>   	},
>   	[KBL_DPCM_AUDIO_DMIC_CP] = {
>   		.name = "Kbl Audio DMIC cap",
>
diff mbox

Patch

diff --git a/sound/soc/intel/boards/kbl_da7219_max98357a.c b/sound/soc/intel/boards/kbl_da7219_max98357a.c
index 94294c2..7961f1f 100644
--- a/sound/soc/intel/boards/kbl_da7219_max98357a.c
+++ b/sound/soc/intel/boards/kbl_da7219_max98357a.c
@@ -380,6 +380,7 @@  static struct snd_soc_dai_link kabylake_dais[] = {
 		.trigger = {
 			SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST},
 		.dpcm_capture = 1,
+		.ops = &kabylake_da7219_fe_ops,
 	},
 	[KBL_DPCM_AUDIO_DMIC_CP] = {
 		.name = "Kbl Audio DMIC cap",