[alsa-devel] [PATCH 0/4] ASoC: add graph base connection on simple-card
Rob Herring
robh at kernel.org
Mon Apr 18 19:12:48 CEST 2016
On Thu, Apr 14, 2016 at 05:45:41AM +0000, Kuninori Morimoto wrote:
> 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>;
This is not valid usage of the graph binding. You are only using half of
it.
> };
> };
>
> 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(-)
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the Alsa-devel
mailing list