|
|
@@ -200,8 +200,12 @@ int asoc_simple_card_parse_clk(struct device *dev,
|
|
|
if (of_property_read_bool(node, "system-clock-direction-out"))
|
|
|
simple_dai->clk_direction = SND_SOC_CLOCK_OUT;
|
|
|
|
|
|
- dev_dbg(dev, "%s : sysclk = %d, direction %d\n", name,
|
|
|
- simple_dai->sysclk, simple_dai->clk_direction);
|
|
|
+ if (!of_property_read_u32(node, "system-clock-id", &val))
|
|
|
+ simple_dai->sysclk_id = val;
|
|
|
+
|
|
|
+ dev_dbg(dev, "%s : sysclk-%d = %d, direction %d\n", name,
|
|
|
+ simple_dai->sysclk_id, simple_dai->sysclk,
|
|
|
+ simple_dai->clk_direction);
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
|
@@ -313,7 +317,8 @@ int asoc_simple_card_init_dai(struct snd_soc_dai *dai,
|
|
|
int ret;
|
|
|
|
|
|
if (simple_dai->sysclk) {
|
|
|
- ret = snd_soc_dai_set_sysclk(dai, 0, simple_dai->sysclk,
|
|
|
+ ret = snd_soc_dai_set_sysclk(dai, simple_dai->sysclk_id,
|
|
|
+ simple_dai->sysclk,
|
|
|
simple_dai->clk_direction);
|
|
|
if (ret && ret != -ENOTSUPP) {
|
|
|
dev_err(dai->dev, "simple-card: set_sysclk error\n");
|