]> git.alsa-project.org Git - alsa-lib.git/commit
topology: Define new type and section name to configure physical links
authorMengdong Lin <mengdong.lin@linux.intel.com>
Sun, 6 Nov 2016 05:13:36 +0000 (13:13 +0800)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Nov 2016 15:33:18 +0000 (16:33 +0100)
commitf5b275b24c4c99c4b4458b4c80f6f1c1b013bb5d
treed99716802537bad48452c16d19436dda23222905
parentcb9451b8e790c0bab32983f2b500f94cb97e965c
topology: Define new type and section name to configure physical links

Users may not use DPCM but still need to configure the physical links.
So we should not only consider backend links for DPCM.

- SND_TPLG_TYPE_LINK is defined to configure physical links by C API.
  And SND_TPLG_TYPE_BE is still supported to configure Backend links for
  DPCM cases.

- SectionLink can be used to configure physical links in text conf file.
  And SectionBE is still supported to config Backend links for DPCM cases.

Actually, users can use SND_TPLG_TYPE_LINK and SectionLink to configure
backend links for DPCM cases, because BE links are also physical links.
The parsing is same and we rename the function from tplg_parse_be to
tplg_parse_link.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/topology.h
src/topology/parser.c
src/topology/pcm.c
src/topology/tplg_local.h