@@ -8,8 +8,8 @@ Required properties:
- clocks : Must contain an entry for each entry in clock-names.
- clock-names : A list which must include the following entries:
* "ahbix-clk"
- * "mi2s-osr-clk"
- * "mi2s-bit-clk"
+ * "mi2s-osr-clk4"
+ * "mi2s-bit-clk4"
: required clocks for "qcom,lpass-cpu-apq8016"
* "ahbix-clk"
* "mi2s-bit-clk0"
@@ -42,7 +42,7 @@ Example:
lpass@28100000 {
compatible = "qcom,lpass-cpu";
clocks = <&lcc AHBIX_CLK>, <&lcc MI2S_OSR_CLK>, <&lcc MI2S_BIT_CLK>;
- clock-names = "ahbix-clk", "mi2s-osr-clk", "mi2s-bit-clk";
+ clock-names = "ahbix-clk", "mi2s-osr-clk4", "mi2s-bit-clk4";
interrupts = <0 85 1>;
interrupt-names = "lpass-irq-lpaif";
pinctrl-names = "default", "idle";
@@ -189,8 +189,8 @@
<&lcc MI2S_OSR_CLK>,
<&lcc MI2S_BIT_CLK>;
clock-names = "ahbix-clk",
- "mi2s-osr-clk",
- "mi2s-bit-clk";
+ "mi2s-osr-clk4",
+ "mi2s-bit-clk4";
interrupts = <0 85 1>;
interrupt-names = "lpass-irq-lpaif";
reg = <0x28100000 0x10000>;
@@ -411,11 +411,8 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
if (variant->init)
variant->init(pdev);
- for (i = 0; i < variant->num_dai; i++) {
- if (variant->num_dai > 1)
- sprintf(clk_name, "mi2s-osr-clk%d", i);
- else
- sprintf(clk_name, "mi2s-osr-clk");
+ for (i = 0; i < LPASS_MAX_MI2S_PORTS; i++) {
+ sprintf(clk_name, "mi2s-osr-clk%d", i);
drvdata->mi2s_osr_clk[i] = devm_clk_get(&pdev->dev,
clk_name);
@@ -427,19 +424,14 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
}
}
- for (i = 0; i < variant->num_dai; i++) {
-
- if (variant->num_dai > 1)
- sprintf(clk_name, "mi2s-bit-clk%d", i);
- else
- sprintf(clk_name, "mi2s-bit-clk");
+ for (i = 0; i < LPASS_MAX_MI2S_PORTS; i++) {
+ sprintf(clk_name, "mi2s-bit-clk%d", i);
drvdata->mi2s_bit_clk[i] = devm_clk_get(&pdev->dev, clk_name);
if (IS_ERR(drvdata->mi2s_bit_clk[i])) {
dev_err(&pdev->dev,
"%s() error getting mi2s-bit-clk: %ld\n",
__func__, PTR_ERR(drvdata->mi2s_bit_clk[i]));
- return PTR_ERR(drvdata->mi2s_bit_clk[i]);
}
}
-----------------------><---------------------------------------------