[PATCH v3] ASoC: Intel: sof_rt5682: Add ALC1015Q-VB speaker amp support

2021-03-17 Thread Brent Lu
. | ALC1015Q-CG | ALC1015Q-VB = I2C | Yes | No Auto-mode | 48K, 64fs | 16k, 32fs | 48k, 32fs | 48k, 64fs Signed-off-by: Brent Lu --- sound/soc/intel/boards/Kconfig| 1 + sound/soc/intel

[PATCH v2] ASoC: Intel: sof_rt5682: Add ALC1015Q-VB speaker amp support

2021-03-16 Thread Brent Lu
This patch adds jsl_rt5682_rt1015p which supports the RT5682 headset codec and ALC1015Q-VB speaker amplifier combination on JasperLake platform. This driver also applies for ALC1015Q-CG running in auto-mode. Signed-off-by: Brent Lu --- sound/soc/intel/boards/Kconfig| 1

[PATCH] ASoC: Intel: sof_rt5682: Add rt1015p speaker amp support

2021-03-13 Thread Brent Lu
This patch adds jsl_rt5682_rt1015p which supports the RT5682 headset codec and RT1015P speaker amplifier combination on JasperLake platform. Signed-off-by: Brent Lu --- sound/soc/codecs/rt1015p.c| 10 ++ sound/soc/intel/boards/Kconfig| 1 + sound/soc/intel

[PATCH v2] ASoC: intel: sof_rt5682: Add support for tgl_rt1011_rt5682

2020-12-03 Thread Brent Lu
This patch adds the driver data for two rt1011 speaker amplifiers on SSP1 and rt5682 on SSP0 for TGL platform. DAI format for rt1011 is leveraged from cml_rt1011_rt5682 which is 4-slot tdm with 100fs bclk. Signed-off-by: Brent Lu --- sound/soc/intel/boards/Kconfig| 1 + sound

[PATCH] ASoC: intel: sof_rt5682: Add support for tgl_rt1011_rt5682

2020-12-01 Thread Brent Lu
This patch adds the driver data for two rt1011 speaker amplifiers on SSP1 and rt5682 on SSP0 for TGL platform. DAI format for rt1011 is leveraged from cml_rt1011_rt5682 which is 4-slot tdm with 100fs bclk. Signed-off-by: Brent Lu --- sound/soc/intel/boards/Kconfig| 1 + sound

[PATCH v2 1/2] ASoC: intel: sof_rt5682: Add support for cml_rt1015_rt5682

2020-10-30 Thread Brent Lu
This patch adds the driver data and updates quirk info for cml with rt1015 speaker amp and rt5682 headset codec. Due to different mclk frequency on JSL and CML, we need to use 4 slot TDM 100fs to avoid the SSP m/n counter. Signed-off-by: Brent Lu --- sound/soc/intel/boards/sof_rt5682.c

[PATCH v2 0/2] Add rt1015 support to CML boards

2020-10-30 Thread Brent Lu
First patch adds tdm 4-slot 100fs DAI setting to avoid jitter of using 64fs on CML boards. Second patch is a DMI quirk for HP Dooly. Changes since v1: -Add comment on Dooly's DMI quirk Brent Lu (2): ASoC: intel: sof_rt5682: Add support for cml_rt1015_rt5682 ASoC: intel: sof_rt5682: Add quirk

[PATCH v2 2/2] ASoC: intel: sof_rt5682: Add quirk for Dooly

2020-10-30 Thread Brent Lu
This DMI product family string of this board is "Google_Hatch" so the DMI quirk will take place. However, this board is using rt1015 speaker amp instead of max98357a specified in the quirk. Therefore, we need an new DMI quirk for this board. Signed-off-by: Brent Lu --- sound/soc/in

[PATCH 2/2] ASoC: intel: sof_rt5682: Add quirk for Dooly

2020-10-30 Thread Brent Lu
This DMI product family string of this board is "Google_Hatch" so the DMI quirk will take place. However, this board is using rt1015 speaker amp instead of max98357a specified in the quirk. Therefore, we need an new DMI quirk for this board. Signed-off-by: Brent Lu --- sound/soc/in

[PATCH 1/2] ASoC: intel: sof_rt5682: Add support for cml_rt1015_rt5682

2020-10-30 Thread Brent Lu
This patch adds the driver data and updates quirk info for cml with rt1015 speaker amp and rt5682 headset codec. Due to different mclk frequency on JSL and CML, we need to use 4 slot TDM 100fs to avoid the SSP m/n counter. Signed-off-by: Brent Lu --- sound/soc/intel/boards/sof_rt5682.c

[PATCH 0/2] Add rt1015 support to CML boards

2020-10-30 Thread Brent Lu
First patch adds tdm 4-slot 100fs DAI setting to avoid jitter of using 64fs on CML boards. Second patch is a DMI quirk for HP Dooly. Brent Lu (2): ASoC: intel: sof_rt5682: Add support for cml_rt1015_rt5682 ASoC: intel: sof_rt5682: Add quirk for Dooly sound/soc/intel/boards/sof_rt5682.c

[PATCH] ASoC: Intel: sof_rt5682: update quirk for cml boards

2020-10-21 Thread Brent Lu
The default quirk data of sof_rt5682 is for tgl platform. For cml platforms to reuse this driver, the flag SOF_RT5682_MCLK_24MHZ is necessary to setup codec asrc correctly. Signed-off-by: Brent Lu --- sound/soc/intel/boards/sof_rt5682.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v3] ASoC: hdac_hdmi: support 'ELD' mixer

2020-08-18 Thread Brent Lu
with the user-space interface exposed by patch_hdmi.c. Also the pcm-to-many routing is nor really supported by the driver now. Signed-off-by: Brent Lu --- sound/soc/codecs/hdac_hdmi.c | 138 +++ 1 file changed, 138 insertions(+) diff --git a/sound/soc/codecs

[PATCH v2] ASoC: hdac_hdmi: support 'ELD' mixer

2020-08-17 Thread Brent Lu
Add an binary mixer 'ELD' to each HDMI PCM device so user space could read the ELD data of external HDMI display. Signed-off-by: Brent Lu --- sound/soc/codecs/hdac_hdmi.c | 138 +++ 1 file changed, 138 insertions(+) diff --git a/sound/soc/codecs/hdac_hdmi.c b

[PATCH] ASoC: hdac_hdmi: support 'ELD' mixer

2020-08-14 Thread Brent Lu
Add an binary mixer 'ELD' to each HDMI PCM device so user space could read the ELD data of external HDMI display. Signed-off-by: Brent Lu --- sound/soc/codecs/hdac_hdmi.c | 139 +++ 1 file changed, 139 insertions(+) diff --git a/sound/soc/codecs/hdac_hdmi.c b

[PATCH v3 0/2] Add period size constraint for Atom Chromebook

2020-07-31 Thread Brent Lu
of media_period_size array declaration. Changes since v2: -Use snd_pcm_hw_constraint_step to enforce the 1ms period. Brent Lu (1): ASoC: intel: atom: Add period size constraint Yu-Hsuan Hsu (1): ASoC: Intel: Add period size constraint on strago board sound/soc/intel/atom/sst-mfld-platform-pcm.c

[PATCH v3 1/2] ASoC: intel: atom: Add period size constraint

2020-07-31 Thread Brent Lu
Use constraint to make sure the period size could always be multiple of 1ms to align with the fundamental design/limitation of firmware. Signed-off-by: Brent Lu --- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/sound/soc/intel/atom

[PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-07-31 Thread Brent Lu
a good value. Cyan uses chtmax98090 and others(banon, celes, edgar, kefka...) use rt5650. Signed-off-by: Yu-Hsuan Hsu Signed-off-by: Brent Lu --- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 14 +- sound/soc/intel/boards/cht_bsw_rt5645.c | 14 +- 2 files changed

[PATCH v2 2/2] ASoC: Intel: Add period size constraint on strago board

2020-07-30 Thread Brent Lu
a good value. Cyan uses chtmax98090 and others(banon, celes, edgar, kefka...) use rt5650. Signed-off-by: Yu-Hsuan Hsu Signed-off-by: Brent Lu --- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 14 +- sound/soc/intel/boards/cht_bsw_rt5645.c | 14 +- 2 files changed

[PATCH v2 0/2] Add period size constraint for Atom Chromebook

2020-07-30 Thread Brent Lu
Two different constraints are implemented: one is in platform's CPU DAI to enforce period sizes which are already used in Android BSP. The other is in Atom Chromebook's machine driver to use 240 as period size. Changes since v1: -Add comma at the end of media_period_size array declaration. Brent

[PATCH v2 1/2] ASoC: intel: atom: Add period size constraint

2020-07-30 Thread Brent Lu
Use constraint to enforce the period sizes which are validated in Android BSP. Signed-off-by: Brent Lu --- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst

[PATCH 2/2] ASoC: Intel: Add period size constraint on strago board

2020-07-29 Thread Brent Lu
a good value. Cyan uses chtmax98090 and others(banon, celes, edgar, kefka...) use rt5650. Signed-off-by: Yu-Hsuan Hsu Signed-off-by: Brent Lu --- sound/soc/intel/boards/cht_bsw_max98090_ti.c | 14 +- sound/soc/intel/boards/cht_bsw_rt5645.c | 14 +- 2 files changed

[PATCH 0/2] Add period size constraint for Atom Chromebook

2020-07-29 Thread Brent Lu
Two different constraints are implemented: one is in platform's CPU DAI to enforce period sizes which are already used in Android BSP. The other is in Atom Chromebook's machine driver to use 240 as period size. Brent Lu (1): ASoC: intel: atom: Add period size constraint Yu-Hsuan Hsu (1

[PATCH 1/2] ASoC: intel: atom: Add period size constraint

2020-07-29 Thread Brent Lu
Use constraint to enforce the period sizes which are validated in Android BSP. Signed-off-by: Brent Lu --- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst

[PATCH] ASoC: Intel: Atom: use hardware counter to update hw_ptr

2020-07-26 Thread Brent Lu
provide precise hw_ptr to user space and avoid the false underrun in CRAS. Signed-off-by: Brent Lu --- sound/soc/intel/atom/sst/sst_drv_interface.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/sound/soc/intel/atom/sst/sst_drv_interface.c b/sound/soc/intel

[PATCH] ASoC: hdac_hdmi: remove cancel_work_sync in runtime suspend

2020-07-15 Thread Brent Lu
is to enable/disable the dapm jack pin so it's not necessary to cancel the work in runtime suspend function which is usually called when pcm device is closed. Signed-off-by: Brent Lu --- sound/soc/codecs/hdac_hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound

[PATCH v2] ASoC: Intel: bxt-da7219-max98357a: support MAX98390 speaker amp

2020-07-01 Thread Brent Lu
Support MAX98390 speaker amplifier on cometlake platform. Driver now detects amplifier type in the probe function and installs corresponding controls and DAPM widgets/routes in the late_probe function. Signed-off-by: Brent Lu --- sound/soc/intel/boards/Kconfig| 5 +- sound

[PATCH] ASoC: Intel: bxt-da7219-max98357a: support MAX98390 speaker amp

2020-06-30 Thread Brent Lu
Support MAX98390 speaker amplifier on cometlake platform. Driver now detects amplifier type in the probe function and installs corresponding controls and DAPM widgets/routes in the late_probe function. Signed-off-by: Brent Lu --- sound/soc/intel/boards/Kconfig| 20

[PATCH v3] ASoC: SOF: Intel: hda: Clear RIRB status before reading WP

2020-06-12 Thread Brent Lu
d for some reason. Signed-off-by: Brent Lu --- sound/soc/sof/intel/hda-stream.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sound/soc/sof/intel/hda-stream.c b/sound/soc/sof/intel/hda-stream.c index 7f65dcc..1bda14c 100644 --- a/sound/soc/sof/intel/hda-stream.c +++ b

[PATCH v2] ASoC: SOF: Intel: hda: unsolicited RIRB response

2020-06-12 Thread Brent Lu
d for some reason. Signed-off-by: Brent Lu --- sound/soc/sof/intel/hda-stream.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sound/soc/sof/intel/hda-stream.c b/sound/soc/sof/intel/hda-stream.c index 7f65dcc..1bda14c 100644 --- a/sound/soc/sof/intel/hda-stream.c +++ b

[PATCH v2] ALSA: pcm: fix incorrect hw_base increase

2020-05-17 Thread Brent Lu
4 avail 0 ... [ 381.139517] sound pcmC0D5p: pos 96 hw_ptr 96 appl_ptr 16464 avail 0 Signed-off-by: Brent Lu --- sound/core/pcm_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c index 872a852..d531e1b 100644 --- a/sound/core/pcm_lib.c +++ b/sound/core/

[PATCH] ALSA: pcm: fix incorrect hw_base increase

2020-05-14 Thread Brent Lu
e program calls snd_pcm_avail() function. By updating runtime->hw_ptr_jiffies each time the HWSYNC is called, the hw_base will keep the same when buffer stall happens, so does the hw_ptr. Signed-off-by: Brent Lu --- sound/core/pcm_lib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/core/pcm_

[PATCH] ASoC: Intel: eve: Enable mclk and ssp sclk early for rt5514

2019-10-23 Thread Brent Lu
is attached to SSP0 and the rt5663 is attached to SSP1 so we create another supply widget to provide SSP0 mclk/sclk to rt5514. Signed-off-by: Brent Lu --- .../soc/intel/boards/kbl_rt5663_rt5514_max98927.c | 136 ++--- 1 file changed, 92 insertions(+), 44 deletions(-) diff --git

[PATCH] ASoC: bdw-rt5677: enable runtime channel merge

2019-10-02 Thread Brent Lu
In the DAI link "Capture PCM", the FE DAI "Capture Pin" supports 4-channel capture but the BE DAI supports only 2-channel capture. To fix the channel mismatch, we need to enable the runtime channel merge for this DAI link. Signed-off-by: Brent Lu --- sound/soc/intel/boards/b

[PATCH] ASoC: bdw-rt5677: channel constraint support

2019-09-05 Thread Brent Lu
BDW boards using this machine driver supports only stereo capture and playback. Implement a constraint to enforce it. Signed-off-by: Brent Lu --- sound/soc/intel/boards/bdw-rt5677.c | 33 + 1 file changed, 33 insertions(+) diff --git a/sound/soc/intel/boards/bdw