ASoC: rockchip: multicodecs: remove MAX_CODECS

a soundcard can connected more than 2 codecs.

Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: Ie42d54e33c1be58582350ec24165d5310347b4d2
This commit is contained in:
XiaoTan Luo
2022-06-15 18:13:41 +08:00
committed by Tao Huang
parent f72f13b4ce
commit 046993ac20

View File

@@ -39,7 +39,6 @@
#include <sound/soc-dapm.h>
#define DRV_NAME "rk-multicodecs"
#define MAX_CODECS 2
#define WAIT_CARDS (SNDRV_CARDS - 1)
#define DEFAULT_MCLK_FS 256
@@ -620,7 +619,7 @@ static int rk_multicodecs_probe(struct platform_device *pdev)
card->num_aux_devs = 0;
count = of_count_phandle_with_args(np, "rockchip,codec", NULL);
if (count < 0 || count > MAX_CODECS)
if (count < 0)
return -EINVAL;
/* refine codecs, remove unavailable node */