[PATCH 2/2] ALSA: ASoC: spdif_receiver: Add DT support

2013-04-19 Thread Michal Bachraty
Add devicetree support for this dummy audio soc driver. Signed-off-by: Michal Bachraty --- sound/soc/codecs/spdif_receiver.c | 12 1 file changed, 12 insertions(+) diff --git a/sound/soc/codecs/spdif_receiver.c b/sound/soc/codecs/spdif_receiver.c index dd8d856..5d469c7 100644

[PATCH 1/2] ALSA: ASoc: spdif_transciever: Add DT support

2013-04-19 Thread Michal Bachraty
Add devicetree support for this dummy audio soc driver. Signed-off-by: Michal Bachraty --- sound/soc/codecs/spdif_transciever.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/codecs/spdif_transciever.c b/sound/soc/codecs/spdif_transciever.c index 112a49d..4c8c295

[PATCH 2/2] ALSA: ASoc: davinci-mcasp: Add Support BCLK-to-LRCLK ratio for TDM modes

2013-04-19 Thread Michal Bachraty
For TDM mode, BCLK-to-LCLK ratio is computed as (tdm_slots) x (word_length). I2S mode is only subset of TDM mode with specific tdm_slots = 2 channels. Also bclk_lrclk_ratio can be greater than 255, therefore u16 need to be used. Signed-off-by: Michal Bachraty --- sound/soc/davinci/davinci

[PATCH 1/2] ALSA: ASoC davinci-pcm, davinci-mcasp Clean up active_serializers

2013-04-19 Thread Michal Bachraty
As pointed of by Vaibhav, commit message: "ASoC: davinci-mcasp: Add support for multichannel playback" number of active serializers can be hidden into fifo_level variable, which is set in davimci-mcasp. Signed-off-by: Michal Bachraty --- sound/soc/davinci/davinci-mcas

[PATCH 1/2] ALSA: ASoC davinci-pcm, davinci-mcasp Clean up active_serializers

2013-04-19 Thread Michal Bachraty
As pointed of by Vaibhav, commit message: ASoC: davinci-mcasp: Add support for multichannel playback number of active serializers can be hidden into fifo_level variable, which is set in davimci-mcasp. Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com --- sound/soc/davinci

[PATCH 2/2] ALSA: ASoc: davinci-mcasp: Add Support BCLK-to-LRCLK ratio for TDM modes

2013-04-19 Thread Michal Bachraty
For TDM mode, BCLK-to-LCLK ratio is computed as (tdm_slots) x (word_length). I2S mode is only subset of TDM mode with specific tdm_slots = 2 channels. Also bclk_lrclk_ratio can be greater than 255, therefore u16 need to be used. Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com

[PATCH 1/2] ALSA: ASoc: spdif_transciever: Add DT support

2013-04-19 Thread Michal Bachraty
Add devicetree support for this dummy audio soc driver. Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com --- sound/soc/codecs/spdif_transciever.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/codecs/spdif_transciever.c b/sound/soc/codecs

[PATCH 2/2] ALSA: ASoC: spdif_receiver: Add DT support

2013-04-19 Thread Michal Bachraty
Add devicetree support for this dummy audio soc driver. Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com --- sound/soc/codecs/spdif_receiver.c | 12 1 file changed, 12 insertions(+) diff --git a/sound/soc/codecs/spdif_receiver.c b/sound/soc/codecs

Re: [PATCH v7] clk: add si5351 i2c common clock driver

2013-04-11 Thread Michal Bachraty
Hi Sebastian, On Wednesday, April 10, 2013 19:27:25 Sebastian Hesselbarth wrote: > Hmm, is there any driver using the clock output? Does it > clk_prepare_enable() the clock? I tend not to mess with anything the > bootloader or eeprom config left disabled. It works for me, but here the > driver

Re: [PATCH v7] clk: add si5351 i2c common clock driver

2013-04-11 Thread Michal Bachraty
Hi Sebastian, On Wednesday, April 10, 2013 19:27:25 Sebastian Hesselbarth wrote: Hmm, is there any driver using the clock output? Does it clk_prepare_enable() the clock? I tend not to mess with anything the bootloader or eeprom config left disabled. It works for me, but here the driver will

Re: [PATCH v7] clk: add si5351 i2c common clock driver

2013-04-10 Thread Michal Bachraty
Hi Sebastian, This driver doesn't work for me. In my case, u-boot initializes si-5351 and power down unused clocks while booting kernel. there is need for power up clocks as was in previous versions of your driver. See patch, whre the problem is fixed: @@ -992,6 +992,10 @@ static long

Re: [PATCH v7] clk: add si5351 i2c common clock driver

2013-04-10 Thread Michal Bachraty
Hi Sebastian, This driver doesn't work for me. In my case, u-boot initializes si-5351 and power down unused clocks while booting kernel. there is need for power up clocks as was in previous versions of your driver. See patch, whre the problem is fixed: @@ -992,6 +992,10 @@ static long

Re: [PATCH] clk: si5351: Add gapless tuning for SI5351 PLL

2013-04-09 Thread Michal Bachraty
Hi Sebastian, > does gapless tuning have any constraints? Can we use it for all rate > changes or determine the > need for pll reset by rate offset? Today I made some test measurements ( switching from 22.5MHz to 32kHz, then to 50MHz, then to 1MHz) with good results: without any gaps and any

[PATCH] clk: si5351: Add gapless tuning for SI5351 PLL

2013-04-09 Thread Michal Bachraty
For gapless tuning, there is no need for PLL reset and clkout power-down when tuning output. "silabs,gapless-tuning" parameter enables gapless tuning for specific clock output. Signed-off-by: Michal Bachraty --- .../devicetree/bindings/clock/silabs,si5351.txt|2 ++ drive

[PATCH] clk: si5351: Add gapless tuning for SI5351 PLL

2013-04-09 Thread Michal Bachraty
For gapless tuning, there is no need for PLL reset and clkout power-down when tuning output. silabs,gapless-tuning parameter enables gapless tuning for specific clock output. Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com --- .../devicetree/bindings/clock/silabs,si5351.txt

Re: [PATCH] clk: si5351: Add gapless tuning for SI5351 PLL

2013-04-09 Thread Michal Bachraty
Hi Sebastian, does gapless tuning have any constraints? Can we use it for all rate changes or determine the need for pll reset by rate offset? Today I made some test measurements ( switching from 22.5MHz to 32kHz, then to 50MHz, then to 1MHz) with good results: without any gaps and any side

Re: [PATCH v3] clk: add si5351 i2c common clock driver

2013-03-20 Thread michal . bachraty
Hi Sebastian, Thanks for writing this driver! I have tested your si5351 clock driver and his tuning capabilities. It works well, it generates proper clock frequency, but when new frequency is generated, little clock gap (1ms) is generated. Si5351 datasheet and WP claims, clock tuning can be

Re: [PATCH v3] clk: add si5351 i2c common clock driver

2013-03-20 Thread michal . bachraty
Hi Sebastian, Thanks for writing this driver! I have tested your si5351 clock driver and his tuning capabilities. It works well, it generates proper clock frequency, but when new frequency is generated, little clock gap (1ms) is generated. Si5351 datasheet and WP claims, clock tuning can be

Re: [alsa-devel] [PATCH v3] davinci-mcasp: Add support for multichannel playback

2013-03-01 Thread Michal Bachraty
Hi Daniel, Thanks for testing. > One thing that has to be considered by users of the driver is that the > 'serial-dir' DT property has to contain enough '1' entries for > multichannel playback (or enough '2's for multichannel record). So this > information is not actually something that

Re: [alsa-devel] [PATCH v3] davinci-mcasp: Add support for multichannel playback

2013-03-01 Thread Michal Bachraty
Hi Daniel, Thanks for testing. One thing that has to be considered by users of the driver is that the 'serial-dir' DT property has to contain enough '1' entries for multichannel playback (or enough '2's for multichannel record). So this information is not actually something that describes

[PATCH v3] davinci-mcasp: Add support for multichannel playback

2013-02-28 Thread Michal Bachraty
r TDM mode, McASP is capable to play or receive 32 channels for one serializer. McAsp has support for max 16 serializer, therefore max channels is 32 * 8. Signed-off-by: Michal Bachraty --- sound/soc/davinci/davinci-mcasp.c | 66 - sound/soc/davinci/davinci-pcm.

[PATCH v3] davinci-mcasp: Add support for multichannel playback

2013-02-28 Thread Michal Bachraty
, McASP is capable to play or receive 32 channels for one serializer. McAsp has support for max 16 serializer, therefore max channels is 32 * 8. Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com --- sound/soc/davinci/davinci-mcasp.c | 66 - sound

[PATCH v2] ALSA: ASoC: McASP: Fix data rotation for playback. Enables 24bit audio playback

2013-01-18 Thread Michal Bachraty
or other data formats, this code rotates data badly and you hear somethink like noise. You need to use u32 rotate = (word_length / 4) & 0x7; to proper data rotation. Signed-off-by: Michal Bachraty --- changes v2: add commit log. sound/soc/davinci/davinci-mcasp.c |2 +- 1 file changed, 1 inser

Re: [alsa-devel] [PATCH] ALSA: ASoC: McASP: Fix data rotation for playback. Enables 24bit audio playback

2013-01-18 Thread Michal Bachraty
On Friday, January 18, 2013 08:22:53 Hebbar, Gururaja wrote: > On Tue, Jan 15, 2013 at 20:11:00, Michal Bachraty wrote: > > Signed-off-by: Michal Bachraty > > Even simple patches need a simple changelog. > Add a brief description about what & why it is done? > Hi Guru

Re: [alsa-devel] [PATCH] ALSA: ASoC: McASP: Fix data rotation for playback. Enables 24bit audio playback

2013-01-18 Thread Michal Bachraty
On Friday, January 18, 2013 08:22:53 Hebbar, Gururaja wrote: On Tue, Jan 15, 2013 at 20:11:00, Michal Bachraty wrote: Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com Even simple patches need a simple changelog. Add a brief description about what why it is done? Hi

[PATCH v2] ALSA: ASoC: McASP: Fix data rotation for playback. Enables 24bit audio playback

2013-01-18 Thread Michal Bachraty
or other data formats, this code rotates data badly and you hear somethink like noise. You need to use u32 rotate = (word_length / 4) 0x7; to proper data rotation. Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com --- changes v2: add commit log. sound/soc/davinci/davinci-mcasp.c

[PATCH] ALSA: ASoC: McASP: Fix data rotation for playback. Enables 24bit audio playback

2013-01-15 Thread Michal Bachraty
Signed-off-by: Michal Bachraty --- sound/soc/davinci/davinci-mcasp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 13f8d73..a03bece 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc

[PATCH] ALSA: ASoC: McASP: Fix data rotation for playback. Enables 24bit audio playback

2013-01-15 Thread Michal Bachraty
Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com --- sound/soc/davinci/davinci-mcasp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 13f8d73..a03bece 100644 --- a/sound/soc

[PATCH] cpsw: Add support to read cpu MAC address

2013-01-11 Thread Michal Bachraty
Signed-off-by: Michal Bachraty --- Documentation/devicetree/bindings/net/cpsw.txt | 10 +- arch/arm/boot/dts/am33xx.dtsi |5 +- drivers/net/ethernet/ti/cpsw.c | 121 +--- include/linux/platform_data/cpsw.h |8 ++ 4 files

[PATCH] cpsw: Add support to read cpu MAC address

2013-01-11 Thread Michal Bachraty
Signed-off-by: Michal Bachraty michal.bachr...@streamunlimited.com --- Documentation/devicetree/bindings/net/cpsw.txt | 10 +- arch/arm/boot/dts/am33xx.dtsi |5 +- drivers/net/ethernet/ti/cpsw.c | 121 +--- include/linux/platform_data