[PATCH 0/x] ASoC: replace platform to component

2017-07-24 Thread Kuninori Morimoto
rm has pcm_new/free, but in new style, all component can have it. I will post step1/2/3 patch-set. step1 is normal patches. step2/3 are now still [RFC]. Best regards --- Kuninori Morimoto

[PATCH] ASoC: sh: hac: add missing "int ret"

2017-07-23 Thread Kuninori Morimoto
From: Kuninori Morimoto commit b047e1cce8 ("ASoC: ac97: Support multi-platform AC'97") modified hac_soc_platform_probe(), but "int ret" was missed. This patch adds missing "int ret", otherwise, we will get linux/sound/soc/sh/hac.c: In function 'hac_soc_p

[PATCH] ASoC: rsnd: don't use private_value on rsnd_kctrl_new()

2017-07-23 Thread Kuninori Morimoto
From: Kuninori Morimoto Current rsnd kctrl is using both .private_value (for rsnd_kctrl_cfg) and .private_data (for rsnd_mod) on snd_kcontrol. But only 1 private data (= rsnd_kctrl_cfg) can be enough if it has rsnd_mod pointer. This patch doesn't use private_value. Signed-off-by: Kun

[PATCH 1/3][resend] drm: rcar-du: use of_graph_get_remote_endpoint()

2017-07-23 Thread Kuninori Morimoto
From: Kuninori Morimoto Now, we can use of_graph_get_remote_endpoint(). Let's use it. Signed-off-by: Kuninori Morimoto Reviewed-by: Laurent Pinchart --- based on 4c9c3d595f1bad021cc126d20879df4016801736 ("of_graph: add of_graph_get_remote_endpoint()") drivers/gpu/drm/rcar-d

[PATCH][resend] drm: dw-hdmi-i2s: add missing company name on Copyright

2017-07-23 Thread Kuninori Morimoto
From: Kuninori Morimoto This driver's Copyright is under Renesas Solutions Corp Signed-off-by: Kuninori Morimoto --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-au

[PATCH v2] ASoC: hdmi-codec: ELD control corresponds to the PCM stream

2017-07-05 Thread Kuninori Morimoto
From: Kuninori Morimoto Current hdmi-codec driver is using hdmi_controls for "ELD" control. But, hdmi-codec driver might be used from many HDMIs. Thus, we need to correspond device number, otherwise we will receive below error. xxx: control x:x:x:ELD:x is already present

Re: [PATCH] ASoC: hdmi-codec: hdmi_codec_priv includes snd_kcontrol_new

2017-07-05 Thread Kuninori Morimoto
Hi Takashi > > >> From: Kuninori Morimoto > > >> > > >> Current hdmi-codec driver is using hdmi_controls for "ELD" control. > > >> But, hdmi-codec driver might be used from many HDMIs. In such case, > > >> they will use sa

[PATCH] ASoC: hdmi-codec: hdmi_codec_priv includes snd_kcontrol_new

2017-07-05 Thread Kuninori Morimoto
From: Kuninori Morimoto Current hdmi-codec driver is using hdmi_controls for "ELD" control. But, hdmi-codec driver might be used from many HDMIs. In such case, they will use same "ELD" name and kernel will indicate below error. xxx: control x:x:x:ELD:x is already pr

Re: [PATCH v1.1 2/2] drm: rcar-du: Repair vblank for DRM page flips using the VSP1

2017-06-30 Thread Kuninori Morimoto
each ODD, EVEN timing. Before this patch, for example 1080i@60Hz, print complete indication happen in 30Hz. After this patch, in interlace case, indication coming 60Hz Best regards --- Kuninori Morimoto

[PATCH] ASoC: rsnd: merge snd_pcm_ops::open and snd_soc_dai_ops::startup

2017-06-27 Thread Kuninori Morimoto
From: Kuninori Morimoto Current rsnd driver has snd_pcm_ops::open and snd_soc_dai_ops::startup, but, these are called from soc_pcm_open in same time. This patch merge these into rsnd_soc_dai_startup() Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 80

[PATCH 1/3] drm: rcar-du: use of_graph_get_remote_endpoint()

2017-06-27 Thread Kuninori Morimoto
From: Kuninori Morimoto Now, we can use of_graph_get_remote_endpoint(). Let's use it. Signed-off-by: Kuninori Morimoto --- based on 4c9c3d595f1bad021cc126d20879df4016801736 ("of_graph: add of_graph_get_remote_endpoint()") drivers/gpu/drm/rcar-du/rcar_du_kms.c | 2 +- 1

[RFC 8/x v2] ASoC: replace platform to component on soc-generic-dmaengine-pcm

2017-06-26 Thread Kuninori Morimoto
Now platform can be replaced to component, let's do it. Signed-off-by: Kuninori Morimoto --- include/sound/dmaengine_pcm.h | 2 ++ sound/soc/soc-generic-dmaengine-pcm.c | 54 +-- 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/in

[RFC x/x v2] ASoC: remove platform related things

2017-06-26 Thread Kuninori Morimoto
Now, all platform are replaced to component. This patch removes all platform code. platform_list_read_file() is replaced to component_list_read_file() Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 101 - sound/soc/soc-compress.c | 123

[RFC 6/x v2] ASoC: replace platform to component on rsnd

2017-06-26 Thread Kuninori Morimoto
Now platform can be replaced to component, let's do it. Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 20 +++- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 409bac3..8dcf1a8 100644

[RFC 7/x v2] ASoC: replace platform to component on soc-utils

2017-06-26 Thread Kuninori Morimoto
Now platform can be replaced to component, let's do it. Signed-off-by: Kuninori Morimoto --- sound/soc/soc-utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c index 644d9a9..b7bf63d 100644 --- a/sound/soc/soc-ut

[RFC 3/x v2] ASoC: soc-core: add snd_soc_rtdcom_xxx()

2017-06-26 Thread Kuninori Morimoto
is that "component name" was created by fmt_single_name() and difficult to use it from driver. Driver of course knows its "driver name", thus, using it is more easy. This patch connect "platform" component to rtd as 1st step. "codec" component will be conn

[RFC 5/x v2] ASoC: snd_soc_component_driver has snd_compr_ops

2017-06-26 Thread Kuninori Morimoto
snd_soc_platform_driver has snd_compr_ops, and it will be replaced into snd_soc_component_driver in the future. To prepare it, component driver has it. After this patch, rtd->platform is no longer mandatory Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 1 + sound/soc/

[RFC 4/x v2] ASoC: snd_soc_component_driver has snd_pcm_ops

2017-06-26 Thread Kuninori Morimoto
snd_soc_platform_driver has snd_pcm_ops, and it will be replaced into snd_soc_component_driver in the future. To prepare it, component driver has it. After this patch, rtd->platfrom is no longer mandatory Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 4 +- sound/soc/soc-cor

[RFC 2/x v2] ASoC: soc-devres: use expanded unregister on devm register component

2017-06-26 Thread Kuninori Morimoto
Now, we have snd_soc_unregister_component_exp() which can check registered device and driver. Let's use it on devm_component_release() Signed-off-by: Kuninori Morimoto --- sound/soc/soc-devres.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/soc-devre

[RFC 1/x v2] ASoC: soc-core: add component remove/unregister_exp/lookup functions

2017-06-26 Thread Kuninori Morimoto
se functions. Here, the reason why it uses "driver name" is that "component name" was created by fmt_single_name() and difficult to use it from driver. Driver of course knows its "driver name", thus, using it is more easy. Current normal unregister function is rep

[RFC 0/x v2] ASoC: replace platform to component

2017-06-26 Thread Kuninori Morimoto
_list into for_each_rtdcom(rtd, rtdcom) { component = rtdcom->component; ... } 1) - 5) : prepare to replace 6) - 8) : sample of platform -> component replace 9) : remove platform Kuninori Morimoto (9): 1) ASoC: soc-core: add com

[PATCH] ASoC: audio-graph-scu-card: support 2nd codec endpoint on DT

2017-06-21 Thread Kuninori Morimoto
From: Kuninori Morimoto audio-graph-scu-card can handle below connection which is mainly for sound mixing purpose. +--+ +---+ | CPU0--+--|-->| Codec | | | | +---+ | CPU1--+ | +--+ From OF-graph point of view, it sho

[PATCH] ASoC: audio-graph-scu-card: tidyup asoc_simple_card_canonicalize_cpu() parameter

2017-06-21 Thread Kuninori Morimoto
From: Kuninori Morimoto asoc_simple_card_canonicalize_cpu() 2nd param is asking CPU component's DAI links, not Card links. This patch fixup it. Otherwise, audio-graph-card can't handle CPU component correctly if CPU has mult-DAIs and Card uses only one of them Signed-off-by: Kuninor

[PATCH] ASoC: audio-graph-card: tidyup asoc_simple_card_canonicalize_cpu() parameter

2017-06-21 Thread Kuninori Morimoto
From: Kuninori Morimoto asoc_simple_card_canonicalize_cpu() 2nd param is asking CPU component's DAI links, not Card links. This patch fixup it. Otherwise, audio-graph-card can't handle CPU component correctly if CPU has mult-DAIs and Card uses only one of them Signed-off-by: Kuninor

Re: [RFC][PATCH 0/x] ASoC: replace platform to component

2017-06-21 Thread Kuninori Morimoto
e right now with CODEC<->CODEC links I think. Thanks I will consider and try to create such patch Best regards --- Kuninori Morimoto

Re: [PATCH 0/3] ASoC: add/use asoc_simple_card_of_canonicalize_cpu()

2017-06-21 Thread Kuninori Morimoto
Hi Mark Sorry for my noise, but I noticed these patches are a littile bit over-kill. Please ignore, I want to post more light v2 patches > These fixes audio graph cards DAI counting bug. > Simple Card side doesn't have this issue, but Audio Graph Card > side has it. > >

Re: Applied "ASoC: pxa: add COMPILE_TEST on SND_MMP_SOC" to the asoc tree

2017-06-21 Thread Kuninori Morimoto
Hi Mark > From d89e69c0f985392e708b54c92b322163da820cb9 Mon Sep 17 00:00:00 2001 > From: Kuninori Morimoto > Date: Wed, 21 Jun 2017 04:38:34 + > Subject: [PATCH] ASoC: pxa: add COMPILE_TEST on SND_MMP_SOC > > It doesn't use asm header. We can add COMPILE_TEST >

[PATCH 3/3] ASoC: pxa: add COMPILE_TEST on SND_MMP_SOC

2017-06-20 Thread Kuninori Morimoto
From: Kuninori Morimoto It doesn't use asm header. We can add COMPILE_TEST Signed-off-by: Kuninori Morimoto --- sound/soc/pxa/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/pxa/Kconfig b/sound/soc/pxa/Kconfig index 960744e..6feb34b 100644 --- a/

[PATCH] ASoC: pxa: add COMPILE_TEST on SND_PXA2XX_SOC

2017-06-20 Thread Kuninori Morimoto
From: Kuninori Morimoto It doesn't use asm header. We can add COMPILE_TEST Signed-off-by: Kuninori Morimoto --- sound/soc/pxa/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/pxa/Kconfig b/sound/soc/pxa/Kconfig index 823b5a2..960744e 100644 --- a/

[PATCH 1/3] ASoC: fsl: mpc5200_dma: remove unused psc_dma

2017-06-20 Thread Kuninori Morimoto
linux/sound/soc/fsl/mpc5200_dma.c:305:18: warning: unused variable \ psc_dma’ [-Wunused-variable] Signed-off-by: Kuninori Morimoto --- sound/soc/fsl/mpc5200_dma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c index 93885d9

Re: [RFC][PATCH 0/x] ASoC: replace platform to component

2017-06-20 Thread Kuninori Morimoto
return component; } return NULL; } Best regards --- Kuninori Morimoto

[PATCH 3/3] ASoC: audio-graph-scu-card: use asoc_simple_card_of_canonicalize_cpu()

2017-06-20 Thread Kuninori Morimoto
From: Kuninori Morimoto snd_soc_find_dai() will check dai_name after of_node matching if dai_link has it. but, it will never match if name was created by fmt_single_name(). Thus, we need to remove cpu_dai_name if cpu was single. Before, simple-card assumed that CPU was single if Card has single

[PATCH 2/3] ASoC: audio-graph-card: use asoc_simple_card_of_canonicalize_cpu()

2017-06-20 Thread Kuninori Morimoto
From: Kuninori Morimoto snd_soc_find_dai() will check dai_name after of_node matching if dai_link has it. but, it will never match if name was created by fmt_single_name(). Thus, we need to remove cpu_dai_name if cpu was single. Before, simple-card assumed that CPU was single if Card has single

[PATCH 1/3] ASoC: simple-card-utils: add asoc_simple_card_of_canonicalize_cpu()

2017-06-20 Thread Kuninori Morimoto
From: Kuninori Morimoto snd_soc_find_dai() will check dai_name after of_node matching if dai_link has it. but, it will never match if name was created by fmt_single_name(). Thus, we need to remove cpu_dai_name if cpu was single. Before, simple-card assumed that CPU was single if Card has single

[PATCH 0/3] ASoC: add/use asoc_simple_card_of_canonicalize_cpu()

2017-06-20 Thread Kuninori Morimoto
Hi Mark These fixes audio graph cards DAI counting bug. Simple Card side doesn't have this issue, but Audio Graph Card side has it. Kuninori Morimoto (3): ASoC: simple-card-utils: add asoc_simple_card_of_canonicalize_cpu() ASoC: audio-graph-card: use asoc_simple_card_of_canonicaliz

Re: [PATCH 0/2] arm64: defconfig: ak4613/renesas sound will be kernle module

2017-06-20 Thread Kuninori Morimoto
Hi Simon > > These exchange Renesas sound related driver as module. > > But, it doesn't exchange simple-sound-card which is > > used from other platform. > > > > Kuninori Morimoto (2): > > arm64: defconfig: compile ak4613 as kernel module > &g

[PATCH] drm: dw-hdmi-i2s: add missing company name on Copyright

2017-06-19 Thread Kuninori Morimoto
From: Kuninori Morimoto This driver's Copyright is under Renesas Solutions Corp Signed-off-by: Kuninori Morimoto --- drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-au

[RFC][PATCH 5/x] ASoC: remove platform related things

2017-06-19 Thread Kuninori Morimoto
Now, all platform code are replaced to component. This patch removes all platform code. platform_list_read_file() is replaced to component_list_read_file(), and snd_soc_lookup_platform() is replaced to snd_soc_lookup_component() Signed-off-by: Kuninori Morimoto --- include/sound/soc.h

[RFC][PATCH 4/x] ASoC: replace platform to component on sst-xxx

2017-06-19 Thread Kuninori Morimoto
Now platform can be replaced to component, let's do it. Signed-off-by: Kuninori Morimoto --- sound/soc/intel/atom/sst-atom-controls.c | 36 +++ sound/soc/intel/atom/sst-mfld-platform-compress.c | 3 +- sound/soc/intel/atom/sst-mfld-platform-pcm.c

[RFC][PATCH 3/x] ASoC: replace platform to component on sh/rcar

2017-06-19 Thread Kuninori Morimoto
Now platform can be replaced to component, let's do it. Signed-off-by: Kuninori Morimoto --- sound/soc/sh/rcar/core.c | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c index 409bac3..c03fb9f 100644

[RFC][PATCH 2/x] ASoC: snd_soc_component_driver has snd_compr_ops

2017-06-19 Thread Kuninori Morimoto
snd_soc_platform_driver has snd_compr_ops, and it will be replaced into snd_soc_component_driver in the future. To prepare it, component driver has it. Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 1 + sound/soc/soc-compress.c | 116

[RFC][PATCH 1/x] ASoC: snd_soc_component_driver has snd_pcm_ops

2017-06-19 Thread Kuninori Morimoto
snd_soc_platform_driver has snd_pcm_ops, and it will be replaced into snd_soc_component_driver in the future. To prepare it, component driver has it. Signed-off-by: Kuninori Morimoto --- include/sound/soc.h | 5 ++- sound/soc/davinci/davinci-i2s.c | 15 +++-- sound/soc/soc

[RFC][PATCH 0/x] ASoC: replace platform to component

2017-06-19 Thread Kuninori Morimoto
dev". We want to have below snd_soc_lookup_component(dev, driver); snd_soc_unregister_component(dev, driver); Can I replace current unregister before "replace platform" patch set ? (= many drivers are using it) Best regards --- Kuninori Morimoto

Re: [PATCH] arm64: renesas: salvator-common: sound clock-frequency needs descending order

2017-06-19 Thread Kuninori Morimoto
in > patches for which I have already sent pull requests. I'll re-apply this > patch as a fix for v4.13 with the tags above. No need to repost at this > stage. Thanks. Above Geert's "Fixes" tags are correct. So, can you pickup it into v4.13 fixup please ? Best regards --- Kuninori Morimoto

Re: [PATCH] arm64: renesas: salvator-common: sound clock-frequency needs descending order

2017-06-18 Thread Kuninori Morimoto
Hi Geert > >> On Fri, Jun 16, 2017 at 01:41:20AM +, Kuninori Morimoto wrote: > >> > From: Kuninori Morimoto > >> > > >> > It will be used ADG clock initial settings, and will be > >> > sound codec's initial system clock which n

[PATCH][RESEND] drm: dw-hdmi-i2s: add .get_dai_id callback for ALSA SoC

2017-06-18 Thread Kuninori Morimoto
From: Kuninori Morimoto ALSA SoC needs to know connected DAI ID for probing. It is not a big problem if device/driver was only for sound, but getting DAI ID will be difficult if device includes both Video/Sound, like HDMI. To solve this issue, this patch adds new .get_dai_id callback on

[PATCH 2/2] arm64: defconfig: compile renesas sound as kernel module

2017-06-18 Thread Kuninori Morimoto
From: Kuninori Morimoto Renesas sound driver is used from Renesas platform only. Let's compile it as module to reduce ARM64 kernel size. Signed-off-by: Kuninori Morimoto --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/co

[PATCH 1/2] arm64: defconfig: compile ak4613 as kernel module

2017-06-18 Thread Kuninori Morimoto
From: Kuninori Morimoto ak4613 is used from Renesas platform only now. Let's compile it as module to reduce ARM64 kernel size. Signed-off-by: Kuninori Morimoto --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/configs/defcon

[PATCH 0/2] arm64: defconfig: ak4613/renesas sound will be kernle module

2017-06-18 Thread Kuninori Morimoto
Hi Simon These exchange Renesas sound related driver as module. But, it doesn't exchange simple-sound-card which is used from other platform. Kuninori Morimoto (2): arm64: defconfig: compile ak4613 as kernel module arm64: defconfig: compile renesas sound as kernel module arch/

Re: [PATCH] arm64: renesas: salvator-common: sound clock-frequency needs descending order

2017-06-18 Thread Kuninori Morimoto
Hi Simon > On Fri, Jun 16, 2017 at 01:41:20AM +0000, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > > > It will be used ADG clock initial settings, and will be > > sound codec's initial system clock which needs maximum clock frequency. > &

[PATCH v2] ASoC: ak4613: add hw_constraint rule for Sampling Rate

2017-06-15 Thread Kuninori Morimoto
From: Kuninori Morimoto Current ak4613 accepts all range of Sampling Rate, but it depends on inputed master clock. This patch adds hw constraint rule for it. Signed-off-by: Kuninori Morimoto Tested-by: Hiroyuki Yokoyama --- v1 -> v2 - Merged v1's [1/2][2/2] into this patch. - Rem

[PATCH] arm64: renesas: salvator-common: sound clock-frequency needs descending order

2017-06-15 Thread Kuninori Morimoto
From: Kuninori Morimoto It will be used ADG clock initial settings, and will be sound codec's initial system clock which needs maximum clock frequency. Thus, descending order is required Signed-off-by: Kuninori Morimoto --- arch/arm64/boot/dts/renesas/salvator-common.dtsi | 2 +- 1

[PATCH 2/2] ASoC: simple-card: use asoc_simple_card_of_parse_widgets()

2017-06-15 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple card driver is supporting widgets on DT, other simple/audio card drivers will support it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_widgets Signed-off-by: Kuninori Morimoto --- sound/soc/generic/sim

[PATCH 1/2] ASoC: simple-card-utils: add asoc_simple_card_of_parse_widgets()

2017-06-15 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple card drivers are parsing widgets on each own driver (only simple-card at this point, but will be supported on all drivers) Encapsulation is one of simple card util's purpose. Let's add asoc_simple_card_of_parse_widgets for it. Signed-off-by

[PATCH 0/2] ASoC: simple-card-utils: add asoc_simple_card_of_parse_widgets()

2017-06-15 Thread Kuninori Morimoto
s, and use it from simple-card. Kuninori Morimoto (2): ASoC: simple-card-utils: add asoc_simple_card_of_parse_widgets() ASoC: simple-card: use asoc_simple_card_of_parse_widgets() include/sound/simple_card_utils.h | 2 ++ sound/soc/generic/simple-card-utils.c | 19 +++

Re: [PATCH] arch/arm64: defconfig: Compile Renesas Sound related drivers as Module

2017-06-15 Thread Kuninori Morimoto
Hi Simon > > Current Renesas Sound related drivers are compiled as built-in. > > Let's compile it as Module to reduce ARM64 Kernel size. > > > > Signed-off-by: Kuninori Morimoto > > --- > > arch/arm64/configs/defconfig | 6 +++--- > > 1 file cha

Re: [PATCH 1/2] ASoC: ak4613: add use CTRL2::CKS = 00

2017-06-15 Thread Kuninori Morimoto
snd_soc_update_bits(codec, CTRL2, (CKS_MASK | DFS_MASK), ctrl2); > > This looks board specific - shouldn't we be setting the speed mode based > on a combination of the sampling rate and the master clock for the > device? I removed "FIXME" comments, but OK. I will fixup this patch-set Best regards --- Kuninori Morimoto

[PATCH] ASoC: rsnd: fixup unsigned expression compared with zero: main_rate

2017-06-15 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch fixes this WARNING sound/soc/sh/rcar/ssi.c:285:5-14: WARNING: Unsigned expression\ compared with zero: main_rate < 0 Signed-off-by: Kuninori Morimoto --- Mark, Julia I think this patch solves reported issue, but my compiler and smatch does

[PATCH 3/4] ASoC: rsnd: add rsnd_ssi_clk_query()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current Renesas sound driver is assuming that all Sampling rate and channles are possible to use, but these are depends on inputed clock and SSI connection situation. For example, if it is using 1 SSI, enabled TDM mode and has 12288000 input clock, 2ch output can support

[PATCH 4/4] ASoC: rsnd: add rsnd_soc_hw_rule/constraint()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current Renesas sound driver is assuming that all Sampling rate and channles are possible to use, but these are depends on inputed clock and SSI connection situation. For example, if it is using 1 SSI, enabled TDM mode and has 12288000 input clock, 2ch output can support

[PATCH 2/4] ASoC: rsnd: add rsnd_adg_clk_query()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current Renesas sound driver is assuming that all Sampling rate and channles are possible to use, but these are depends on inputed clock and SSI connection situation. For example, if it is using 1 SSI, enabled TDM mode and has 12288000 input clock, 2ch output can support

[PATCH 1/4] ASoC: rsnd: rename "slots" related variable

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current Renesas sound driver has slots and slots_num in struct rsnd_dai, but these are very un-understandable naming (It had named from TDM slots). In this driver, the "slots" means total usable channels, and "stot_num" means SSI lane number if Mu

[PATCH 0/4] ASoC: rsnd: add PCM rule

2017-06-14 Thread Kuninori Morimoto
Hi Mark These patches adds hw_constraints rule to Renesas sound driver. It supports TDM and Multi SSI features, possible Channel / Sampling Rate are depends on its situation. Kuninori Morimoto (4): ASoC: rsnd: rename "slots" related variable ASoC: rsnd: add rsnd_adg_clk_query()

[PATCH 2/2] ASoC: ak4613: add hw_constraint rule for Sampling Rate

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current ak4613 accepts all range of Sampling Rate, but it depends on inputed master clock. This patch adds hw constraint rule for it. Signed-off-by: Kuninori Morimoto Tested-by: Hiroyuki Yokoyama --- sound/soc/codecs/ak4613.c | 69

[PATCH 1/2] ASoC: ak4613: add use CTRL2::CKS = 00

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto ak4613 CTRL2::CKS controls Speed Mode (Normal/Double/Quad) for Master Mode. In default, Normal Mode uses 512fs, but in such case, requested input clock for all mode will be same. Then, it might not be eble to support correct output if input clock was not enough. This

[PATCH 0/2] ASoC: ak4613: add PCM rule

2017-06-14 Thread Kuninori Morimoto
Hi Mark These patches adds hw_constraint rule to ak4613. Otherwise, Renesas platform might use un-supported sampling rate Kuninori Morimoto (2): ASoC: ak4613: add use CTRL2::CKS = 00 ASoC: ak4613: add hw_constraint rule for Sampling Rate sound/soc/codecs/ak4613.c | 72

[PATCH 7/7] ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_routing()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same routing on DT, but, doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_routing Signed-off-by: Kuninori Morimoto --- sound/so

[PATCH 4/7] ASoC: simple-card-utils: add asoc_simple_card_of_parse_routing()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple card drivers are parsing routing on each own driver. Encapsulation is one of simple card util's purpose. Let's add asoc_simple_card_of_parse_routing for it. Signed-off-by: Kuninori Morimoto --- include/sound/simple_card_utils.h | 4

[PATCH 5/7] ASoC: simple-card: use asoc_simple_card_of_parse_routing()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same routing on DT, but, doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_routing Signed-off-by: Kuninori Morimoto --- sound/soc

[PATCH 6/7] ASoC: simple-scu-card: use asoc_simple_card_of_parse_routing()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same routing on DT, but, doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_routing Signed-off-by: Kuninori Morimoto --- sound/soc

[PATCH 3/7] ASoC: audio-graph-scu-card: use asoc_simple_card_convert_fixup()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same convert-rate/convert-channels on DT, but, doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_parse_convert/asoc_simple_card_convert_fixup

[PATCH 2/7] ASoC: simple-scu-card: use asoc_simple_card_convert_fixup()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same convert-rate/convert-channels on DT, but, doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_parse_convert/asoc_simple_card_convert_fixup

[PATCH 1/7] ASoC: simple-card-utils: add asoc_simple_card_convert_fixup()

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple/audio scu card drivers are supporting same convert-rate/convert-channels on DT, but doesn't use same function for it. Encapsulation is one of simple card util's purpose. Let's add asoc_simple_card_parse_convert/asoc_simple_card_convert_fixup

[PATCH 0/7] ASoC: simple-card: add asoc_simple_card_convert_fixup/parse_routing

2017-06-14 Thread Kuninori Morimoto
Hi Mark Simple/OF-Audio card are using same DT properties, but not using same functions for it. These patches adds such function on simple-card-utils and uses it from simple/simple-scu/audio/audio-scu cards. These are for convert_rate/convert_channels/routing Kuninori Morimoto (7): ASoC

[PATCH] arch/arm64: defconfig: Compile Renesas Sound related drivers as Module

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto Current Renesas Sound related drivers are compiled as built-in. Let's compile it as Module to reduce ARM64 Kernel size. Signed-off-by: Kuninori Morimoto --- arch/arm64/configs/defconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

[PATCH] ASoC: rsnd: reduce confusable macro parameter magic

2017-06-14 Thread Kuninori Morimoto
From: Kuninori Morimoto rsnd_dai_call() macro is using "priv" inside. Thus, if caller function doesn't have "priv" related operation, strange phenomenon occur which code is using "priv", but compiler indicates "unused variable 'priv'". Fro

[PATCH] ASoC: simple_card_utils: add EXPORT_SYMBOL_GPL() for asoc_simple_card_clk_xxx()

2017-06-13 Thread Kuninori Morimoto
From: Kuninori Morimoto commit 891caea41746 ("ASoC: simple_card_utils: add asoc_simple_card_clk_xxx()") added new asoc_simple_card_clk_xxx(), but, it didn't have EXPORT_SYMBOL_GPL(). This patch adds it. Otherwise, we will get below error ERROR: "asoc_simple_card_clk_enable&

[PATCH 5/5] ASoC: audio-graph-scu-card: use asoc_simple_card_of_parse_tdm()

2017-06-13 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple card drivers are using asoc_simple_dai's tx_slot_mask, rx_slot_mask, slots, slot_width directly to parse TDM. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_tdm for it. Signed-off-by: Kuninori Morim

[PATCH 4/5] ASoC: audio-graph-card: use asoc_simple_card_of_parse_tdm()

2017-06-13 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple card drivers are using asoc_simple_dai's tx_slot_mask, rx_slot_mask, slots, slot_width directly to parse TDM. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_tdm for it. Signed-off-by: Kuninori Morim

[PATCH 3/5] ASoC: simple-scu-card: use asoc_simple_card_of_parse_tdm()

2017-06-13 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple card drivers are using asoc_simple_dai's tx_slot_mask, rx_slot_mask, slots, slot_width directly to parse TDM. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_tdm for it. Signed-off-by: Kuninori Morim

[PATCH 2/5] ASoC: simple-card: use asoc_simple_card_of_parse_tdm()

2017-06-13 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple card drivers are using asoc_simple_dai's tx_slot_mask, rx_slot_mask, slots, slot_width directly to parse TDM. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_of_parse_tdm for it. Signed-off-by: Kuninori Morim

[PATCH 1/5] ASoC: simple-card-utils: add asoc_simple_card_of_parse_tdm()

2017-06-13 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple card drivers are using asoc_simple_dai's tx_slot_mask, rx_slot_mask, slots, slot_width directly to parse TDM. Encapsulation is one of simple card util's purpose. Let's add asoc_simple_card_of_parse_tdm for it. Signed-off-by: Kuninori Morimot

[PATCH 0/5] ASoC: simple/graph card: use asoc_simple_card_of_parse_tdm()

2017-06-13 Thread Kuninori Morimoto
Hi Mark These are not a big deal, but current simple/graph card drivers are using asoc_simple_dai's tx_slot_mask, rx_slot_mask, slots, slot_width directly to parse TDM. Encapsulation is one of simple card util's purpose. These are cleanup for it. Kuninori Morimoto (5): ASoC: simple-

[PATCH] ASoC: ak4613: add missing 64000 in ak4613_dai_hw_params()

2017-06-13 Thread Kuninori Morimoto
From: Kuninori Morimoto Signed-off-by: Kuninori Morimoto --- sound/soc/codecs/ak4613.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/codecs/ak4613.c b/sound/soc/codecs/ak4613.c index c87ec49..27c44c7 100644 --- a/sound/soc/codecs/ak4613.c +++ b/sound/soc/codecs/ak4613.c

Re: Applied "ASoC: rsnd: don't call free_irq() on Parent SSI" to the asoc tree

2017-06-13 Thread Kuninori Morimoto
t; How to handle it ? can you cherry-pick it to mark/fix/rcar or can I > > post it ? > > I picked it over. Thank you Best regards --- Kuninori Morimoto

Re: Applied "ASoC: rsnd: don't call free_irq() on Parent SSI" to the asoc tree

2017-06-11 Thread Kuninori Morimoto
against current git, existing > patches will not be replaced. > > Please add any relevant lists and maintainers to the CCs when replying > to this mail. > > Thanks, > Mark > > From 1f8754d4daea5f257370a52a30fcb22798c54516 Mon Sep 17 00:00:00 2001 > From: Kuninori Mori

[PATCH 5/5] ASoC: audio-graph-card: use asoc_simple_card_clk_xxx()

2017-06-08 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card-utils sets asoc_simple_dai::clk via asoc_simple_card_parse_clk(). Current simple card drivers are using it directly for clk_enable/disable. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_clk_enable/disable.

[PATCH 4/5] ASoC: audio-graph-scu-card: use asoc_simple_card_clk_xxx()

2017-06-08 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card-utils sets asoc_simple_dai::clk via asoc_simple_card_parse_clk(). Current simple card drivers are using it directly for clk_enable/disable. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_clk_enable/disable.

[PATCH 3/5] ASoC: simple-scu-card: use asoc_simple_card_clk_xxx()

2017-06-08 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card-utils sets asoc_simple_dai::clk via asoc_simple_card_parse_clk(). Current simple card drivers are using it directly for clk_enable/disable. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_clk_enable/disable.

[PATCH 2/5 v2] ASoC: simple-card: use asoc_simple_card_clk_xxx()

2017-06-08 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card-utils sets asoc_simple_dai::clk via asoc_simple_card_parse_clk(). Current simple card drivers are using it directly for clk_enable/disable. Encapsulation is one of simple card util's purpose. Let's use asoc_simple_card_clk_enable/disable.

[PATCH 1/5 v2] ASoC: simple_card_utils: add asoc_simple_card_clk_xxx()

2017-06-08 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card-utils sets asoc_simple_dai::clk via asoc_simple_card_parse_clk(). Current simple card drivers are using it directly for clk_enable/disable. Encapsulation is one of simple card util's purpose. Let's encapsulate it. Signed-off-by: Kuninor

[PATCH 0/5] ASoC: add/use asoc_simple_card_clk_xxx()

2017-06-08 Thread Kuninori Morimoto
h card clk related code now. Kuninori Morimoto (5): ASoC: simple_card_utils: add asoc_simple_card_clk_xxx() ASoC: simple-card: use asoc_simple_card_clk_xxx() ASoC: simple-scu-card: use asoc_simple_card_clk_xxx() ASoC: audio-graph-scu-card: use asoc_simple_card_clk_xxx() ASoC: audio-graph

[PATCH] ASoC: rsnd: add detail explanation of L/R conversion timing

2017-06-08 Thread Kuninori Morimoto
From: Kuninori Morimoto Renesas Sound device *Hardware* L/R and Linux *Software* L/R are inverted. Because of this background, it needs to convert L/R. Then, DVC needs *Hardware* L/R, and Linux needs *Software* L/R. Because Playback/Capture needs different timing, and there is no explanation

Re: [PATCH 1/5] ASoC: simple_card_utils: add asoc_simple_card_clk_enable/disable()

2017-06-08 Thread Kuninori Morimoto
erence to the generated code but it's a bit more > type safe. OK, will do in v2 Best regards --- Kuninori Morimoto

[PATCH 2/2] ASoC: simple-scu-card: remove duplicate paramera from asoc_simple_card_parse_of

2017-06-06 Thread Kuninori Morimoto
From: Kuninori Morimoto Signed-off-by: Kuninori Morimoto --- sound/soc/generic/simple-scu-card.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/generic/simple-scu-card.c b/sound/soc/generic/simple-scu-card.c index a6a35b0..44da691 100644 --- a/sound/soc

[PATCH] ASoC: simple-card: remove duplicate parameter from asoc_simple_card_parse_of()

2017-06-06 Thread Kuninori Morimoto
From: Kuninori Morimoto Signed-off-by: Kuninori Morimoto --- sound/soc/generic/simple-card.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c index 9453232..ca2b1a7 100644 --- a/sound/soc/generic/simple

[PATCH 5/5] ASoC: audio-graph-card: use asoc_simple_card_clk_enable/disable()

2017-06-06 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card-utils sets asoc_simple_dai::clk via asoc_simple_card_parse_clk(), and requested parameter is only simple_dai. But current simple card drivers are using simple_dai::clk directly for clk_enable/disable. Encapsulation is one of simple card util's pu

[PATCH 4/5] ASoC: audio-graph-scu-card: use asoc_simple_card_clk_enable/disable()

2017-06-06 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card-utils sets asoc_simple_dai::clk via asoc_simple_card_parse_clk(), and requested parameter is only simple_dai. But current simple card drivers are using simple_dai::clk directly for clk_enable/disable. Encapsulation is one of simple card util's pu

[PATCH 3/5] ASoC: simple-scu-card: use asoc_simple_card_clk_enable/disable()

2017-06-06 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card-utils sets asoc_simple_dai::clk via asoc_simple_card_parse_clk(), and requested parameter is only simple_dai. But current simple card drivers are using simple_dai::clk directly for clk_enable/disable. Encapsulation is one of simple card util's pu

[PATCH 2/5] ASoC: simple-card: use asoc_simple_card_clk_enable/disable()

2017-06-06 Thread Kuninori Morimoto
From: Kuninori Morimoto Current simple-card-utils sets asoc_simple_dai::clk via asoc_simple_card_parse_clk(), and requested parameter is only simple_dai. But current simple card drivers are using simple_dai::clk directly for clk_enable/disable. Encapsulation is one of simple card util's pu

<    1   2   3   4   5   6   7   8   9   10   >