[PATCH] ASoC: mediatek: mt8192: fix tdm out data is valid on rising edge

2021-03-11 Thread Jiaxin Yu
This patch correct tdm out bck inverse register to AUDIO_TOP_CON3[3]. Signed-off-by: Jiaxin Yu --- sound/soc/mediatek/mt8192/mt8192-dai-tdm.c | 4 +++- sound/soc/mediatek/mt8192/mt8192-reg.h | 8 +--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sound/soc/mediatek

[PATCH] ASoC: mediatek: mt8183-mt6358: set playback and capture constraints

2021-02-05 Thread Jiaxin Yu
Sets playback and capture constraints to S16_LE, stereo, 48kHz. Signed-off-by: Jiaxin Yu --- .../mt8183/mt8183-mt6358-ts3a227-max98357.c| 41 ++ 1 file changed, 41 insertions(+) diff --git a/sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c b/sound/soc

[PATCH 0/2] ASoC: mt6359: Fix regulator_dev_lookup() fails for id "LDO_VAUD18"

2020-11-19 Thread Jiaxin Yu
This series fixed "LDO_VAUD18-supply" regulator register fail. We can see the error log "mt6359-sound supply LDO_VAUD18 not found, using dummy regulator" when register the DAPM widget "LDO_VAUD18" Otherwise, the power can not be turned on correctly when recording. J

[PATCH 1/2] ASoC: mediatek: mt6359: Fix regulator_dev_lookup() fails for id "LDO_VAUD18"

2020-11-19 Thread Jiaxin Yu
okup_by_name() directly. Fixes: 64a70744b778 ("ASoC: Fix vaud18 power leakage of mt6359") Signed-off-by: Jiaxin Yu --- sound/soc/codecs/mt6359.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/mt6359.c b/sound/soc/codecs/mt6359.c index d37dbd

[PATCH 2/2] dt-bindings: mediatek: mt6359: remove unused property for mt6359

2020-11-19 Thread Jiaxin Yu
This reverts commit 08651373808e16b01d3b12207f52504c17b6774c. ("dt-bindings: mediatek: mt6359: Add new property for mt6359") Remove unused property "LDO_VAUD18-supply" in mt6359codec. Signed-off-by: Jiaxin Yu --- Documentation/devicetree/bindings/sound/mt6359.yaml | 9 -

[PATCH] dt-bindings: mediatek: mt8192: revert "add audio afe document"

2020-11-11 Thread Jiaxin Yu
This reverts commit 1afc60e00de3abbb6c559da409c5c1bb8c1d98ec. Signed-off-by: Jiaxin Yu --- https://mailman.alsa-project.org/pipermail/alsa-devel/2020-November/176873.html These dependency are continuing to upstream, I will revert this patch first. After the dependencies are merged, I will

Re: [PATCH -next v2] ASoC: mediatek: mt8192: Make some symbols static

2020-11-05 Thread Jiaxin Yu
ed. Should it be static? > ./mt8192-afe-pcm.c:2137:39: warning: symbol 'mt8192_afe_component' was not > declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei Acked-by: Jiaxin Yu Thanks for the fixing.

[PATCH v6 0/2] Add mediatek codec mt6359 driver

2020-08-20 Thread Jiaxin Yu
1714339/ v2 changes: 1. patchwork link: https://patchwork.kernel.org/cover/11706935/ https://patchwork.kernel.org/patch/11708865/ https://patchwork.kernel.org/patch/11706937/ v1 changes: 1.lkml link: https://lkml.org/lkml/2020/

[PATCH v6 2/2] dt-bindings: mediatek: mt6359: add codec document

2020-08-20 Thread Jiaxin Yu
This patch adds MediaTek MT6359 codec document. Signed-off-by: Jiaxin Yu --- .../devicetree/bindings/sound/mt6359.yaml | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mt6359.yaml diff --git a/Documentation/devicetree

[PATCH v5 2/2] dt-bindings: mediatek: mt6359: add codec document

2020-08-16 Thread Jiaxin Yu
This patch adds MediaTek MT6359 codec document. Signed-off-by: Jiaxin Yu --- .../devicetree/bindings/sound/mt6359.yaml | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mt6359.yaml diff --git a/Documentation

[PATCH v5 0/2] Add mediatek codec mt6359 driver

2020-08-16 Thread Jiaxin Yu
ork link: https://patchwork.kernel.org/cover/11706935/ https://patchwork.kernel.org/patch/11708865/ https://patchwork.kernel.org/patch/11706937/ v1 changes: 1.lkml link: https://lkml.org/lkml/2020/3/5/1257 Jiaxin Yu (2): AS

[PATCH v3 2/2] WIP: dt-bindings: mediatek: mt6359: add codec document

2020-08-14 Thread Jiaxin Yu
This patch adds MediaTek MT6359 codec document. Signed-off-by: Jiaxin Yu --- .../devicetree/bindings/sound/mt6359.yaml | 68 +++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mt6359.yaml diff --git a/Documentation/devicetree

[PATCH v3 0/2] Add mediatek codec mt6359 driver

2020-08-14 Thread Jiaxin Yu
https://patchwork.kernel.org/cover/11706935/ https://patchwork.kernel.org/patch/11708865/ https://patchwork.kernel.org/patch/11706937/ v1 changes: 1.lkml link: https://lkml.org/lkml/2020/3/5/1257 Jiaxin Yu (2): WIP: ASoC: mediatek: mt

Re: [PATCH v2 1/2] ASoC: mediatek: mt6359: add codec driver

2020-08-14 Thread Jiaxin Yu
On Thu, 2020-08-13 at 16:44 +0100, Mark Brown wrote: > On Thu, Aug 13, 2020 at 11:40:00PM +0800, Jiaxin Yu wrote: > > On Wed, 2020-08-12 at 13:05 +0100, Mark Brown wrote: > > > > These functions are exported for other drivers to use rather than > > > something done

Re: [PATCH v2 1/2] ASoC: mediatek: mt6359: add codec driver

2020-08-13 Thread Jiaxin Yu
On Wed, 2020-08-12 at 13:05 +0100, Mark Brown wrote: > On Wed, Aug 12, 2020 at 03:29:13PM +0800, Jiaxin Yu wrote: > > On Mon, 2020-08-10 at 19:59 +0100, Mark Brown wrote: > > > On Mon, Aug 10, 2020 at 11:05:53AM +0800, Jiaxin Yu wrote: > > > > > +voi

Re: [PATCH v2 1/2] ASoC: mediatek: mt6359: add codec driver

2020-08-12 Thread Jiaxin Yu
On Mon, 2020-08-10 at 19:59 +0100, Mark Brown wrote: > On Mon, Aug 10, 2020 at 11:05:53AM +0800, Jiaxin Yu wrote: > > > +void mt6359_set_playback_gpio(struct snd_soc_component *cmpnt) > > +{ > > + struct mt6359_priv *priv = snd_soc_component_get_drvd

[PATCH v2 0/2] Add mediatek codec mt6359 driver

2020-08-09 Thread Jiaxin Yu
6. Use SOC_ENUM_SINGLE_DECL instead of SOC_VALUE_ENUM_SINGLE_DECL. 7. Cleanup unused code. v1 changes: 1.lkml link: https://lkml.org/lkml/2020/3/5/1257 Jiaxin Yu (2): ASoC: mediatek: mt6359: add codec driver dt-bindings: mediatek: mt6359: add codec document .../devicetree/bin

[PATCH v2 2/2] dt-bindings: mediatek: mt6359: add codec document

2020-08-09 Thread Jiaxin Yu
This patch adds MediaTek MT6359 codec document. Signed-off-by: Jiaxin Yu --- .../devicetree/bindings/sound/mt6359.yaml | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mt6359.yaml diff --git a/Documentation

[PATCH v2 2/2] ASoC: dt-bindings: mediatek: mt6358: add dmic-mode property

2020-06-05 Thread Jiaxin Yu
Adds dmic-mode property and updates example. Signed-off-by: Jiaxin Yu --- Documentation/devicetree/bindings/sound/mt6358.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/mt6358.txt b/Documentation/devicetree/bindings/sound/mt6358.txt index

[PATCH v2 1/2] ASoC: mediatek: mt6358: support DMIC one-wire mode

2020-06-05 Thread Jiaxin Yu
Supports DMIC one-wire mode. Uses a DT property "dmic-mode" to select. Signed-off-by: Jiaxin Yu --- sound/soc/codecs/mt6358.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/mt6358.c b/sound/soc/codecs/mt6358.c index 1b830e

[PATCH v2 0/2] ASoC: mediatek: mt6358: support DMIC one-wire mode

2020-06-05 Thread Jiaxin Yu
v2 changes: 1. Uses a DT property to select DMIC mode instead of a mixer control. v1 changes: 1. Uses a mixer control to select DMIC mode. 2. patchwork list: https://patchwork.kernel.org/patch/11578309 Jiaxin Yu (2): ASoC: mediatek: mt6358: support DMIC

[v2, 1/2] ASoC: mediatek: mt6358: support DMIC one-wire mode

2020-06-05 Thread Jiaxin Yu
Supports DMIC one-wire mode. Uses a DT property "dmic-mode" to select. Signed-off-by: Jiaxin Yu --- sound/soc/codecs/mt6358.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/mt6358.c b/sound/soc/codecs/mt6358.c index 1b830e

[v2, 2/2] ASoC: dt-bindings: mediatek: mt6358: add dmic-mode property

2020-06-05 Thread Jiaxin Yu
Adds dmic-mode property and updates example. Signed-off-by: Jiaxin Yu --- Documentation/devicetree/bindings/sound/mt6358.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/mt6358.txt b/Documentation/devicetree/bindings/sound/mt6358.txt index

[PATCH] ASoC: mediatek: mt6358: support DMIC one-wire mode

2020-05-29 Thread Jiaxin Yu
Supports DMIC one-wire mode. Adds a mixer control to enable and disable. Signed-off-by: Jiaxin Yu Reviewed-by: Tzung-Bi Shih --- sound/soc/codecs/mt6358.c | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/mt6358.c b/sound/soc