Re: [PATCH 0/6] of_graph_get_remote_endpoint()

2017-01-19 Thread Kuninori Morimoto
Hi Rob > This looks okay, but I think we need to be improving the graph api at > a higher level. Each user seems to be doing too much open coding of > walking of the graph. The user typically just wants the remote node > parent of a given port and endpoint number. Why does the user walk the >

[PATCH] thermal: rcar_thermal: don't call thermal_zone_device_unregister when USE_OF_THERMAL

2016-08-21 Thread Kuninori Morimoto
; Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- drivers/thermal/rcar_thermal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 4d07644..b5c6442 100644 --- a/drivers/thermal/rc

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Kuninori Morimoto
Hi Zhang > > > > > From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> > > > > > > > > > > rcar-thermal is supporting both > > > > > thermal_zone_of_sensor_register() > > > > > and > > > > > t

Re: [PATCH v2 2/2] MAINTAINERS: document ASoC header files

2016-08-24 Thread Kuninori Morimoto
> match them. > > Signed-off-by: Nicolas Iooss <nicolas.iooss_li...@m4x.org> > --- Acked-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>

Re: [PATCH 2/5 v2] thermal: rcar_gen3_thermal: Add R-Car Gen3 thermal driver

2016-09-04 Thread Kuninori Morimoto
arm64: defconfig: Enable R-Car Gen3 thermal support For all patches Acked-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> > +static int rcar_gen3_thermal_get_temp(void *devdata, int *temp) > +{ > + struct rcar_gen3_thermal_priv *priv = devdata; > + in

Re: [PATCH 2/2 v2][resend] drm: bridge: add DesignWare HDMI I2S audio support

2016-09-16 Thread Kuninori Morimoto
Hi Mark Can I have feedback about this patch ? > From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> > > Current dw-hdmi is supporting sound via AHB bus, but it has > I2S audio feature too. This patch adds I2S audio support to dw-hdmi. > This HDMI I2S is suppor

Re: [PATCH] ASoC: simple-card: add support for aux devices

2016-09-22 Thread Kuninori Morimoto
c-det-gpio : Reference to GPIO that signals when > a microphone is attached. > +- simple-audio-card,aux-devs : List of phandles pointing to > auxiliary devices, such > + as amplifiers, to be added to the > sound card. > > Optional subnodes: I think it is very helpful if this document has above sample Best regards --- Kuninori Morimoto

Re: [PATCH] ASoC: cq93vc: duplicated callback function goes to component

2016-09-22 Thread Kuninori Morimoto
Arnd Bergmann <a...@arndb.de> > --- Sorry about that Acked-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>

Re: [PATCH 2/2] thermal: rcar-thermal: enable hwmon when thermal_zone

2016-08-24 Thread Kuninori Morimoto
Hi Zhang > > > From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> > > > > > > rcar-thermal is supporting both thermal_zone_of_sensor_register() > > > and > > > thermal_zone_device_register(). But > > > thermal_zon

Re: [PATCH 2/2] MAINTAINERS: document ASoC header files

2016-08-23 Thread Kuninori Morimoto
ilar ? It can be just 1 line :) include/sound/simple*card* Best regards --- Kuninori Morimoto

[PATCH 2/2] ASoC: cq93vc: remove MFD_DAVINCI_VOICECODEC dependency from CQ0093VC

2016-10-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> CQ0093VC is no longer dependent on MFD_DAVINCI_VOICECODEC, let's remove it. Otherwise, we can't compile it by COMPILE_TEST on non-DAVINCE platform Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- soun

[PATCH 0/2] ASoC: cq93vc: enable compiling on COMPILE_TEST

2016-10-27 Thread Kuninori Morimoto
+ shmobile_defconfig + COMPILE_TEST. Kuninori Morimoto (2): mfd: davinci_voicecodec: tidyup header difinitions ASoC: cq93vc: remove MFD_DAVINCI_VOICECODEC dependency for CQ0093VC drivers/mfd/davinci_voicecodec.c | 1 + include/linux/mfd/davinci_voicecodec.h | 4 sound/soc/codecs/Kconfig

[PATCH 1/2] mfd: davinci_voicecodec: tidyup header difinitions

2016-10-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> mach/hardware.h is needed on C source code side, not header. And struct davinci_vc is duplicated definition. Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- drivers/mfd/davinci_voicecodec.c |

Re: [PATCH v4] drm: bridge: add DesignWare HDMI I2S audio support

2016-11-08 Thread Kuninori Morimoto
Hi Russell > > @@ -11,4 +11,11 @@ struct dw_hdmi_audio_data { > > u8 *eld; > > }; > > > > +struct dw_hdmi_i2s_audio_data { > > + struct dw_hdmi *hdmi; > > + > > + void (*write)(struct dw_hdmi *hdmi, u8 val, int offset); > > + u8 (*read)(struct dw_hdmi *hdmi, int offset); > > +}; >

Re: [PATCH v3] drm: bridge: add DesignWare HDMI I2S audio support

2016-11-06 Thread Kuninori Morimoto
Hi Russell > > + platform = platform_device_register_full(); > > + if (IS_ERR_OR_NULL(platform)) > > + return PTR_ERR(platform); > > This is wrong. If platform is NULL, PTR_ERR() will return zero, which > will be interpreted as success. Please, avoid using IS_ERR_OR_NULL(), > it

Re: [PATCH 14/17] ASoC: add simple-graph-card document

2016-11-06 Thread Kuninori Morimoto
Hi Mark > This document really needs quite a bit of fleshing out but I'm not sure > that should be a blocker for the series as a whole especially given that > English is not your native language - we can build out later. I think I'm sorry about my English... > One thing I'm not 100% clear on

Re: [PATCH v3] drm: bridge: add DesignWare HDMI I2S audio support

2016-11-07 Thread Kuninori Morimoto
); > > if (IS_ERR(platform)) > > return PTR_ERR(platform); > > Yes, that's exactly correct. Thanks ! I will send v4 patch Best regards --- Kuninori Morimoto

[PATCH v4] drm: bridge: add DesignWare HDMI I2S audio support

2016-11-07 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Current dw-hdmi is supporting sound via AHB bus, but it has I2S audio feature too. This patch adds I2S audio support to dw-hdmi. This HDMI I2S is supported by using ALSA SoC common HDMI encoder driver. Tested-by: Jose Abreu

[PATCH v3 08/17] of_graph: add of_graph_get_top_port()

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> driver want to get top level of port[s] node. This patch adds of_graph_get_top_port() for this purpose Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- v2 -> v3 - no change drivers/of/bas

[PATCH v3 17/17] ASoC: add simple-graph-scu-card support

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> graph base DT binding are used on V4L2, and ALSA SoC is using different style of DT. In case of simple case, ALSA SoC supports simple-card driver. In the future, V4L2 / ALSA will support HDMI, and then, DT bindings between V4L2

[PATCH v3 12/17] ASoC: simple-card-utils: add asoc_simple_card_try_to_probe_graph_card()

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> If CPU/Platform side driver probes successfully, and if it is supporting both previous normal sound card style and graph style DT, it can call asoc_simple_card_try_to_probe_graph_card(). It checks graph style DT, and do n

[PATCH v3 13/17] ASoC: simple-card-utils: adjust for graph on asoc_simple_card_parse_card_name

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It is assuming that the card related information is located on "card" node, but graph case doesn't have it. This patch adds node parameter to adjust for graph support Signed-off-by: Kuninori Morimoto <kuninori.mori

[PATCH v3 10/17] of_graph: add of_graph_get_port/endpoint_count()

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> OF graph want to count its port/endpoint number, same as of_get_child_count(). This patch adds these functions. Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- v2 -> v3 - no change dr

[PATCH v3 09/17] of_graph: add for_each_of_port() / for_each_of_endpoint_in_port()

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> OF graph is used mainly from V4L2, but ALSA needs to use it. It already has for_each_endpoint_of_node() which is for-loop for each endpoint. But, ALSA needs for-loop for each port[s], and for-loop for each endpoint of inside

[PATCH v3 11/17] ASoC: simple-card-utils: add asoc_simple_card_parse_graph_dai()

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> simple-card already has asoc_simple_card_parse_dai(), but graph base parsing needs graph specific version of it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- v2 -> v3 - no change

[PATCH v3 02/17] ASoC: soc-core: adjust for graph on snd_soc_of_parse_audio_simple_widgets

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It is assuming that the card related information is located on "card" node, but graph case doesn't have it. This patch adds node parameter to adjust for graph support Signed-off-by: Kuninori Morimoto <kuninori.mori

[PATCH v3 01/17] ASoC: soc-core: adjust for graph on snd_soc_of_parse_card_name

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It is assuming that the card related information is located on "card" node, but graph case doesn't have it. This patch adds node parameter to adjust for graph support Signed-off-by: Kuninori Morimoto <kuninori.mori

[PATCH v3 00/17] ASoC: add OF graph base simple-card

2016-11-10 Thread Kuninori Morimoto
c/core and topic/simple, both. Please let me know if you can't do it. *** BLURB HERE *** Kuninori Morimoto (17): 1) ASoC: soc-core: adjust for graph on snd_soc_of_parse_card_name 2) ASoC: soc-core: adjust for graph on snd_soc_of_parse_audio_simple_widgets 3) ASoC: soc-core: adjust for

[PATCH v3 07/17] of_graph: add of_graph_get_port_parent()

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Linux kernel already has of_graph_get_remote_port_parent(), but, sometimes we want to get own port parent. This patch adds of_graph_get_port_parent() Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>

[PATCH v3 15/17] ASoC: add simple-graph-card support

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> graph base DT binding are used on V4L2, and ALSA SoC is using different style of DT. In case of simple case, ALSA SoC supports simple-card driver. In the future, V4L2 / ALSA will support HDMI, and then, DT bindings between V4L2

[PATCH v3 04/17] ASoC: soc-core: adjust for graph on snd_soc_of_parse_audio_prefix

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It is assuming that the card related information is located on "card" node, but graph case doesn't have it. This patch adds node parameter to adjust for graph support Signed-off-by: Kuninori Morimoto <kuninori.mori

[PATCH v3 16/17] ASoC: add simple-graph-scu-card document

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- v2 -> v3 - Added how to use Simple-Graph-SCU-Card, and cleaned-up .../bindings/sound/simple-graph-scu-card.txt | 65 ++

[PATCH v3 03/17] ASoC: soc-core: adjust for graph on snd_soc_of_parse_audio_routing

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It is assuming that the card related information is located on "card" node, but graph case doesn't have it. This patch adds node parameter to adjust for graph support Signed-off-by: Kuninori Morimoto <kuninori.mori

[PATCH v3 14/17] ASoC: add simple-graph-card document

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- v2 -> v3 - Added how to use Simple-Graph-Card, and cleanup .../bindings/sound/simple-graph-card.txt | 65 ++ 1 f

[PATCH v3 05/17] ASoC: soc-core: snd_soc_get_dai_name() become non static

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> snd_soc_get_dai_name() is used from snd_soc_of_get_dai_name(), and it is assuming that DT is using "sound-dai" / "#sound-dai-cells". But graph base DT is using "remote-endpoint". This patch mak

[PATCH v3 06/17] of_graph: add of_graph_get_remote_endpoint()

2016-11-10 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It should use same method to get same result. To getting remote-endpoint node, let's use of_graph_get_remote_endpoint() Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- v2 -> v3 - no change dr

Re: [PATCH 20/23] ASoC: add simple-graph-card document

2016-10-19 Thread Kuninori Morimoto
Hi Rob Thank you for your feedback > > Do you mean "on this sample" ? or in general ? > > Indeed this sample is definitely for sound, so type is very clear > > without property. > > But in general, for example HDMI, it want to know port type. > > Anyway, I can remove above "type" from this new

Re: [alsa-devel] [PATCH 0/23] ASoC: add OF graph base simple-card

2016-10-18 Thread Kuninori Morimoto
in a module or in the simple-card-utils. We can replace few drivers to use it. I will post it if these were accepted. And let's follow Rob's opinion. Actually, these patches had posted few month ago, and these already got OK from him. Best regards --- Kuninori Morimoto

[PATCH v2][resend v2] drm: bridge: add DesignWare HDMI I2S audio support

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Current dw-hdmi is supporting sound via AHB bus, but it has I2S audio feature too. This patch adds I2S audio support to dw-hdmi. This HDMI I2S is supported by using ALSA SoC common HDMI encoder driver. Tested-by: Jose Abreu

[PATCH 0/23] ASoC: add OF graph base simple-card

2016-10-17 Thread Kuninori Morimoto
about usecase. 18) - 23) can be usecase for it. 1) - 10) are independent (= Mark) 11) - 17) are independent (= Rob) 18) - 23) are depends on 1) - 10) and 11) - 17) (= Mark) Kuninori Morimoto (23): 1) ASoC: simple-scu-card: code sync: follow to simple family style 2) ASoC: simple-scu

[PATCH 01/23] ASoC: simple-scu-card: code sync: follow to simple family style

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> simple sound card family are using very similar style, but because of its historical reason, there are small differences. For example pointer style, function name, caller postion etc... This patch synchronized simple card style to

[PATCH 02/23] ASoC: simple-scu-card: code sync: rename asoc_simple_card_priv

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> simple sound card family are using very similar style, but because of its historical reason, there are small differences. For example pointer style, function name, caller postion etc... This patch synchronized simple card style to

[PATCH 04/23] ASoC: soc-core: adjust for graph on snd_soc_of_parse_card_name

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It is assuming that the card related information is located on "card" node, but graph case doesn't have it. This patch adds node parameter to adjust for graph support Signed-off-by: Kuninori Morimoto <kuninori.mori

[PATCH 03/23] ASoC: simple-scu-card: code sync: tidyup props/link naming

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> simple sound card family are using very similar style, but because of its historical reason, there are small differences. For example pointer style, function name, caller postion etc... This patch synchronizes style to other simpl

[PATCH 07/23] ASoC: soc-core: adjust for graph on snd_soc_of_parse_audio_prefix

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It is assuming that the card related information is located on "card" node, but graph case doesn't have it. This patch adds node parameter to adjust for graph support Signed-off-by: Kuninori Morimoto <kuninori.mori

[PATCH 09/23] ASoC: simple-card-utils: remove unnecessary cpu/codec pointer check

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Remove cpu/codec pointer check from asoc_simple_card_canonicalize_dailink() This is verbose check, and will be issue if CPU name was created by fmt_single_name() on simple-scu-card.c. see also asoc_simple_card_canonicalize_cpu()

[PATCH 10/23] ASoC: simple-card-utils: adjust for graph on asoc_simple_card_parse_card_name

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It is assuming that the card related information is located on "card" node, but graph case doesn't have it. This patch adds node parameter to adjust for graph support Signed-off-by: Kuninori Morimoto <kuninori.mori

[PATCH 08/23] ASoC: soc-core: snd_soc_get_dai_name() become non static

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> snd_soc_get_dai_name() is used from snd_soc_of_get_dai_name(), and it is assuming that DT is using "sound-dai" / "#sound-dai-cells". But graph base DT is using "remote-endpoint". This patch mak

[PATCH 11/23] Documentation: of: add type property

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> OF graph indicates each devices connection. But it doesn't support type of each port. For example HDMI case, it has video port and sound port in one device node. In this case, current driver can't handle each port correctly. This

[PATCH 06/23] ASoC: soc-core: adjust for graph on snd_soc_of_parse_audio_routing

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It is assuming that the card related information is located on "card" node, but graph case doesn't have it. This patch adds node parameter to adjust for graph support Signed-off-by: Kuninori Morimoto <kuninori.mori

[PATCH 05/23] ASoC: soc-core: adjust for graph on snd_soc_of_parse_audio_simple_widgets

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It is assuming that the card related information is located on "card" node, but graph case doesn't have it. This patch adds node parameter to adjust for graph support Signed-off-by: Kuninori Morimoto <kuninori.mori

[PATCH 23/23] ASoC: add simple-graph-scu-card support

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> graph base DT binding are used on V4L2, and ALSA SoC is using different style of DT. In case of simple case, ALSA SoC supports simple-card driver. In the future, V4L2 / ALSA will support HDMI, and then, DT bindings between V4L2

[PATCH 21/23] ASoC: add simple-graph-card support

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> graph base DT binding are used on V4L2, and ALSA SoC is using different style of DT. In case of simple case, ALSA SoC supports simple-card driver. In the future, V4L2 / ALSA will support HDMI, and then, DT bindings between V4L2

[PATCH 16/23] of_graph: add for_each_of_port() / for_each_of_endpoint_in_port()

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> OF graph is used mainly from V4L2, but ALSA needs to use it. It already has for_each_endpoint_of_node() which is for-loop for each endpoint. But, ALSA needs for-loop for each port[s], and for-loop for each endpoint of inside

[PATCH 20/23] ASoC: add simple-graph-card document

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- .../bindings/sound/simple-graph-card.txt | 65 ++ 1 file changed, 65 insertions(+) create mode 100644 Documentatio

[PATCH 12/23] of_graph: add of_graph_get_remote_endpoint()

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It should use same method to get same result. To getting remote-endpoint node, let's use of_graph_get_remote_endpoint() Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- drivers/of/base.c

[PATCH 22/23] ASoC: add simple-graph-scu-card document

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- .../bindings/sound/simple-graph-scu-card.txt | 66 ++ 1 file changed, 66 insertions(+) create mode 100644 Documentatio

[PATCH 19/23] ASoC: simple-card-utils: add asoc_simple_card_try_to_probe_graph_card()

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> If CPU/Platform side driver probes successfully, and if it is supporting both previous normal sound card style and graph style DT, it can call asoc_simple_card_try_to_probe_graph_card(). It checks graph style DT, and do n

[PATCH 15/23] of_graph: add of_graph_get_top_port()

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> driver want to get top level of port[s] node. This patch adds of_graph_get_top_port() for this purpose Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- drivers/of/base.c

[PATCH 14/23] of_graph: add of_graph_get_port_parent()

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Linux kernel already has of_graph_get_remote_port_parent(), but, sometimes we want to get own port parent. This patch adds of_graph_get_port_parent() Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>

[PATCH 13/23] of_graph: add of_graph_port_type_is()

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> OF graph indicates each devices connection. But it doesn't support type of each port. For example HDMI case, it has video port and sound port in one device node. In this case, current driver can't handle each port correctly. This

[PATCH 17/23] of_graph: add of_graph_get_endpoint_count()

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> OF graph want to count its endpoint number, same as of_get_child_count(). This patch adds of_graph_get_endpoint_count() which can check specific type. It will count all endpoint if type was NULL. Signed-off-by: Kuninori Mo

[PATCH 18/23] ASoC: simple-card-utils: add asoc_simple_card_parse_graph_dai()

2016-10-17 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> simple-card already has asoc_simple_card_parse_dai(), but graph base parsing needs graph specific version of it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- include/sound/simple_card_util

Re: [PATCH 20/23] ASoC: add simple-graph-card document

2016-10-20 Thread Kuninori Morimoto
simple-audio-card,frame-master = <_ak4613_port>; > }; > port@1 { > simple-audio-card,format = "i2s"; > simple-audio-card,bitclock-master = <_hdmi0_port>; > simple-audio-card,frame-master = <_hdmi0_port>; > }; > port@2 { > simple-audio-card,format = "i2s"; > simple-audio-card,bitclock-master = <_hdmi1_port>; > simple-audio-card,frame-master = <_hdmi1_port>; > }; > }; > > Best regards > --- > Kuninori Morimoto

Re: [PATCH 0/4 v2] Audio support for adv7511 hdmi bridge

2016-10-18 Thread Kuninori Morimoto
Hi Laurent, John, > > Here's what I'm using to get it working: > > https://git.linaro.org/people/john.stultz/android-dev.git/commitdiff/1024cb4 > > 85b6f00a7e355ce60425f04a584481148 > > Thank you. > > We need to standardize DT bindings for HDMI sound output. Morimoto-san, could > you have a

Re: [PATCH 20/23] ASoC: add simple-graph-card document

2016-10-18 Thread Kuninori Morimoto
card,format = "i2s"; simple-audio-card,bitclock-master = <_hdmi0_port>; simple-audio-card,frame-master = <_hdmi0_port>; }; port@2 { simple-audio-card,format = "i2s"; simple-audio-card,bitclock-master = <_hdmi1_port>; simple-audio-card,frame-master = <_hdmi1_port>; }; }; Best regards --- Kuninori Morimoto

Re: [alsa-devel] [PATCH v2] clkdev: add devm_of_clk_get()

2016-11-23 Thread Kuninori Morimoto
, > struct device_node *child); Thanks. I will check above 2 ideas. Best regards --- Kuninori Morimoto

Re: [PATCH v4] drm: bridge: add DesignWare HDMI I2S audio support

2016-11-23 Thread Kuninori Morimoto
Hi Archit, David, and DRM ML I had heared that Archit is the maintainer of dw-hdmi driver, but am I wrong ?? I'm posting this patch series since half year ago, but no response from him, and nothing happen (I got review from Russell though). Is Archit really maintainer ?? OTOH, get_maintainer.pl

Re: [alsa-devel] [PATCH v2] clkdev: add devm_of_clk_get()

2016-11-23 Thread Kuninori Morimoto
rom_child(struct device *dev, > > const char *con_id, > > struct device_node *child); Thanks, but, my point is that Linux already have "of_clk_get()", but we don't have its devm_ version. The point is that of_clk_get() can get clock from "device_node". Why having devm_ version become so problem ? Best regards --- Kuninori Morimoto

Re: [PATCH v4 00/12] ASoC: add OF graph base simple-card

2016-11-21 Thread Kuninori Morimoto
Hi Rob > These are v4 of OF graph base simple-card patch-set. > v3 patch had ALSA SoC side prepare patches as [1/xx] - [5/xx], > but these are already accepted by Mark, thus, this v4 doesn't > include these. > Mainly, v4 solved non-OF case compile error which was reported > by kbuild. About

Re: [PATCH v4] drm: bridge: add DesignWare HDMI I2S audio support

2016-11-24 Thread Kuninori Morimoto
Hi Archit > > I had heared that Archit is the maintainer of dw-hdmi driver, but am I > > wrong ?? > > I'm posting this patch series since half year ago, but no response > > from him, and nothing happen (I got review from Russell though). > > Is Archit really maintainer ?? > > OTOH,

Re: [PATCH] drm: bridge: dw-hdmi: add ASoC dependency

2016-11-27 Thread Kuninori Morimoto
Fixes: 2761ba6c0925 ("drm: bridge: add DesignWare HDMI I2S audio support") > Signed-off-by: Arnd Bergmann <a...@arndb.de> > --- Acked-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> > drivers/gpu/drm/bridge/Kconfig | 1 + > 1 file changed, 1 inser

[PATCH v4] clkdev: add devm_of_clk_get()

2016-11-28 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Current Linux has of_clk_get(), but doesn't have devm_of_clk_get(). This patch adds it. It is implemeted in clk-devres.c to share devm_clk_release(). Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>

[PATCH v5 02/14] of_graph: add of_graph_get_remote_endpoint()

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It should use same method to get same result. To getting remote-endpoint node, let's use of_graph_get_remote_endpoint() Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- drivers/of/base.c

[PATCH v5 01/14] Documentation: of: add type property

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> OF graph indicates each devices connection. But it doesn't support type of each port. For example HDMI case, it has video port and sound port in one device node. In this case, current driver can't handle each port correctly. This

[PATCH v2] clkdev: add devm_of_clk_get()

2016-11-27 Thread Kuninori Morimoto
Current Linux has of_clk_get(), but doesn't have devm_of_clk_get(). This patch adds it. This is based on devm_clk_get() Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- v1 -> v2 - update git log drivers/clk/clkdev.c | 26 ++ include/li

[PATCH v5 00/14] ASoC: add OF graph base simple-card

2016-11-27 Thread Kuninori Morimoto
ound had 2 ports, this case, HDMI sound ports will be port@4, port@5. Here, ALSA SoC side needs to know total 2 sound port, and, it should be handled as 1st / 2nd port. It is impossible without "type" property. 1) - 7) : OF graph new feature 8) - 14) : OF graph base simple-card K

[PATCH v5 12/14] ASoC: add simple-graph-card support

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> graph base DT binding are used on V4L2, and ALSA SoC is using different style of DT. In case of simple case, ALSA SoC supports simple-card driver. In the future, V4L2 / ALSA will support HDMI, and then, DT bindings between V4L2

[PATCH v5 06/14] of_graph: add for_each_of_port() / for_each_of_endpoint_in_port()

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> OF graph is used mainly from V4L2, but ALSA needs to use it. It already has for_each_endpoint_of_node() which is for-loop for each endpoint. But, ALSA needs for-loop for each port[s], and for-loop for each endpoint of inside

[PATCH v5 04/14] of_graph: add of_graph_get_port_parent()

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Linux kernel already has of_graph_get_remote_port_parent(), but, sometimes we want to get own port parent. This patch adds of_graph_get_port_parent() Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>

[PATCH v5 05/14] of_graph: add of_graph_get_top_port()

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> driver want to get top level of port[s] node. This patch adds of_graph_get_top_port() for this purpose Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- drivers/of/base.c

[PATCH v5 08/14] ASoC: simple-card-utils: adjust for graph on asoc_simple_card_parse_card_name

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It is assuming that the card related information is located on "card" node, but graph case doesn't have it. This patch adds node parameter to adjust for graph support Signed-off-by: Kuninori Morimoto <kuninori.mori

[PATCH v5 10/14] ASoC: simple-card-utils: add asoc_simple_card_try_to_probe_graph_card()

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> If CPU/Platform side driver probes successfully, and if it is supporting both previous normal sound card style and graph style DT, it can call asoc_simple_card_try_to_probe_graph_card(). It checks graph style DT, and do n

[PATCH v5 03/14] of_graph: add of_graph_port_type_is()

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> OF graph indicates each devices connection. But it doesn't support type of each port. For example HDMI case, it has video port and sound port in one device node. In this case, current driver can't handle each port correctly. This

[PATCH v5 11/14] ASoC: add simple-graph-card document

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- .../bindings/sound/simple-graph-card.txt | 67 ++ 1 file changed, 67 insertions(+) create mode 100644 Documentatio

[PATCH v5 09/14] ASoC: simple-card-utils: add asoc_simple_card_parse_graph_dai()

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> simple-card already has asoc_simple_card_parse_dai(), but graph base parsing needs graph specific version of it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- include/sound/simple_card_util

[PATCH v5 07/14] of_graph: add of_graph_get_endpoint_count()

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> OF graph want to count its endpoint number, same as of_get_child_count(). This patch adds of_graph_get_endpoint_count() which can check specific type. It will count all endpoint if type was NULL. Signed-off-by: Kuninori Mo

Re: [PATCH v5 09/14] ASoC: simple-card-utils: add asoc_simple_card_parse_graph_dai()

2016-11-27 Thread Kuninori Morimoto
> https://github.com/0day-ci/linux/commits/Kuninori-Morimoto/ASoC-add-OF-graph-base-simple-card/20161128-111639 > base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git > for-next > config: i386-randconfig-x002-201648 (attached as .config) > compiler: gcc-6 (Debian

[PATCH v5 13/14] ASoC: add simple-graph-scu-card document

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- .../bindings/sound/simple-graph-scu-card.txt | 69 ++ 1 file changed, 69 insertions(+) create mode 100644 Documentatio

[PATCH v5 14/14] ASoC: add simple-graph-scu-card support

2016-11-27 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> graph base DT binding are used on V4L2, and ALSA SoC is using different style of DT. In case of simple case, ALSA SoC supports simple-card driver. In the future, V4L2 / ALSA will support HDMI, and then, DT bindings between V4L2

Re: [PATCH v2] clkdev: add devm_of_clk_get()

2016-11-28 Thread Kuninori Morimoto
Hi Russell > > Current Linux has of_clk_get(), but doesn't have devm_of_clk_get(). > > This patch adds it. This is based on devm_clk_get() > > > > Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> > > Please put this in drivers/clk/clk-d

[PATCH v3] clkdev: add devm_of_clk_get()

2016-11-28 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Current Linux has of_clk_get(), but doesn't have devm_of_clk_get(). This patch adds it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- v2 -> v3 - implement in clk-devres.c, and reused existing d

Re: [alsa-devel] [PATCH v2] clkdev: add devm_of_clk_get()

2016-11-15 Thread Kuninori Morimoto
only. Thus, we are using of_clk_get() for these now. > > > > clk = of_clk_get(cpu, xxx); > > clk = of_clk_get(codec, xxx); > > > > sound_soc { > > ... > > cpu { > > ... > > => clocks = <>; > > }; > > codec { > > ... > > => clocks = <>; > > }; > > }; Best regards --- Kuninori Morimoto

[PATCH v4 02/12] of_graph: add of_graph_get_port_parent()

2016-11-15 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> Linux kernel already has of_graph_get_remote_port_parent(), but, sometimes we want to get own port parent. This patch adds of_graph_get_port_parent() Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com>

[PATCH v4 03/12] of_graph: add of_graph_get_top_port()

2016-11-15 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> driver want to get top level of port[s] node. This patch adds of_graph_get_top_port() for this purpose Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- v3 -> v4 - care non-OF case drivers/of/bas

[PATCH v4 01/12] of_graph: add of_graph_get_remote_endpoint()

2016-11-15 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> It should use same method to get same result. To getting remote-endpoint node, let's use of_graph_get_remote_endpoint() Signed-off-by: Kuninori Morimoto <kuninori.morimoto...@renesas.com> --- v3 -> v4 - no change dr

[PATCH v4 12/12] ASoC: add simple-graph-scu-card support

2016-11-15 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> graph base DT binding are used on V4L2, and ALSA SoC is using different style of DT. In case of simple case, ALSA SoC supports simple-card driver. In the future, V4L2 / ALSA will support HDMI, and then, DT bindings between V4L2

Re: [PATCH v3 12/17] ASoC: simple-card-utils: add asoc_simple_card_try_to_probe_graph_card()

2016-11-15 Thread Kuninori Morimoto
Hi > [auto build test ERROR on asoc/for-next] > [also build test ERROR on v4.9-rc4 next-20161110] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] > > url: > https://github.com/0day-ci/linux/commits/Kuninori-Morim

[PATCH v4 00/12] ASoC: add OF graph base simple-card

2016-11-15 Thread Kuninori Morimoto
) : OF graph new feature 6) - 12) : OF graph base simple-card (depends on above 2 patch-set) Kuninori Morimoto (12): 1) of_graph: add of_graph_get_remote_endpoint() 2) of_graph: add of_graph_get_port_parent() 3) of_graph: add of_graph_get_top_port() 4) of_graph: add for_each_of_port

[PATCH v4 04/12] of_graph: add for_each_of_port() / for_each_of_endpoint_in_port()

2016-11-15 Thread Kuninori Morimoto
From: Kuninori Morimoto <kuninori.morimoto...@renesas.com> OF graph is used mainly from V4L2, but ALSA needs to use it. It already has for_each_endpoint_of_node() which is for-loop for each endpoint. But, ALSA needs for-loop for each port[s], and for-loop for each endpoint of inside

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