[PATCH v3 4/4] ASoC: pcm512x: Add support for more data formats

2020-11-15 Thread Kirill Marinushkin
are configured for I2S * i don't see how existing off-tree sound cards with pcm512x codec could be configured differently - it would not work * tested explicitly, that there is no regression with Raspberry Pi + sound card `sound/soc/bcm/hifiberry_dacplus.c` Signed-off-by: Kirill Marinushkin Cc: Mark

[PATCH v3 0/4] ASoC: pcm512x: Patch series to set fmt from `set_fmt()`

2020-11-15 Thread Kirill Marinushkin
Set format from `set_fmt()` func instead of `hw_params()`, plus supportive commits Kirill Marinushkin (4): ASoC: pcm512x: Fix not setting word length if DAIFMT_CBS_CFS ASoC: pcm512x: Rearrange operations in `hw_params()` ASoC: pcm512x: Move format check into `set_fmt()` ASoC: pcm512x: Add

[PATCH v3 1/4] ASoC: pcm512x: Fix not setting word length if DAIFMT_CBS_CFS

2020-11-15 Thread Kirill Marinushkin
hecking `SND_SOC_DAIFMT_MASTER_MASK`. Tested with Raspberry Pi + sound card `hifiberry_dacplus` in CBS_CFS format Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc: Takashi Iwai Cc: Liam Girdwood Cc: Matthias Reichl Cc: Kuninori Morimoto Cc: Peter Ujfalusi Cc: alsa-de...@alsa-project

[PATCH v3 3/4] ASoC: pcm512x: Move format check into `set_fmt()`

2020-11-15 Thread Kirill Marinushkin
atch/ 20201109212133.25869-1-kmarinush...@birdec.com/ Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc: Takashi Iwai Cc: Liam Girdwood Cc: Matthias Reichl Cc: Kuninori Morimoto Cc: Peter Ujfalusi Cc: alsa-de...@alsa-project.org Cc: linux-kernel@vger.kerne

[PATCH v3 2/4] ASoC: pcm512x: Rearrange operations in `hw_params()`

2020-11-15 Thread Kirill Marinushkin
This commit is a preparation for the next patch in the series. It's goal is to make format check easy-to-move-out. Theoretically, more butifications are possile in `hw_params()` func, but my intention in this commit is to keep behaviour unchanged. Signed-off-by: Kirill Marinushkin Cc: Mark Brown

Re: [PATCH] ASoC: pcm512x: Add support for data formats RJ and LJ

2020-11-11 Thread Kirill Marinushkin
Hello Peter, On 11/12/2020 08:41 AM, Peter Ujfalusi wrote: > Hi Kirill, > > On 11/11/2020 9.54, Kirill Marinushkin wrote: >> Hello Peter, >> >> than you for your review! >> >>> The bus format and >>> >>>>switch

[PATCH v2] ASoC: pcm512x: Add support for more data formats

2020-11-11 Thread Kirill Marinushkin
are configured for I2S * i don't see how existing off-tree sound cards with pcm512x codec could be configured differently - it would not work * tested explicitly, that there is no regression with Raspberry Pi + sound card `sound/soc/bcm/hifiberry_dacplus.c` Signed-off-by: Kirill Marinushkin Cc: Mark

Re: [PATCH] ASoC: pcm512x: Add support for data formats RJ and LJ

2020-11-10 Thread Kirill Marinushkin
how to use DSP_A and DSP_B. I will add them, and submit as patch v2 Best regards, Kirill On 11/10/2020 07:59 AM, Peter Ujfalusi wrote: > > > On 09/11/2020 23.21, Kirill Marinushkin wrote: >> Currently, pcm512x driver supports only I2S data format. >> This commit adds RJ and L

[PATCH] ASoC: pcm512x: Add support for data formats RJ and LJ

2020-11-09 Thread Kirill Marinushkin
for I2S * i don't see how existing off-tree sound cards with pcm512x codec could be configured differently - it would not work * tested explicitly, that there is no regression with Raspberry Pi + sound card `sound/soc/bcm/hifiberry_dacplus.c` Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc

[PATCH] ASoC: Relocate my e-mail to .com domain zone

2019-07-10 Thread Kirill Marinushkin
Signed-off-by: Kirill Marinushkin --- MAINTAINERS| 2 +- sound/soc/codecs/pcm3060-i2c.c | 4 ++-- sound/soc/codecs/pcm3060-spi.c | 4 ++-- sound/soc/codecs/pcm3060.c | 4 ++-- sound/soc/codecs/pcm3060.h | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff

Re: [PATCH v1 2/4] ASoC: Add codec driver for ST TDA7802

2019-06-14 Thread Kirill Marinushkin
On 06/11/19 19:49, Thomas Preston wrote: > Add an I2C based codec driver for ST TDA7802 amplifier. By default, the > amplifier supports 4 audio channels but can support up to 16 with > multiple devices. Input is configurable for I2S or TDM. > > The unified device properties API is used to get

[PATCH 1/2] ASoC: pcm3060: Add soft reset on probe

2019-02-10 Thread Kirill Marinushkin
Softly reset registers values on module probe Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index 6714aa8d9026..543cb86fd764 100644 --- a/sound/soc/codecs

[PATCH 2/2] ASoC: pcm3060: Add clock select

2019-02-10 Thread Kirill Marinushkin
for both ADC and DAC. Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 27 +++ sound/soc/codecs/pcm3060.h | 5 + 2 files changed, 32 insertions(+) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index 543cb86fd764..32b26f1c2282

Re: [PATCH] x86/retpoline: Fix forcing me to update my compiler

2018-12-08 Thread Kirill Marinushkin
>> First problem: I cannot compile the kernel with my version of compiler >> Second problem: when I disable the feature - it cannot take effect, >> because the parse-time error happens before `syncconfig` On 12/08/18 13:42, Borislav Petkov wrote: > Does this help? > >

Re: [PATCH] x86/retpoline: Fix forcing me to update my compiler

2018-12-08 Thread Kirill Marinushkin
>> First problem: I cannot compile the kernel with my version of compiler >> Second problem: when I disable the feature - it cannot take effect, >> because the parse-time error happens before `syncconfig` On 12/08/18 13:42, Borislav Petkov wrote: > Does this help? > >

[PATCH] x86/retpoline: Fix forcing me to update my compiler

2018-12-08 Thread Kirill Marinushkin
$ make arch/x86/Makefile:224: *** You are building kernel with non-retpoline compiler, please update your compiler.. Stop. Fixes: 4cd24de3a098 ("x86/retpoline: Make CONFIG_RETPOLINE depend on compiler support") Signed-off-by: Kirill Marinushkin Cc: Thomas Gleixner Cc: Ingo

[PATCH] x86/retpoline: Fix forcing me to update my compiler

2018-12-08 Thread Kirill Marinushkin
$ make arch/x86/Makefile:224: *** You are building kernel with non-retpoline compiler, please update your compiler.. Stop. Fixes: 4cd24de3a098 ("x86/retpoline: Make CONFIG_RETPOLINE depend on compiler support") Signed-off-by: Kirill Marinushkin Cc: Thomas Gleixner Cc: Ingo

[PATCH] ASoC: pcm3060: Add powersaving widgets for DAC and ADC

2018-12-07 Thread Kirill Marinushkin
Enable DAC/ADC only when playing/capturing Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 14 ++ sound/soc/codecs/pcm3060.h | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index

[PATCH] ASoC: pcm3060: Add powersaving widgets for DAC and ADC

2018-12-07 Thread Kirill Marinushkin
Enable DAC/ADC only when playing/capturing Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 14 ++ sound/soc/codecs/pcm3060.h | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index

Re: [resend PATCH] dt-bindings: sound: Add documentation for pcm3060 property out-single-ended

2018-12-04 Thread Kirill Marinushkin
:12:53 +0100, Kirill Marinushkin wrote: >> Output of pcm3060 codec may be configured as single-ended or differential >> >> Signed-off-by: Kirill Marinushkin >> Cc: devicet...@vger.kernel.org >> --- >> Hello Mark, >> >> yesterday there was a misunders

Re: [resend PATCH] dt-bindings: sound: Add documentation for pcm3060 property out-single-ended

2018-12-04 Thread Kirill Marinushkin
:12:53 +0100, Kirill Marinushkin wrote: >> Output of pcm3060 codec may be configured as single-ended or differential >> >> Signed-off-by: Kirill Marinushkin >> Cc: devicet...@vger.kernel.org >> --- >> Hello Mark, >> >> yesterday there was a misunders

[resend PATCH] dt-bindings: sound: Add documentation for pcm3060 property out-single-ended

2018-11-14 Thread Kirill Marinushkin
Output of pcm3060 codec may be configured as single-ended or differential Signed-off-by: Kirill Marinushkin Cc: devicet...@vger.kernel.org --- Hello Mark, yesterday there was a misunderstanding: when I wrote you > I think you forgot one patch in the series you accidently applied the alre

[resend PATCH] dt-bindings: sound: Add documentation for pcm3060 property out-single-ended

2018-11-14 Thread Kirill Marinushkin
Output of pcm3060 codec may be configured as single-ended or differential Signed-off-by: Kirill Marinushkin Cc: devicet...@vger.kernel.org --- Hello Mark, yesterday there was a misunderstanding: when I wrote you > I think you forgot one patch in the series you accidently applied the alre

Re: Applied "ASoC: pcm3060: Add DT property for single-ended output" to the asoc tree

2018-11-13 Thread Kirill Marinushkin
s to the CCs when replying > to this mail. > > Thanks, > Mark > > From b1cbde8fb287f4fd3493ca4167efee344c3e Mon Sep 17 00:00:00 2001 > From: Kirill Marinushkin > Date: Mon, 12 Nov 2018 08:08:33 +0100 > Subject: [PATCH] ASoC: pcm3060: Add DT property for single-end

Re: Applied "ASoC: pcm3060: Add DT property for single-ended output" to the asoc tree

2018-11-13 Thread Kirill Marinushkin
s to the CCs when replying > to this mail. > > Thanks, > Mark > > From b1cbde8fb287f4fd3493ca4167efee344c3e Mon Sep 17 00:00:00 2001 > From: Kirill Marinushkin > Date: Mon, 12 Nov 2018 08:08:33 +0100 > Subject: [PATCH] ASoC: pcm3060: Add DT property for single-end

[PATCH v2 3/3] ASoC: pcm3060: Rename output widgets

2018-11-11 Thread Kirill Marinushkin
nded output") Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index 5f479aa61097..1dd851a7b43b 100644 --- a/sound/soc/codecs/pcm3060.c ++

[PATCH v2 3/3] ASoC: pcm3060: Rename output widgets

2018-11-11 Thread Kirill Marinushkin
nded output") Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index 5f479aa61097..1dd851a7b43b 100644 --- a/sound/soc/codecs/pcm3060.c ++

[PATCH v2 1/3] dt-bindings: sound: Add documentation for pcm3060 property out-single-ended

2018-11-11 Thread Kirill Marinushkin
Output of pcm3060 codec may be configured as single-ended or differential Signed-off-by: Kirill Marinushkin Cc: devicet...@vger.kernel.org --- Documentation/devicetree/bindings/sound/pcm3060.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound

[PATCH v2 2/3] ASoC: pcm3060: Add DT property for single-ended output

2018-11-11 Thread Kirill Marinushkin
DAC output may be differential (default) or single-ended. Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 14 ++ sound/soc/codecs/pcm3060.h | 1 + 2 files changed, 15 insertions(+) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index

[PATCH v2 1/3] dt-bindings: sound: Add documentation for pcm3060 property out-single-ended

2018-11-11 Thread Kirill Marinushkin
Output of pcm3060 codec may be configured as single-ended or differential Signed-off-by: Kirill Marinushkin Cc: devicet...@vger.kernel.org --- Documentation/devicetree/bindings/sound/pcm3060.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound

[PATCH v2 2/3] ASoC: pcm3060: Add DT property for single-ended output

2018-11-11 Thread Kirill Marinushkin
DAC output may be differential (default) or single-ended. Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 14 ++ sound/soc/codecs/pcm3060.h | 1 + 2 files changed, 15 insertions(+) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index

Re: [PATCH 1/2] ASoC: pcm3060: Add control for differential output

2018-11-09 Thread Kirill Marinushkin
Hello Mark, On 11/05/18 12:20, Mark Brown wrote: > On Mon, Oct 29, 2018 at 09:59:12AM +0100, Kirill Marinushkin wrote: >> DAC may be switched between differential and single-ended output. > > Isn't this something that'd be better controlled by DT - it's usually > going to be

Re: [PATCH 1/2] ASoC: pcm3060: Add control for differential output

2018-11-09 Thread Kirill Marinushkin
Hello Mark, On 11/05/18 12:20, Mark Brown wrote: > On Mon, Oct 29, 2018 at 09:59:12AM +0100, Kirill Marinushkin wrote: >> DAC may be switched between differential and single-ended output. > > Isn't this something that'd be better controlled by DT - it's usually > going to be

[PATCH 2/2] ASoC: pcm3060: Rename output widgets

2018-10-29 Thread Kirill Marinushkin
t") Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index f792ad637ae4..078a3b1fc064 100644 --- a/sound/soc/codecs/pcm3060.c +++ b/sound/

[PATCH 2/2] ASoC: pcm3060: Rename output widgets

2018-10-29 Thread Kirill Marinushkin
t") Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index f792ad637ae4..078a3b1fc064 100644 --- a/sound/soc/codecs/pcm3060.c +++ b/sound/

[PATCH 1/2] ASoC: pcm3060: Add control for differential output

2018-10-29 Thread Kirill Marinushkin
DAC may be switched between differential and single-ended output. Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 9 + sound/soc/codecs/pcm3060.h | 1 + 2 files changed, 10 insertions(+) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index

[PATCH 1/2] ASoC: pcm3060: Add control for differential output

2018-10-29 Thread Kirill Marinushkin
DAC may be switched between differential and single-ended output. Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 9 + sound/soc/codecs/pcm3060.h | 1 + 2 files changed, 10 insertions(+) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index

Re: [alsa-devel] [PATCH v2] staging: bcm2835-audio: interpolate audio delay

2018-10-25 Thread Kirill Marinushkin
Hello Takashi, Mike, @Takashi On 10/25/18 09:37, Takashi Iwai wrote: > Well, in the API POV, it's nothing wrong to keep hwptr sticking while > updating only delay value. It implies that the hardware chip doesn't > provide the hwptr update. Thank you for the clarification. Modifying

Re: [alsa-devel] [PATCH v2] staging: bcm2835-audio: interpolate audio delay

2018-10-25 Thread Kirill Marinushkin
Hello Takashi, Mike, @Takashi On 10/25/18 09:37, Takashi Iwai wrote: > Well, in the API POV, it's nothing wrong to keep hwptr sticking while > updating only delay value. It implies that the hardware chip doesn't > provide the hwptr update. Thank you for the clarification. Modifying

Re: [alsa-devel] [PATCH v2] staging: bcm2835-audio: interpolate audio delay

2018-10-24 Thread Kirill Marinushkin
Hello Mike, We are not on the same page. What you hear is not what I tell you. Either you don't understand what happens in your commit, or I don't understand what happens in the driver. Hopefully somebody in the community can comment here. On 10/24/18 21:54, Mike Brady wrote: You modify

Re: [alsa-devel] [PATCH v2] staging: bcm2835-audio: interpolate audio delay

2018-10-24 Thread Kirill Marinushkin
Hello Mike, We are not on the same page. What you hear is not what I tell you. Either you don't understand what happens in your commit, or I don't understand what happens in the driver. Hopefully somebody in the community can comment here. On 10/24/18 21:54, Mike Brady wrote: You modify

Re: [alsa-devel] [PATCH v2] staging: bcm2835-audio: interpolate audio delay

2018-10-24 Thread Kirill Marinushkin
Hello Mike, On 10/24/18 10:20, Mike Brady wrote: > Hi Kirill. Thanks for your comments. > >> On 22 Oct 2018, at 23:25, Kirill Marinushkin wrote: >> >> AFAIU, this patch is wrong. Please correct me, maybe I misunderstand >> something. >> >>>

Re: [alsa-devel] [PATCH v2] staging: bcm2835-audio: interpolate audio delay

2018-10-24 Thread Kirill Marinushkin
Hello Mike, On 10/24/18 10:20, Mike Brady wrote: > Hi Kirill. Thanks for your comments. > >> On 22 Oct 2018, at 23:25, Kirill Marinushkin wrote: >> >> AFAIU, this patch is wrong. Please correct me, maybe I misunderstand >> something. >> >>>

Re: [PATCH v2] staging: bcm2835-audio: interpolate audio delay

2018-10-22 Thread Kirill Marinushkin
Hello Mike, AFAIU, this patch is wrong. Please correct me, maybe I misunderstand something. > The problem that this patch seeks to resolve is that when userland asks for > the delay The userspace asks not for delay, but for the pointer. You modify the function, which is called

Re: [PATCH v2] staging: bcm2835-audio: interpolate audio delay

2018-10-22 Thread Kirill Marinushkin
Hello Mike, AFAIU, this patch is wrong. Please correct me, maybe I misunderstand something. > The problem that this patch seeks to resolve is that when userland asks for > the delay The userspace asks not for delay, but for the pointer. You modify the function, which is called

Re: [PATCH] staging: bcm2835-audio: interpolate audio delay

2018-10-18 Thread Kirill Marinushkin
Hello Mike, On 10/18/18 12:57, Mike Brady wrote: > + ktime_t now = ktime_get(); > + > + /* Give userspace better delay reporting by interpolating between GPU > + * notifications, assuming audio speed is close enough to the clock > + * used for ktime > + */ > + > + if

Re: [PATCH] staging: bcm2835-audio: interpolate audio delay

2018-10-18 Thread Kirill Marinushkin
Hello Mike, On 10/18/18 12:57, Mike Brady wrote: > + ktime_t now = ktime_get(); > + > + /* Give userspace better delay reporting by interpolating between GPU > + * notifications, assuming audio speed is close enough to the clock > + * used for ktime > + */ > + > + if

[PATCH 2/2] ASoC: pcm3060: Improve legibility of if-statements

2018-08-28 Thread Kirill Marinushkin
Modified some if-statements to make them more clear Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc: alsa-de...@alsa-project.org Cc: linux-kernel@vger.kernel.org --- sound/soc/codecs/pcm3060.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs

[PATCH 2/2] ASoC: pcm3060: Improve legibility of if-statements

2018-08-28 Thread Kirill Marinushkin
Modified some if-statements to make them more clear Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc: alsa-de...@alsa-project.org Cc: linux-kernel@vger.kernel.org --- sound/soc/codecs/pcm3060.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs

[PATCH 1/2] ASoC: pcm3060: Improve stylistics of file comments

2018-08-28 Thread Kirill Marinushkin
Modified the complete file comments in C++ style, to make them look more intentional Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc: alsa-de...@alsa-project.org Cc: linux-kernel@vger.kernel.org --- sound/soc/codecs/pcm3060-i2c.c | 9 - sound/soc/codecs/pcm3060-spi.c | 9

[PATCH 1/2] ASoC: pcm3060: Improve stylistics of file comments

2018-08-28 Thread Kirill Marinushkin
Modified the complete file comments in C++ style, to make them look more intentional Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc: alsa-de...@alsa-project.org Cc: linux-kernel@vger.kernel.org --- sound/soc/codecs/pcm3060-i2c.c | 9 - sound/soc/codecs/pcm3060-spi.c | 9

[PATCH 1/1] ASoC: pcm3060: Add codec driver

2018-08-21 Thread Kirill Marinushkin
This commit adds support for TI PCM3060 CODEC. The technical documentation is available at [1]. [1] http://ti.com/product/pcm3060 Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc: Liam Girdwood Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: M R Swami Reddy Cc: Vishwas A Deshpande Cc: Kevin

[PATCH 1/1] ASoC: pcm3060: Add codec driver

2018-08-21 Thread Kirill Marinushkin
This commit adds support for TI PCM3060 CODEC. The technical documentation is available at [1]. [1] http://ti.com/product/pcm3060 Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc: Liam Girdwood Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: M R Swami Reddy Cc: Vishwas A Deshpande Cc: Kevin

[PATCH 0/1] ASoC: pcm3060: Add codec driver

2018-08-21 Thread Kirill Marinushkin
Hello Mark, I am developing sound support for a Linux-based device, with playback and capture through the TI PCM3060 codec. With the following patch, I propose to add the PCM3060 codec driver into the kernel. Best Regards, Kirill Kirill Marinushkin (1): ASoC: pcm3060: Add codec driver

[PATCH 0/1] ASoC: pcm3060: Add codec driver

2018-08-21 Thread Kirill Marinushkin
Hello Mark, I am developing sound support for a Linux-based device, with playback and capture through the TI PCM3060 codec. With the following patch, I propose to add the PCM3060 codec driver into the kernel. Best Regards, Kirill Kirill Marinushkin (1): ASoC: pcm3060: Add codec driver

[PATCH v3] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-26 Thread Kirill Marinushkin
0c>] snd_open+0xa8/0x14c [snd] [<802ce590>] chrdev_open+0xac/0x188 [<802c57b4>] do_dentry_open+0x10c/0x314 [<802c6ba8>] vfs_open+0x5c/0x88 [<802d9a68>] path_openat+0x368/0x944 [<802dacd4>] do_filp_open+0x70/0xc4 [<802c6f70>] do_sys_open+0

[PATCH v3] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-26 Thread Kirill Marinushkin
0c>] snd_open+0xa8/0x14c [snd] [<802ce590>] chrdev_open+0xac/0x188 [<802c57b4>] do_dentry_open+0x10c/0x314 [<802c6ba8>] vfs_open+0x5c/0x88 [<802d9a68>] path_openat+0x368/0x944 [<802dacd4>] do_filp_open+0x70/0xc4 [<802c6f70>] do_sys_open+0x

Re: [PATCH v2] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-25 Thread Kirill Marinushkin
On 04/25/18 08:16, Greg Kroah-Hartman wrote: > On Tue, Apr 24, 2018 at 09:57:29PM +0200, Kirill Marinushkin wrote: >> In the current implementation, vchi_instance is inited during the first >> call of bcm2835_audio_open_connection(), and is never freed. It causes a >> memory

Re: [PATCH v2] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-25 Thread Kirill Marinushkin
On 04/25/18 08:16, Greg Kroah-Hartman wrote: > On Tue, Apr 24, 2018 at 09:57:29PM +0200, Kirill Marinushkin wrote: >> In the current implementation, vchi_instance is inited during the first >> call of bcm2835_audio_open_connection(), and is never freed. It causes a >> memory

[PATCH v2] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-24 Thread Kirill Marinushkin
0c>] snd_open+0xa8/0x14c [snd] [<802ce590>] chrdev_open+0xac/0x188 [<802c57b4>] do_dentry_open+0x10c/0x314 [<802c6ba8>] vfs_open+0x5c/0x88 [<802d9a68>] path_openat+0x368/0x944 [<802dacd4>] do_filp_open+0x70/0xc4 [<802c6f70>] do_sys_open+0

[PATCH v2] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-24 Thread Kirill Marinushkin
0c>] snd_open+0xa8/0x14c [snd] [<802ce590>] chrdev_open+0xac/0x188 [<802c57b4>] do_dentry_open+0x10c/0x314 [<802c6ba8>] vfs_open+0x5c/0x88 [<802d9a68>] path_openat+0x368/0x944 [<802dacd4>] do_filp_open+0x70/0xc4 [<802c6f70>] do_sys_open+0x

Re: [RESEND PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-24 Thread Kirill Marinushkin
On 04/24/18 20:35, Andy Shevchenko wrote: > On Tue, Apr 24, 2018 at 9:27 PM, Kirill Marinushkin > <k.marinush...@gmail.com> wrote: > >> @Andy >> >>> AFAIR I gave you a tag and you again missed it. >>> Before sending anything just check twice if all pr

Re: [RESEND PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-24 Thread Kirill Marinushkin
On 04/24/18 20:35, Andy Shevchenko wrote: > On Tue, Apr 24, 2018 at 9:27 PM, Kirill Marinushkin > wrote: > >> @Andy >> >>> AFAIR I gave you a tag and you again missed it. >>> Before sending anything just check twice if all prerequisites are fulfilled. >&g

Re: [RESEND PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-24 Thread Kirill Marinushkin
again missed it. > Before sending anything just check twice if all prerequisites are fulfilled. I think you mix it up. This is a new patch, you didn't review it before. > And yes, kbuild bot is right. You need to return known value. Yes, that's right. I will fix it. Best Regards, Kirill

Re: [RESEND PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-24 Thread Kirill Marinushkin
again missed it. > Before sending anything just check twice if all prerequisites are fulfilled. I think you mix it up. This is a new patch, you didn't review it before. > And yes, kbuild bot is right. You need to return known value. Yes, that's right. I will fix it. Best Regards, Kirill

[RESEND PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-24 Thread Kirill Marinushkin
0c>] snd_open+0xa8/0x14c [snd] [<802ce590>] chrdev_open+0xac/0x188 [<802c57b4>] do_dentry_open+0x10c/0x314 [<802c6ba8>] vfs_open+0x5c/0x88 [<802d9a68>] path_openat+0x368/0x944 [<802dacd4>] do_filp_open+0x70/0xc4 [<802c6f70>] do_sys_open+0

[RESEND PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-24 Thread Kirill Marinushkin
0c>] snd_open+0xa8/0x14c [snd] [<802ce590>] chrdev_open+0xac/0x188 [<802c57b4>] do_dentry_open+0x10c/0x314 [<802c6ba8>] vfs_open+0x5c/0x88 [<802d9a68>] path_openat+0x368/0x944 [<802dacd4>] do_filp_open+0x70/0xc4 [<802c6f70>] do_sys_open+0x

Re: [PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-23 Thread Kirill Marinushkin
On 04/23/18 15:50, Greg Kroah-Hartman wrote: > On Tue, Apr 17, 2018 at 07:00:28AM +0200, Kirill Marinushkin wrote: >> In the current implementation, vchi_instance is inited during the first >> call of bcm2835_audio_open_connection(), and is never freed. It causes a >> memory

Re: [PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-23 Thread Kirill Marinushkin
On 04/23/18 15:50, Greg Kroah-Hartman wrote: > On Tue, Apr 17, 2018 at 07:00:28AM +0200, Kirill Marinushkin wrote: >> In the current implementation, vchi_instance is inited during the first >> call of bcm2835_audio_open_connection(), and is never freed. It causes a >> memory

[PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-16 Thread Kirill Marinushkin
0c>] snd_open+0xa8/0x14c [snd] [<802ce590>] chrdev_open+0xac/0x188 [<802c57b4>] do_dentry_open+0x10c/0x314 [<802c6ba8>] vfs_open+0x5c/0x88 [<802d9a68>] path_openat+0x368/0x944 [<802dacd4>] do_filp_open+0x70/0xc4 [<802c6f70>] do_sys_open+0

[PATCH] staging: bcm2835-audio: Disconnect and free vchi_instance on module_exit()

2018-04-16 Thread Kirill Marinushkin
0c>] snd_open+0xa8/0x14c [snd] [<802ce590>] chrdev_open+0xac/0x188 [<802c57b4>] do_dentry_open+0x10c/0x314 [<802c6ba8>] vfs_open+0x5c/0x88 [<802d9a68>] path_openat+0x368/0x944 [<802dacd4>] do_filp_open+0x70/0xc4 [<802c6f70>] do_sys_open+0x

[PATCH alsa-lib v4 1/4] ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()

2018-04-16 Thread Kirill Marinushkin
with the corresponding patch for linux. Signed-off-by: Kirill Marinushkin <k.marinush...@gmail.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.boss...@linux.intel.com> Tested-by: Pan Xiuli <xiuli@linux.intel.com> Tested-by: Pierre-Louis Bossart <pierre-louis.boss..

[PATCH alsa-lib v4 1/4] ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()

2018-04-16 Thread Kirill Marinushkin
with the corresponding patch for linux. Signed-off-by: Kirill Marinushkin Reviewed-by: Pierre-Louis Bossart Tested-by: Pan Xiuli Tested-by: Pierre-Louis Bossart Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Mark Brown Cc: Liam Girdwood Cc: linux-kernel@vger.kernel.org Cc: alsa-de...@alsa-project.org

[PATCH alsa-lib v4 2/4] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-04-16 Thread Kirill Marinushkin
be gated } SectionLink."Codec" { # used for binding to the physical link id "0" hw_configs [ "CodecHWConfig" ] default_hw_conf_id "1" } Signed-off-by: Kirill Marinushkin <k.marinush...@gmail.com> R

[PATCH alsa-lib v4 2/4] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-04-16 Thread Kirill Marinushkin
be gated } SectionLink."Codec" { # used for binding to the physical link id "0" hw_configs [ "CodecHWConfig" ] default_hw_conf_id "1" } Signed-off-by: Kirill Marinushkin Reviewed-by: Pierre-Louis Bossart

[PATCH] ASoC: topology: Modify clock gating parameter parsing to switch

2018-04-16 Thread Kirill Marinushkin
This improves the coding style of this piece of code. Signed-off-by: Kirill Marinushkin <k.marinush...@gmail.com> Cc: Mark Brown <broo...@kernel.org> Cc: Pierre-Louis Bossart <pierre-louis.boss...@linux.intel.com> Cc: Jaroslav Kysela <pe...@perex.cz> Cc: Takashi Iwai <t

[PATCH] ASoC: topology: Modify clock gating parameter parsing to switch

2018-04-16 Thread Kirill Marinushkin
This improves the coding style of this piece of code. Signed-off-by: Kirill Marinushkin Cc: Mark Brown Cc: Pierre-Louis Bossart Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Pan Xiuli Cc: Liam Girdwood Cc: linux-kernel@vger.kernel.org Cc: alsa-de...@alsa-project.org --- sound/soc/soc

[PATCH v4 0/3] ASoC: topology: Improve hw_configs

2018-04-03 Thread Kirill Marinushkin
series, please apply it to Linux. Best Regards, Kirill Kirill Marinushkin (3): ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format() ASoC: topology: Add missing clock gating parameter when parsing hw_configs ASoC: topology: Add definitions for mclk_direction

[PATCH v4 2/3] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-04-03 Thread Kirill Marinushkin
be gated } SectionLink."Codec" { # used for binding to the physical link id "0" hw_configs [ "CodecHWConfig" ] default_hw_conf_id "1" } Signed-off-by: Kirill Marinushkin <k.marinush...@gmail.com> R

[PATCH v4 1/3] ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()

2018-04-03 Thread Kirill Marinushkin
The values of bclk and fsync are inverted WRT the codec. But the existing solution already works for Broadwell, see the alsa-lib config: `alsa-lib/src/conf/topology/broadwell/broadwell.conf` This commit provides the backwards-compatible solution to fix this misuse. Signed-off-by: Kirill

[PATCH v4 0/3] ASoC: topology: Improve hw_configs

2018-04-03 Thread Kirill Marinushkin
series, please apply it to Linux. Best Regards, Kirill Kirill Marinushkin (3): ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format() ASoC: topology: Add missing clock gating parameter when parsing hw_configs ASoC: topology: Add definitions for mclk_direction

[PATCH v4 2/3] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-04-03 Thread Kirill Marinushkin
be gated } SectionLink."Codec" { # used for binding to the physical link id "0" hw_configs [ "CodecHWConfig" ] default_hw_conf_id "1" } Signed-off-by: Kirill Marinushkin Reviewed-by: Pierre-Louis Bossart

[PATCH v4 1/3] ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()

2018-04-03 Thread Kirill Marinushkin
The values of bclk and fsync are inverted WRT the codec. But the existing solution already works for Broadwell, see the alsa-lib config: `alsa-lib/src/conf/topology/broadwell/broadwell.conf` This commit provides the backwards-compatible solution to fix this misuse. Signed-off-by: Kirill

[PATCH v4 3/3] ASoC: topology: Add definitions for mclk_direction values

2018-04-03 Thread Kirill Marinushkin
Current comment makes not clear the direction of mclk. Previously, similar description caused a misunderstanding for bclk_master and fsync_master. This commit solves the potential confusion the same way it is solved for bclk_master and fsync_master. Signed-off-by: Kirill Marinushkin <k.marin

[PATCH v4 3/3] ASoC: topology: Add definitions for mclk_direction values

2018-04-03 Thread Kirill Marinushkin
Current comment makes not clear the direction of mclk. Previously, similar description caused a misunderstanding for bclk_master and fsync_master. This commit solves the potential confusion the same way it is solved for bclk_master and fsync_master. Signed-off-by: Kirill Marinushkin Acked

Re: [alsa-devel] [PATCH v3 0/2] ASoC: topology: Improve parsing hw_configs

2018-04-03 Thread Kirill Marinushkin
On 04/03/18 19:21, Pierre-Louis Bossart wrote: > > > On 04/03/2018 12:15 AM, Kirill Marinushkin wrote: >> On 04/03/18 02:57, Pierre-Louis Bossart wrote: >>> >>> On 04/02/2018 04:17 PM, Kirill Marinushkin wrote: >>>> Hello Pierre-Louis, >>&

Re: [alsa-devel] [PATCH v3 0/2] ASoC: topology: Improve parsing hw_configs

2018-04-03 Thread Kirill Marinushkin
On 04/03/18 19:21, Pierre-Louis Bossart wrote: > > > On 04/03/2018 12:15 AM, Kirill Marinushkin wrote: >> On 04/03/18 02:57, Pierre-Louis Bossart wrote: >>> >>> On 04/02/2018 04:17 PM, Kirill Marinushkin wrote: >>>> Hello Pierre-Louis, >>&

Re: [PATCH v3 0/2] ASoC: topology: Improve parsing hw_configs

2018-04-02 Thread Kirill Marinushkin
On 04/03/18 02:57, Pierre-Louis Bossart wrote: > > > On 04/02/2018 04:17 PM, Kirill Marinushkin wrote: >> Hello Pierre-Louis, >> >> I explicitly clarified with Takashi: to have this patch series merged, we >> need a >> tag "Reviewed-by" from you.

Re: [PATCH v3 0/2] ASoC: topology: Improve parsing hw_configs

2018-04-02 Thread Kirill Marinushkin
On 04/03/18 02:57, Pierre-Louis Bossart wrote: > > > On 04/02/2018 04:17 PM, Kirill Marinushkin wrote: >> Hello Pierre-Louis, >> >> I explicitly clarified with Takashi: to have this patch series merged, we >> need a >> tag "Reviewed-by" from you.

Re: [PATCH v3 0/2] ASoC: topology: Improve parsing hw_configs

2018-04-02 Thread Kirill Marinushkin
sa-lib, v3 2/2] ASoC: topology: Add missing clock gating parameter when parsing hw_configs On 03/27/18 22:56, Kirill Marinushkin wrote: > Hello Jaroslav, Takashi, Mark, > > This patch series is a resend of [1] and [2], rebased on top of the latest > head. It was logical to resend them tog

Re: [PATCH v3 0/2] ASoC: topology: Improve parsing hw_configs

2018-04-02 Thread Kirill Marinushkin
sa-lib, v3 2/2] ASoC: topology: Add missing clock gating parameter when parsing hw_configs On 03/27/18 22:56, Kirill Marinushkin wrote: > Hello Jaroslav, Takashi, Mark, > > This patch series is a resend of [1] and [2], rebased on top of the latest > head. It was logical to resend them tog

[PATCH, alsa-lib, v3 1/2] ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()

2018-03-27 Thread Kirill Marinushkin
with the corresponding patch for linux. Signed-off-by: Kirill Marinushkin <k.marinush...@gmail.com> Tested-by: Pan Xiuli <xiuli@linux.intel.com> Tested-by: Pierre-Louis Bossart <pierre-louis.boss...@linux.intel.com> Cc: Jaroslav Kysela <pe...@perex.cz> Cc: Takashi Iwai <ti

[PATCH, alsa-lib, v3 1/2] ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()

2018-03-27 Thread Kirill Marinushkin
with the corresponding patch for linux. Signed-off-by: Kirill Marinushkin Tested-by: Pan Xiuli Tested-by: Pierre-Louis Bossart Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Mark Brown Cc: Liam Girdwood Cc: linux-kernel@vger.kernel.org Cc: alsa-de...@alsa-project.org --- include/sound/asoc.h

[PATCH, alsa-lib, v3 2/2] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-03-27 Thread Kirill Marinushkin
be gated } SectionLink."Codec" { # used for binding to the physical link id "0" hw_configs [ "CodecHWConfig" ] default_hw_conf_id "1" } Signed-off-by: Kirill Marinushkin <k.marinush...@gmail.com

[PATCH, alsa-lib, v3 2/2] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-03-27 Thread Kirill Marinushkin
be gated } SectionLink."Codec" { # used for binding to the physical link id "0" hw_configs [ "CodecHWConfig" ] default_hw_conf_id "1" } Signed-off-by: Kirill Marinushkin Cc: Jaroslav Kysela Cc: Tak

[PATCH, alsa-lib, v3 0/2] alsa-lib: ASoC: topology: Improve parsing hw_configs

2018-03-27 Thread Kirill Marinushkin
Below is the alsa-lib part of the patch-series "ASoC: topology: Improve parsing hw_configs" Kirill Marinushkin (2): ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format() ASoC: topology: Add missing clock gating parameter when parsing hw_configs include/so

[PATCH, alsa-lib, v3 0/2] alsa-lib: ASoC: topology: Improve parsing hw_configs

2018-03-27 Thread Kirill Marinushkin
Below is the alsa-lib part of the patch-series "ASoC: topology: Improve parsing hw_configs" Kirill Marinushkin (2): ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format() ASoC: topology: Add missing clock gating parameter when parsing hw_configs include/so

[PATCH v3 2/2] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-03-27 Thread Kirill Marinushkin
be gated } SectionLink."Codec" { # used for binding to the physical link id "0" hw_configs [ "CodecHWConfig" ] default_hw_conf_id "1" } Signed-off-by: Kirill Marinushkin <k.marinush...@gmail.com

[PATCH v3 2/2] ASoC: topology: Add missing clock gating parameter when parsing hw_configs

2018-03-27 Thread Kirill Marinushkin
be gated } SectionLink."Codec" { # used for binding to the physical link id "0" hw_configs [ "CodecHWConfig" ] default_hw_conf_id "1" } Signed-off-by: Kirill Marinushkin Cc: Jaroslav Kysela Cc: Tak

[PATCH v3 1/2] ASoC: topology: Fix bclk and fsync inversion in set_link_hw_format()

2018-03-27 Thread Kirill Marinushkin
The values of bclk and fsync are inverted WRT the codec. But the existing solution already works for Broadwell, see the alsa-lib config: `alsa-lib/src/conf/topology/broadwell/broadwell.conf` This commit provides the backwards-compatible solution to fix this misuse. Signed-off-by: Kirill

  1   2   3   >