[alsa-devel] [PATCH 0/4] ASoC: add graph base connection on simple-card

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Thu Apr 14 07:45:41 CEST 2016


Hi Mark

Current simple-card is using "sound-dai" base connection on DT,
but V4L2 is using graph base connection.
For example HDMI case, we would like to use both connection.
To above confusable connection method, and to reuse current resource,
this patch adds new function, and detect both "sound-dai" and "remote-endpoint"
on simple-card. like this

	sound {
		compatible = "simple-audio-card";
		...
		sndcpu: simple-audio-card,cpu {
			sound-dai = <&xxx>;
		};
		sndcodec: simple-audio-card,codec {
=>			remote-endpoint = <&out_hdmi>;
		};
	};

	xxx {
		...
		ports {
			...
			port at 0 {
				reg = <0>;
				out_rgb: endpoint {
				};
			};
			port at 1 {
				reg = <1>;
=>				out_hdmi: endpoint {
				};
			};
			...
		};
	};

Kuninori Morimoto (4):
      of_graph: add of_graph_get_endpoint_count()
      ASoC: add of_parse_snd_connection_with_args() for sound-dai/graph connection
      ASoC: snd_soc_of_get_dai_name() uses of_parse_snd_soc_connection_with_args()
      ASoC: simple-card: probe both sound-dai and remote-endpoint

 Documentation/devicetree/bindings/sound/simple-card.txt | 19 +++++++++++++++++++
 include/linux/of_graph.h                                | 11 +++++++++++
 include/sound/soc.h                                     |  2 ++
 sound/soc/generic/simple-card.c                         |  9 ++++++---
 sound/soc/soc-core.c                                    | 45 +++++++++++++++++++++++++++++++++++++++++++--
 5 files changed, 81 insertions(+), 5 deletions(-)


More information about the Alsa-devel mailing list