[PATCH 1/3] ASoC:codec:max98373: Changed amp shutdown register as volatile

2021-03-24 Thread Ryan Lee
-volatile register. When amp is internally shutdown by some reason, next 'AMP ON' command can be ignored because regmap think amp is already ON. Signed-off-by: Ryan Lee --- sound/soc/codecs/max98373-i2c.c | 1 + sound/soc/codecs/max98373-sdw.c | 1 + 2 files changed, 2 insertions(+) diff --git

[PATCH 3/3] ASoC:codec:max98373: Added controls for autorestart config

2021-03-24 Thread Ryan Lee
rature recovers from thermal shutdown. "CMON Autorestart Switch" : controls whether or not the device automatically resumes playback when the clock returns after stopping. Above Auto Restart functions are enabled by default. Signed-off-by: Ryan Lee --- sound/soc/codecs/max98373.c | 14 ++

[PATCH 2/3] ASoC:codec:max98373: Added 30ms turn on/off time delay

2021-03-24 Thread Ryan Lee
Amp requires 10 ~ 30ms for the power ON and OFF. Added 30ms delay for stability. Signed-off-by: Ryan Lee --- sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index 746c829312b8..1346a98ce8a1 100644

[V3] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-29 Thread Ryan Lee
means software reset is completed well. Additional 10ms delay was added for every retrial and maximum 30ms delay can be applied. Signed-off-by: Ryan Lee --- Changes since v2: - Added commit message. Changes since v1: - Removed unusual repeat for amp software reset and verification. - Amp software

[V3] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-29 Thread Ryan Lee
means software reset is completed well. Additional 10ms delay was added for every retrial and maximum 30ms delay can be applied. Signed-off-by: Ryan Lee --- Changes since v2: - Added commit message. Changes since v1: - Removed unusual repeat for amp software reset and verification. - Amp software

RE: [PATCH V2] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-29 Thread Ryan Lee
>-Original Message- >From: Mark Brown >Sent: Thursday, November 29, 2018 3:26 AM >To: Grant Grundler >Cc: Ryan Lee ; Liam Girdwood >; pe...@perex.cz; ti...@suse.com; Kuninori >Morimoto ; Benson Leung >; alsa-de...@alsa-project.org; LKML ker...@vger.kernel.org>

RE: [PATCH V2] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-29 Thread Ryan Lee
>-Original Message- >From: Mark Brown >Sent: Thursday, November 29, 2018 3:26 AM >To: Grant Grundler >Cc: Ryan Lee ; Liam Girdwood >; pe...@perex.cz; ti...@suse.com; Kuninori >Morimoto ; Benson Leung >; alsa-de...@alsa-project.org; LKML ker...@vger.kernel.org>

RE: [PATCH V2] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-29 Thread Ryan Lee
>-Original Message- >From: Grant Grundler >Sent: Wednesday, November 28, 2018 5:56 PM >To: Ryan Lee >Cc: broo...@kernel.org; Liam Girdwood ; >pe...@perex.cz; ti...@suse.com; Grant Grundler >; Kuninori Morimoto >; Benson Leung >; alsa-de...@alsa-project.org;

RE: [PATCH V2] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-29 Thread Ryan Lee
>-Original Message- >From: Grant Grundler >Sent: Wednesday, November 28, 2018 5:56 PM >To: Ryan Lee >Cc: broo...@kernel.org; Liam Girdwood ; >pe...@perex.cz; ti...@suse.com; Grant Grundler >; Kuninori Morimoto >; Benson Leung >; alsa-de...@alsa-project.org;

RE: [PATCH V2] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-28 Thread Ryan Lee
>-Original Message- >From: Mark Brown >Sent: Wednesday, November 28, 2018 1:50 AM >To: Ryan Lee >Cc: Liam Girdwood ; Jaroslav Kysela >; Takashi Iwai ; Grant Grundler >; Kuninori Morimoto >; Benson Leung >; alsa-de...@alsa-project.org; linux- >ker..

RE: [PATCH V2] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-28 Thread Ryan Lee
>-Original Message- >From: Mark Brown >Sent: Wednesday, November 28, 2018 1:50 AM >To: Ryan Lee >Cc: Liam Girdwood ; Jaroslav Kysela >; Takashi Iwai ; Grant Grundler >; Kuninori Morimoto >; Benson Leung >; alsa-de...@alsa-project.org; linux- >ker..

[PATCH V2] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-27 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes since v1 : Removed unusual repeat for amp software reset and verification. Amp software reset will be performed once and it repeats verification maximum 3 times if it is failed. Wait 10ms before every verification trial

[PATCH V2] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-27 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes since v1 : Removed unusual repeat for amp software reset and verification. Amp software reset will be performed once and it repeats verification maximum 3 times if it is failed. Wait 10ms before every verification trial

RE: [PATCH] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-27 Thread Ryan Lee
>-Original Message- >From: Mark Brown >Sent: Tuesday, November 27, 2018 3:51 AM >To: Ryan Lee >Cc: Liam Girdwood ; Jaroslav Kysela >; Takashi Iwai ; Grant Grundler >; Kuninori Morimoto >; Benson Leung >; alsa-de...@alsa-project.org; linux- >ker...@vger.k

RE: [PATCH] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-27 Thread Ryan Lee
>-Original Message- >From: Mark Brown >Sent: Tuesday, November 27, 2018 3:51 AM >To: Ryan Lee >Cc: Liam Girdwood ; Jaroslav Kysela >; Takashi Iwai ; Grant Grundler >; Kuninori Morimoto >; Benson Leung >; alsa-de...@alsa-project.org; linux- >ker...@vger.k

RE: [PATCH] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-27 Thread Ryan Lee
Grant, Thanks for your feedback. Please find my answers inline. >-Original Message- >From: Grant Grundler >Sent: Monday, November 26, 2018 6:25 PM >To: Ryan Lee >Cc: Liam Girdwood ; broo...@kernel.org; >pe...@perex.cz; ti...@suse.com; Grant Grundler >; Kuninori Mor

RE: [PATCH] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-27 Thread Ryan Lee
Grant, Thanks for your feedback. Please find my answers inline. >-Original Message- >From: Grant Grundler >Sent: Monday, November 26, 2018 6:25 PM >To: Ryan Lee >Cc: Liam Girdwood ; broo...@kernel.org; >pe...@perex.cz; ti...@suse.com; Grant Grundler >; Kuninori Mor

RE: [PATCH] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-27 Thread Ryan Lee
>-Original Message- >From: Grant Grundler >Sent: Monday, November 26, 2018 6:28 PM >To: Grant Grundler >Cc: Ryan Lee ; Liam Girdwood >; broo...@kernel.org; pe...@perex.cz; >ti...@suse.com; Kuninori Morimoto ; >Benson Leung ; alsa-de...@alsa-project.org; LKML >

RE: [PATCH] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-27 Thread Ryan Lee
>-Original Message- >From: Grant Grundler >Sent: Monday, November 26, 2018 6:28 PM >To: Grant Grundler >Cc: Ryan Lee ; Liam Girdwood >; broo...@kernel.org; pe...@perex.cz; >ti...@suse.com; Kuninori Morimoto ; >Benson Leung ; alsa-de...@alsa-project.org; LKML >

[PATCH] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-26 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Created max98373_reset function to minimize code duplication. Changed regmap_write to regmap_update_bits. Other bits except LSB need to be masked. Added reset verification step to make sure software reset is completed well. Software

[PATCH] ASoC: max98373: Added max98373_reset for stable amp reset

2018-11-26 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Created max98373_reset function to minimize code duplication. Changed regmap_write to regmap_update_bits. Other bits except LSB need to be masked. Added reset verification step to make sure software reset is completed well. Software

[PATCH 3/4] ASoC: max98373: Sort max98373_bde_gain_tlv in reverse order

2018-10-10 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Sort 'max98373_bde_gain_tlv' in reverse order. Fixed wrong use case of 'TLV_DB_SCALE_ITEM' - TLV_DB_SCALE_ITEM(min, step, mute) Max value was set in min field and negative value was set in step field before. sound/soc/codecs

[PATCH 4/4] ASoC: max98373: Sort DHT Rot Pnt Volume in reverse order

2018-10-10 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Sort 'max98373_dht_spkgain_min_tlv' in reverse order. Fixed wrong use case of 'TLV_DB_SCALE_ITEM' - TLV_DB_SCALE_ITEM(min, step, mute) Max value was set in min field and negative value was set in step field before. sound/soc

[PATCH 3/4] ASoC: max98373: Sort max98373_bde_gain_tlv in reverse order

2018-10-10 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Sort 'max98373_bde_gain_tlv' in reverse order. Fixed wrong use case of 'TLV_DB_SCALE_ITEM' - TLV_DB_SCALE_ITEM(min, step, mute) Max value was set in min field and negative value was set in step field before. sound/soc/codecs

[PATCH 4/4] ASoC: max98373: Sort DHT Rot Pnt Volume in reverse order

2018-10-10 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Sort 'max98373_dht_spkgain_min_tlv' in reverse order. Fixed wrong use case of 'TLV_DB_SCALE_ITEM' - TLV_DB_SCALE_ITEM(min, step, mute) Max value was set in min field and negative value was set in step field before. sound/soc

[PATCH 2/4] ASoC: max98373: Sort BDE Limiter Thresh Volume in reverse order

2018-10-10 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Sort 'max98373_limiter_thresh_tlv' in reverse order. Fixed wrong use case of 'TLV_DB_SCALE_ITEM' - TLV_DB_SCALE_ITEM(min, step, mute) Max value was set in min field and negative value was set in step field before. sound/soc

[PATCH 1/4] ASoC: max98373: Sort Digital Volume in reverse order

2018-10-10 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Sort 'max98373_digital_tlv' in reverse order. Fixed wrong use case of 'TLV_DB_SCALE_ITEM' - TLV_DB_SCALE_ITEM(min, step, mute) Max value was set in min field and negative value was set in step field before. sound/soc/codecs

[PATCH 2/4] ASoC: max98373: Sort BDE Limiter Thresh Volume in reverse order

2018-10-10 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Sort 'max98373_limiter_thresh_tlv' in reverse order. Fixed wrong use case of 'TLV_DB_SCALE_ITEM' - TLV_DB_SCALE_ITEM(min, step, mute) Max value was set in min field and negative value was set in step field before. sound/soc

[PATCH 1/4] ASoC: max98373: Sort Digital Volume in reverse order

2018-10-10 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Sort 'max98373_digital_tlv' in reverse order. Fixed wrong use case of 'TLV_DB_SCALE_ITEM' - TLV_DB_SCALE_ITEM(min, step, mute) Max value was set in min field and negative value was set in step field before. sound/soc/codecs

[v2] ASoC: max98373: Added 10ms sleep after amp software reset

2018-08-23 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes since v1 : Applied usleep_range intead of using mdelay Changes : Applied 10ms delay after amp software reset. 10ms guard time is required for stability. sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc

[v2] ASoC: max98373: Added 10ms sleep after amp software reset

2018-08-23 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes since v1 : Applied usleep_range intead of using mdelay Changes : Applied 10ms delay after amp software reset. 10ms guard time is required for stability. sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc

RE: [PATCH] ASoC: max98373: Added 10ms delay after amp software reset

2018-08-23 Thread Ryan Lee
>-Original Message- >From: Dmitry Torokhov >Sent: Thursday, August 23, 2018 5:08 PM >To: Mark Brown >Cc: Ryan Lee ; Liam Girdwood >; Jaroslav Kysela ; Takashi Iwai >; Kuninori Morimoto ; >alsa-de...@alsa-project.org; lkml ; >ryan.lee.ma...@gmail.com >Subje

RE: [PATCH] ASoC: max98373: Added 10ms delay after amp software reset

2018-08-23 Thread Ryan Lee
>-Original Message- >From: Dmitry Torokhov >Sent: Thursday, August 23, 2018 5:08 PM >To: Mark Brown >Cc: Ryan Lee ; Liam Girdwood >; Jaroslav Kysela ; Takashi Iwai >; Kuninori Morimoto ; >alsa-de...@alsa-project.org; lkml ; >ryan.lee.ma...@gmail.com >Subje

[PATCH] ASoC: max98373: Added 10ms delay after amp software reset

2018-08-22 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Applied 10ms delay after amp software reset. 10ms guard time is required for stability. sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index 2764fae

[PATCH] ASoC: max98373: Added 10ms delay after amp software reset

2018-08-22 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Applied 10ms delay after amp software reset. 10ms guard time is required for stability. sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index 2764fae

[PATCH] ASoC: max98373: Added speaker FS gain cotnrol register to volatile.

2018-08-15 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Added Speaker FS gain maximum control(0x203E) register to volatile. sound/soc/codecs/max98373.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index 92b7125..2764fae 100644 --- a/sound/soc

[PATCH] ASoC: max98373: Added speaker FS gain cotnrol register to volatile.

2018-08-15 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Added Speaker FS gain maximum control(0x203E) register to volatile. sound/soc/codecs/max98373.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index 92b7125..2764fae 100644 --- a/sound/soc

[PATCH] ASoC: max98373: Added software reset register to readable registers

2018-08-07 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Added 'MAX98373_R2000_SW_RESET' register to 'max98373_readable_register' Software reset didn't work properly after suspend/resume. sound/soc/codecs/max98373.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/max98373.c b

[PATCH] ASoC: max98373: Added software reset register to readable registers

2018-08-07 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes : Added 'MAX98373_R2000_SW_RESET' register to 'max98373_readable_register' Software reset didn't work properly after suspend/resume. sound/soc/codecs/max98373.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/max98373.c b

[PATCH] ASoC: max98373 Changed SPDX header in C++ comments style

2018-01-18 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Chagelog: Changed SPDX header in C comment-style to C++ comment style sound/soc/codecs/max98373.c | 4 ++-- sound/soc/codecs/max98373.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sound/soc/

[PATCH] ASoC: max98373 Changed SPDX header in C++ comments style

2018-01-18 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Chagelog: Changed SPDX header in C comment-style to C++ comment style sound/soc/codecs/max98373.c | 4 ++-- sound/soc/codecs/max98373.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs

RE: [PATCH 1/4] ASoC: max98373: Changed SPDX header in C++ comments style

2018-01-18 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Wednesday, January 10, 2018 2:30 AM >To: Takashi Iwai <ti...@suse.de> >Cc: Ryan Lee <ryans@maximintegrated.com>; alsa-de...@alsa-project.org; >lgirdw...@gmail.com; ryan.lee.ma...@gm

RE: [PATCH 1/4] ASoC: max98373: Changed SPDX header in C++ comments style

2018-01-18 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Wednesday, January 10, 2018 2:30 AM >To: Takashi Iwai >Cc: Ryan Lee ; alsa-de...@alsa-project.org; >lgirdw...@gmail.com; ryan.lee.ma...@gmail.com; pe...@perex.cz; linux- >ker...@vger.kernel.org &

[PATCH 2/4] ASoC: max98373: Added missing blank lines

2018-01-09 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Added missing blank line into two places. sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index e040b03..77b86c4

[PATCH 2/4] ASoC: max98373: Added missing blank lines

2018-01-09 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Added missing blank line into two places. sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index e040b03..77b86c4 100644 --- a/sound/soc/codecs/max98373.c

[PATCH 1/4] ASoC: max98373: Changed SPDX header in C++ comments style

2018-01-09 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Changed SPDX header in C comment-style to C++ comment-style sound/soc/codecs/max98373.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max9

[PATCH 3/4] ASoC: max98373: Added TDM off if parameters are all zeroes

2018-01-09 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Added tdm_mode off condition when all input parameters are zero sound/soc/codecs/max98373.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/

[PATCH 1/4] ASoC: max98373: Changed SPDX header in C++ comments style

2018-01-09 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Changed SPDX header in C comment-style to C++ comment-style sound/soc/codecs/max98373.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index 9af0d98..e040b03 100644

[PATCH 3/4] ASoC: max98373: Added TDM off if parameters are all zeroes

2018-01-09 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Added tdm_mode off condition when all input parameters are zero sound/soc/codecs/max98373.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index 77b86c4..c5ff30f

[PATCH 4/4] ASoC: max98373: Modified control names for TLV controls

2018-01-09 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Added suffix - 'Volume' to all TLV controls. sound/soc/codecs/max98373.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/sound/soc/codecs/max98373.c b/sou

[PATCH 4/4] ASoC: max98373: Modified control names for TLV controls

2018-01-09 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Added suffix - 'Volume' to all TLV controls. sound/soc/codecs/max98373.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/sound/soc/codecs/max98373.c b/sound/soc/codecs/max98373.c index

RE: [V3 2/2] ASoC: max98373: Added Amplifier Driver

2018-01-05 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Thursday, January 4, 2018 9:14 AM >To: Ryan Lee <ryans@maximintegrated.com> >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; a...@arndb.de; >a...@ti.com; robert.jarz...@free.fr;

RE: [V3 2/2] ASoC: max98373: Added Amplifier Driver

2018-01-05 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Thursday, January 4, 2018 9:14 AM >To: Ryan Lee >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; a...@arndb.de; >a...@ti.com; robert.jarz...@free.fr; supercraig0...@gmail.com; >jbru...@

[V3 2/2] ASoC: max98373: Added Amplifier Driver

2018-01-03 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changes since v2: * Splitted dt bindings to the separated patch * Changed 'interelave-mode' device property from u32 to boolean Changes since v1: * Removed 'codec' from 'max98373_priv' str

[V3 2/2] ASoC: max98373: Added Amplifier Driver

2018-01-03 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes since v2: * Splitted dt bindings to the separated patch * Changed 'interelave-mode' device property from u32 to boolean Changes since v1: * Removed 'codec' from 'max98373_priv' structure : Now 'max98373_set_clock

[V3 1/2] dt-bindings: Added device tree binding for max98373 amplifier

2018-01-03 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changes since v2: * Splitted dt bindings to the separated patch * Changed 'interelave-mode' device property from u32 to boolean .../devicetree/bindings/sound/max98373.txt | 40 ++

[V3 1/2] dt-bindings: Added device tree binding for max98373 amplifier

2018-01-03 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes since v2: * Splitted dt bindings to the separated patch * Changed 'interelave-mode' device property from u32 to boolean .../devicetree/bindings/sound/max98373.txt | 40 ++ 1 file changed, 40 insertions(+) create

RE: [v2] ASoC: max98373: Added Amplifier Driver

2018-01-03 Thread Ryan Lee
>-Original Message- >From: Rob Herring [mailto:r...@kernel.org] >Sent: Tuesday, December 26, 2017 3:33 PM >To: Ryan Lee <ryans@maximintegrated.com> >Cc: lgirdw...@gmail.com; broo...@kernel.org; mark.rutl...@arm.com; >pe...@perex.cz; ti...@suse.com; a.

RE: [v2] ASoC: max98373: Added Amplifier Driver

2018-01-03 Thread Ryan Lee
>-Original Message- >From: Rob Herring [mailto:r...@kernel.org] >Sent: Tuesday, December 26, 2017 3:33 PM >To: Ryan Lee >Cc: lgirdw...@gmail.com; broo...@kernel.org; mark.rutl...@arm.com; >pe...@perex.cz; ti...@suse.com; a...@arndb.de; a...@ti.com; >robert.jarz...

[v2] ASoC: max98373: Added Amplifier Driver

2017-12-25 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changes since v1: * Removed 'codec' from 'max98373_priv' structure : Now 'max98373_set_clock' function use 'dai->codec.dev' instead of using 'max98373->codec.dev'. * Removed 'max98373_da

[v2] ASoC: max98373: Added Amplifier Driver

2017-12-25 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changes since v1: * Removed 'codec' from 'max98373_priv' structure : Now 'max98373_set_clock' function use 'dai->codec.dev' instead of using 'max98373->codec.dev'. * Removed 'max98373_dai_set_sysclk' fu

RE: [PATCH] ASoC: max98373: Added Amplifier Driver

2017-12-25 Thread Ryan Lee
Hi Philppe Ombredanne, >-Original Message- >From: Philippe Ombredanne [mailto:pombreda...@nexb.com] >Sent: Friday, December 22, 2017 12:39 AM >To: Ryan Lee <ryans@maximintegrated.com> >Cc: Liam Girdwood <lgirdw...@gmail.com>; Mark <broo...@kernel.org>;

RE: [PATCH] ASoC: max98373: Added Amplifier Driver

2017-12-25 Thread Ryan Lee
Hi Philppe Ombredanne, >-Original Message- >From: Philippe Ombredanne [mailto:pombreda...@nexb.com] >Sent: Friday, December 22, 2017 12:39 AM >To: Ryan Lee >Cc: Liam Girdwood ; Mark ; >Rob Herring ; Mark Rutland ; >Jaroslav Kysela ; Takashi Iwai ; Arnd &g

RE: [PATCH] ASoC: max98373: Added Amplifier Driver

2017-12-25 Thread Ryan Lee
Hi Kuninori Miromoto, >-Original Message- >From: Kuninori Morimoto [mailto:kuninori.morimoto...@renesas.com] >Sent: Thursday, December 21, 2017 6:24 PM >To: Ryan Lee <ryans@maximintegrated.com> >Cc: lgirdw...@gmail.com; broo...@kernel.org; robh...@kernel.org; >

RE: [PATCH] ASoC: max98373: Added Amplifier Driver

2017-12-25 Thread Ryan Lee
Hi Kuninori Miromoto, >-Original Message- >From: Kuninori Morimoto [mailto:kuninori.morimoto...@renesas.com] >Sent: Thursday, December 21, 2017 6:24 PM >To: Ryan Lee >Cc: lgirdw...@gmail.com; broo...@kernel.org; robh...@kernel.org; >mark.rutl...@arm.com; pe...@perex.

[PATCH] ASoC: max98373: Added Amplifier Driver

2017-12-21 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Created max98373 amplifier driver. .../devicetree/bindings/sound/max98373.txt | 43 + sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/

[PATCH] ASoC: max98373: Added Amplifier Driver

2017-12-21 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Created max98373 amplifier driver. .../devicetree/bindings/sound/max98373.txt | 43 + sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/max98373.c

[PATCH 2/2] ASoC: max98927: Added max98927_dai_tdm_slot function

2017-09-14 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Added 'max98927_dai_tdm_slot' function to set proper slot configuration. Added variable 'tdm_mode' to avoid BCLK overwrite after 'max98927_dai_tdm_slot' configure BCLK value. :BCLK value is being set

[PATCH 2/2] ASoC: max98927: Added max98927_dai_tdm_slot function

2017-09-14 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Added 'max98927_dai_tdm_slot' function to set proper slot configuration. Added variable 'tdm_mode' to avoid BCLK overwrite after 'max98927_dai_tdm_slot' configure BCLK value. :BCLK value is being set inside 'max98927_dai_tdm_slot' function when it is tdm

[PATCH 2/2] ASoC: max98927: Added max98927_dai_tdm_slot function

2017-09-14 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- sound/soc/codecs/max98927.c | 120 ++-- sound/soc/codecs/max98927.h | 1 + 2 files changed, 105 insertions(+), 16 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/

[PATCH 2/2] ASoC: max98927: Added max98927_dai_tdm_slot function

2017-09-14 Thread Ryan Lee
Signed-off-by: Ryan Lee --- sound/soc/codecs/max98927.c | 120 ++-- sound/soc/codecs/max98927.h | 1 + 2 files changed, 105 insertions(+), 16 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index 6f7b3ef..a1d3935

[PATCH 1/2] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-14 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Modified copyright date Added support for DSP_A and DSP_B format. Added 'use_pdm' variable to distinguish configuration for pcm and pdm. Maxim's TDM_MODE1 is matched with DSP_A Maxim's TDM_MODE0 is matched with DSP_B

[PATCH 1/2] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-14 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- sound/soc/codecs/max98927.c | 35 --- sound/soc/codecs/max98927.h | 6 -- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max9

[PATCH 1/2] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-14 Thread Ryan Lee
Signed-off-by: Ryan Lee --- sound/soc/codecs/max98927.c | 35 --- sound/soc/codecs/max98927.h | 6 -- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index d9dbbe7..6f7b3ef 100644

[PATCH 1/2] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-14 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Modified copyright date Added support for DSP_A and DSP_B format. Added 'use_pdm' variable to distinguish configuration for pcm and pdm. Maxim's TDM_MODE1 is matched with DSP_A Maxim's TDM_MODE0 is matched with DSP_B sound/soc/codecs/max98927.c | 35

RE: [PATCH 1/3] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-14 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Thursday, September 14, 2017 11:50 AM >To: Ryan Lee <ryans@maximintegrated.com> >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; >kuninori.morimoto...@renesas.com; alsa-de...@alsa-

RE: [PATCH 1/3] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-14 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Thursday, September 14, 2017 11:50 AM >To: Ryan Lee >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; >kuninori.morimoto...@renesas.com; alsa-de...@alsa-project.org; linux- >k

[PATCH 3/3] ASoC: max98927: Removed obsolete variables

2017-09-11 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Removed obsolete variables that have never been referred from driver before. sound/soc/codecs/max98927.h | 4 1 file changed, 4 deletions(-) diff --git a/sound/soc/codecs/max98927.h b/sound/soc/codecs/max98927.h

[PATCH 3/3] ASoC: max98927: Removed obsolete variables

2017-09-11 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Removed obsolete variables that have never been referred from driver before. sound/soc/codecs/max98927.h | 4 1 file changed, 4 deletions(-) diff --git a/sound/soc/codecs/max98927.h b/sound/soc/codecs/max98927.h index 98b5f17..d215f60 100644

[PATCH 1/3] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-11 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Added support for DSP_A and DSP_B format Added 'max98927_dai_tdm_slot' function to set proper slot configuration. Moved max98927->iface out of switch statement to avoid line duplication. Added variable 'tdm_mode' to a

[PATCH 1/3] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-11 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Added support for DSP_A and DSP_B format Added 'max98927_dai_tdm_slot' function to set proper slot configuration. Moved max98927->iface out of switch statement to avoid line duplication. Added variable 'tdm_mode' to avoid BCLK overwrite af

[PATCH 2/3] ASoC: max98927: Added controls for Envelope tracking

2017-09-11 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Added a control("EnvTrack Headroom") to set different headroom value for envelop tracking function. Added one more control for envelop tracking function enable/disable("EnvTrack Switch"). Removed w

[PATCH 2/3] ASoC: max98927: Added controls for Envelope tracking

2017-09-11 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Added a control("EnvTrack Headroom") to set different headroom value for envelop tracking function. Added one more control for envelop tracking function enable/disable("EnvTrack Switch"). Removed writing process to register 0x0087 bec

RE: [PATCH 2/9] ASoC: max98927: Added controls for Envelope tracking

2017-09-01 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Thursday, August 31, 2017 4:44 AM >To: Ryan Lee <ryans@maximintegrated.com> >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; >kuninori.morimoto...@renesas.com; alsa-de...@alsa-

RE: [PATCH 5/9] ASoC: max98927: Removed obsolete variables

2017-09-01 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Thursday, August 31, 2017 4:54 AM >To: Ryan Lee <ryans@maximintegrated.com> >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; >kuninori.morimoto...@renesas.com; alsa-de...@alsa-

RE: [PATCH 2/9] ASoC: max98927: Added controls for Envelope tracking

2017-09-01 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Thursday, August 31, 2017 4:44 AM >To: Ryan Lee >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; >kuninori.morimoto...@renesas.com; alsa-de...@alsa-project.org; linux- >ker...@vger.ke

RE: [PATCH 5/9] ASoC: max98927: Removed obsolete variables

2017-09-01 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Thursday, August 31, 2017 4:54 AM >To: Ryan Lee >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; >kuninori.morimoto...@renesas.com; alsa-de...@alsa-project.org; linux- >ker...@vger.ke

RE: [PATCH 1/9] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-01 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Tuesday, August 29, 2017 12:00 PM >To: Ryan Lee <ryans@maximintegrated.com> >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; >kuninori.morimoto...@renesas.com; alsa-de...@alsa-

RE: [PATCH 1/9] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-01 Thread Ryan Lee
>-Original Message- >From: Mark Brown [mailto:broo...@kernel.org] >Sent: Tuesday, August 29, 2017 12:00 PM >To: Ryan Lee >Cc: lgirdw...@gmail.com; pe...@perex.cz; ti...@suse.com; >kuninori.morimoto...@renesas.com; alsa-de...@alsa-project.org; linux- >ker...@vger.ke

[PATCH 1/3] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-01 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Added support for DSP_A and DSP_B format Added 'max98927_dai_tdm_slot' function to configure for proper slot configuration. Moved max98927->iface out of switch statement to avoid line du

[PATCH 1/3] ASoC: max98927: Added support for DSP_A and DSP_B format

2017-09-01 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Added support for DSP_A and DSP_B format Added 'max98927_dai_tdm_slot' function to configure for proper slot configuration. Moved max98927->iface out of switch statement to avoid line duplication. Added variable 'tdm_mode' to av

[PATCH 2/3] ASoC: max98927: Added controls for Envelope tracking

2017-09-01 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Added one control to set different headroom value for envelop tracking function. Added one more control to enable/disable envelop tracking function. Removed writing process to register 0x0087 because it i

[PATCH 3/3] ASoC: max98927: Removed obsolete variables

2017-09-01 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- Changelog: Removed obsolete variables that have never been referred from driver before. sound/soc/codecs/max98927.h | 4 1 file changed, 4 deletions(-) diff --git a/sound/soc/codecs/max98927.h b/sound/soc/codecs/ma

[PATCH 2/3] ASoC: max98927: Added controls for Envelope tracking

2017-09-01 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Added one control to set different headroom value for envelop tracking function. Added one more control to enable/disable envelop tracking function. Removed writing process to register 0x0087 because it is read only register. sound/soc

[PATCH 3/3] ASoC: max98927: Removed obsolete variables

2017-09-01 Thread Ryan Lee
Signed-off-by: Ryan Lee --- Changelog: Removed obsolete variables that have never been referred from driver before. sound/soc/codecs/max98927.h | 4 1 file changed, 4 deletions(-) diff --git a/sound/soc/codecs/max98927.h b/sound/soc/codecs/max98927.h index 98b5f17..d215f60 100644

RE: [PATCH 1/9] ASoC: max98927: Added TDM support

2017-08-28 Thread Ryan Lee
>Subject: Re: [PATCH 1/9] ASoC: max98927: Added TDM support > >On Fri, Aug 25, 2017 at 05:41:02PM -0700, Ryan Lee wrote: >> Signed-off-by: Ryan Lee <mailto:ryans@maximintegrated.com> > >This says it's adding support for TDM mode but... > >

RE: [PATCH 1/9] ASoC: max98927: Added TDM support

2017-08-28 Thread Ryan Lee
>Subject: Re: [PATCH 1/9] ASoC: max98927: Added TDM support > >On Fri, Aug 25, 2017 at 05:41:02PM -0700, Ryan Lee wrote: >> Signed-off-by: Ryan Lee <mailto:ryans@maximintegrated.com> > >This says it's adding support for TDM mode but... > >

[PATCH 4/9] ASoC: max98927: Added missing \n to end of dev_err messages

2017-08-28 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- sound/soc/codecs/max98927.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index c72a244..208d5ba 100644 --- a/sound/soc/codecs/max98927.c +++ b

[PATCH 2/9] ASoC: max98927: Added controls for Envelope tracking

2017-08-28 Thread Ryan Lee
Signed-off-by: Ryan Lee <ryans@maximintegrated.com> --- sound/soc/codecs/max98927.c | 20 sound/soc/codecs/max98927.h | 4 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index 9

[PATCH 4/9] ASoC: max98927: Added missing \n to end of dev_err messages

2017-08-28 Thread Ryan Lee
Signed-off-by: Ryan Lee --- sound/soc/codecs/max98927.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index c72a244..208d5ba 100644 --- a/sound/soc/codecs/max98927.c +++ b/sound/soc/codecs/max98927.c @@ -160,7

  1   2   3   >