Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
ASoC: audio-graph-card2: add Audio Graph Card2 driver
We already have audio-graph-card which is Of-graph base of general sound card driver. It is also supporting DPCM connection, but is using very complex DT settings/parsing, thus, it is very difficult to add new features on it, for example Multi CPU/Codec support, Codec2Codec support, etc. This patch adds more flexible new Audio Graph Card2 driver for it. audio-graph-card and audio-graph-card2 are similar, but don't have full compatibility. Difference between audio-graph-card and audio-graph-card2 are - audio-graph-card used "dais" to indicate DAI-links, audio-graph-card2 uses "links" to it. - audio-graph-card used "phandle" to indicate bitclock/frame-master, audio-graph-card2 uses flag to it. - audio-graph-card used "format" to indicate DAI format, audio-graph-card2 assumes CPU/Codec drivers have .get_fmt support. Audio Graph Card2 supports very generic connection, but some users want to have its own settings, for example PLL settings, etc. For such case, it has customizing support. In users own driver, it can use Audio Graph Card2 parsing by using asoc_graph_parse_of2(), and doing its own customizing. Because Audio Graph Card2 is still under experimental stage, it will indicate such warning when probing, and the DT syntax might be changed. ASoC doesn't want to have duplicate drivers (= audio-graph-card vs audio-graph-card2). So my suggestion is that below step1) don't add new features to audio-graph-card, only bugfix. brash up audio-graph-card2 to be more stable. step2) indicates audio-graph-card will be removed in the future. switch to use audio-graph-card2 instead of audio-graph-card on each DT. step3) remove audio-graph-card if all users were switched to audio-graph-card2 Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
- Loading branch information