ASoC: rsnd: DVC kctrl sets once
authorKuninori Morimoto <[email protected]>
Sun, 1 Oct 2017 23:48:29 +0000 (23:48 +0000)
committerMark Brown <[email protected]>
Wed, 4 Oct 2017 10:50:29 +0000 (11:50 +0100)
commitb918f1bc7f1ce463d6fbb6ebf3db36bd302bded8
treefd4466372de01e2b8e3fdac5087cb59bd06ce05c
parentd0cf7fc948159a3eab9ad2e959cce7f06f2333df
ASoC: rsnd: DVC kctrl sets once

Same DVC might be used few times if system/platform is using MIX.
For example below case.

DAI0 playback = <&src0 &ctu02 &mix0 &dvc0 &ssi0>;
DAI1 playback = <&src2 &ctu03 &mix0 &dvc0 &ssi0>;

This case, ALSA will have DVC,0 and DVC,1 kcontrol interfaces,
but these are same DVC. This is confusing.
This patch adds new flags and avoid such case.

Signed-off-by: Kuninori Morimoto <[email protected]>
Tested-by: Hiroyuki Yokoyama <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/sh/rcar/dvc.c