[PATCH] ASoC: tas2552: Fix fraction overflow in PLL calculation

2017-08-25 Thread Oskar Schirmer
_clkin / 1 and pll_clkin / 1 + 1, and doing all rounding to the lower result. As a side effect to the bug fix, the approximation to the desired frequency is much better, for the above mentioned example we get 11.9993, while the true ratio is 11.9993623. Signed-off-by: Oskar Schirm

Re: [PATCHv2] ASoC: fsl: imx-ssi: omit ssi counter to avoid harm in unbalanced situation

2013-11-29 Thread Oskar Schirmer
Someone around who would like to add his acked-by? thanks, Oskar On Sat, Nov 16, 2013 at 07:52:25 +, Oskar Schirmer wrote: > Unbalanced calls to imx_ssi_trigger() may result in endless > SSI activity and thus provoke eternal sound. While on the first glance, > the switch statem

[PATCHv2] ASoC: fsl: imx-ssi: omit ssi counter to avoid harm in unbalanced situation

2013-11-15 Thread Oskar Schirmer
ion on alsa level to cut sound or the like. It just makes sure we have a chance to synchronise again later on. Signed-off-by: Oskar Schirmer --- v2: drop all software flag handling in favour of hardware registers sound/soc/fsl/imx-ssi.c |5 ++--- sound/soc/fsl/imx-ssi.h |1 - 2 files chan

[PATCH] ASoC: fsl: imx-ssi: omit ssi counter to avoid harm in unbalanced situation

2013-11-15 Thread Oskar Schirmer
s wont prevent state machine distortion on alsa level to cut sound or the like. It just makes sure we have a chance to synchronise again later on. Signed-off-by: Oskar Schirmer --- sound/soc/fsl/imx-ssi.c | 19 --- sound/soc/fsl/imx-ssi.h |3 ++- 2 files changed, 14 insertions

[PATCH] ALSA: pcm: retrieve true appl_ptr where stream was unlocked

2013-11-12 Thread Oskar Schirmer
original appl_ptr value to work on. Two occurences. Signed-off-by: Oskar Schirmer --- sound/core/pcm_lib.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c index 6e03b46..47e836a 100644 --- a/sound/core/pcm_lib.c +++ b/sound/core/pcm_lib.c @@ -2051,6

[PATCH] ASoC: fsl: imx-pcm-fiq: omit fiq counter to avoid harm in unbalanced situations

2013-11-12 Thread Oskar Schirmer
: Oskar Schirmer --- sound/soc/fsl/imx-pcm-fiq.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c index 10e3305..f00b512 100644 --- a/sound/soc/fsl/imx-pcm-fiq.c +++ b/sound/soc/fsl/imx

[PATCH] ASoC: fsl: imx-pcm-fiq: remove bogus period delta calculation

2013-11-05 Thread Oskar Schirmer
wasted by superfluous calls to snd_pcm_period_elapsed(), as the timer frequency closely matches the period size anyway. Signed-off-by: Oskar Schirmer --- sound/soc/fsl/imx-pcm-fiq.c | 21 ++--- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/sound/soc/fsl/imx-pcm-

Re: [PATCHv2 6/8] ASoC: fsl: add SGTL5000 based audio machine driver.

2013-11-01 Thread Oskar Schirmer
Not that it would improve functionality, but: On Fri, Nov 01, 2013 at 15:04:53 +0800, Xiubo Li wrote: [...] > diff --git a/sound/soc/fsl/fsl-sgtl5000-vf610.c > b/sound/soc/fsl/fsl-sgtl5000-vf610.c > new file mode 100644 > index 000..f535b42 > --- /dev/null > +++ b/sound/soc/fsl/fsl-sgtl5000-v

[PATCH] sound/sgtl5000: fix codec clock source transition to avoid clockless moment

2013-08-05 Thread Oskar Schirmer
, then power down PLL. Signed-off-by: Oskar Schirmer --- sound/soc/codecs/sgtl5000.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 6c8a9e7..8ecb201 100644 --- a/sound/soc/codecs/sgtl5000.c +++ b/sound/soc

[PATCH v3] sound/sgtl5000: fix codec register initial values and handling

2013-06-19 Thread Oskar Schirmer
DIVISOR to provide an 11 bit mask correctly. Next, powering down PLL before switching to a mode that does not use it, is a bad idea. So first set the mode control, then power down PLL. Signed-off-by: Oskar Schirmer --- sound/soc/codecs/sgtl5000.c | 11 +++ sound/soc/codecs/sgtl5000.h

[PATCH v2] sound/sgtl5000: fix codec register initial values and mask

2013-06-11 Thread Oskar Schirmer
DIVISOR to provide an 11 bit mask correctly. Signed-off-by: Oskar Schirmer Tested-by: Fabio Estevam --- sound/soc/codecs/sgtl5000.c |2 +- sound/soc/codecs/sgtl5000.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs

[PATCH] sound/sgtl5000: fix codec register initial values and mask

2013-06-11 Thread Oskar Schirmer
DIVISOR to provide an 11 bit mask correctly. Signed-off-by: Oskar Schirmer --- sound/soc/codecs/sgtl5000.c |2 +- sound/soc/codecs/sgtl5000.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c index 92bbfec..ea47938

[PATCH] sound/sgtl5000: fix initial setting for DAC data source

2012-11-28 Thread Oskar Schirmer
According to documentation bit 3:2 in register SSS_CTRL are reserved and zero, so the setting of 0x0008 does not make much sense. Instead, bit 4 should be set as is with power up, to reflect routing of I2S_IN to DAC correctly. Looks much like an off by one error. Signed-off-by: Oskar Schirmer

[PATCH] sound/sgtl5000: fix initial setting for DAC data source

2012-11-28 Thread Oskar Schirmer
According to documentation bit 3:2 in register SSS_CTRL are reserved and zero, so the setting of 0x0008 does not make much sense. Instead, bit 4 should be set as is with power up, to reflect routing of I2S_IN to DAC correctly. Looks much like an off by one error. Signed-off-by: Oskar Schirmer

Re: [PATCH v3] watchdog/imx2+: add support for pretimeout interrupt functionality

2012-09-27 Thread Oskar Schirmer
Hi Wim, unless there is another issue with this patch, could You give an ack now? thanks, Oskar On Thu, Sep 20, 2012 at 15:37:24 +, Oskar Schirmer wrote: > This watchdog device provides pretimeout facilities: > Set some timeout value and get informed about imminent > watchdog

[PATCH v3] watchdog/imx2+: add support for pretimeout interrupt functionality

2012-09-20 Thread Oskar Schirmer
: Oskar Schirmer Cc: Wim Van Sebroeck Cc: Wolfram Sang Cc: Sascha Hauer Cc: Andrew Morton Cc: Johannes Weiner --- v2: switched to using devm_request_irq in favour of request_irq v3: connect poll to write, to save extra read interface drivers/watchdog/imx2_wdt.c | 78

Re: [PATCH v2] watchdog/imx2+: add support for pretimeout interrupt functionality

2012-09-11 Thread Oskar Schirmer
to wait for this interrupt thru poll(2), > > and to clear it thru read(2). > > > > Signed-off-by: Oskar Schirmer > > Cc: Wim Van Sebroeck > > Cc: Wolfram Sang > > Cc: Sascha Hauer > > Cc: Andrew Morton > > I have a problem with the read

[PATCH v2] watchdog/imx2+: add support for pretimeout interrupt functionality

2012-09-11 Thread Oskar Schirmer
This watchdog device provides pretimeout facilities: Set some timeout value and get informed about imminent watchdog activity thru interrupt. Allow user to wait for this interrupt thru poll(2), and to clear it thru read(2). Signed-off-by: Oskar Schirmer Cc: Wim Van Sebroeck Cc: Wolfram Sang

[PATCH] serial/imx: fix IMX UART macro usage to reflect correct

2012-09-10 Thread Oskar Schirmer
Platform dependant UART data refers to MX31 macro for MX35 machines. For all other machines, macro usage matches machine type. Though this compiles out to the same result, it looks much like a typo, so fix it to use the right macros instead. Signed-off-by: Oskar Schirmer --- arch/arm/plat-mxc

Re: [PATCH] watchdog/imx2+: add support for pretimeout interrupt

2012-09-05 Thread Oskar Schirmer
Hi Wim, On Tue, Jul 03, 2012 at 09:10:08 +, Oskar Schirmer wrote: > This watchdog device provides pretimeout facilities: > Set some timeout value and get informed about imminent > watchdog activity thru interrupt. sent this patch a while ago, as yet unprocessed. Could You give it a

[PATCH] Documentation: fix broken utf8 encoding

2012-08-21 Thread Oskar Schirmer
conversion to utf8 left some extra control character here, remove it. Signed-off-by: Oskar Schirmer Cc: John Anthony Kazos Jr Cc: Rob Landley --- Documentation/power/swsusp.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/power/swsusp.txt b