OSDN Git Service

ASoC: Intel: kbl_da7219_max98357a: add fe_ops for kbl Audio Capture Port
authorMac Chiang <mac.chiang@intel.com>
Tue, 19 Jun 2018 06:16:06 +0000 (14:16 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 19 Jun 2018 14:46:30 +0000 (15:46 +0100)
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>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/kbl_da7219_max98357a.c

index 94294c2..7961f1f 100644 (file)
@@ -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",