imx-audmix.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) | imx-audmix.c (723ca2f89412abe47b7cbb276f683ddb292c172c) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright 2017 NXP 4 * 5 * The code contained herein is licensed under the GNU General Public 6 * License. You may obtain a copy of the GNU General Public License 7 * Version 2 or later at the following locations: 8 * --- 195 unchanged lines hidden (view full) --- 204 if (!priv->dapm_routes) 205 return -ENOMEM; 206 207 for (i = 0; i < num_dai; i++) { 208 struct snd_soc_dai_link_component *dlc; 209 210 /* for CPU/Codec/Platform x 2 */ 211 dlc = devm_kcalloc(&pdev->dev, 6, sizeof(*dlc), GFP_KERNEL); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright 2017 NXP 4 * 5 * The code contained herein is licensed under the GNU General Public 6 * License. You may obtain a copy of the GNU General Public License 7 * Version 2 or later at the following locations: 8 * --- 195 unchanged lines hidden (view full) --- 204 if (!priv->dapm_routes) 205 return -ENOMEM; 206 207 for (i = 0; i < num_dai; i++) { 208 struct snd_soc_dai_link_component *dlc; 209 210 /* for CPU/Codec/Platform x 2 */ 211 dlc = devm_kcalloc(&pdev->dev, 6, sizeof(*dlc), GFP_KERNEL); |
212 if (!dlc) { 213 dev_err(&pdev->dev, "failed to allocate dai_link\n"); | 212 if (!dlc) |
214 return -ENOMEM; | 213 return -ENOMEM; |
215 } | |
216 217 ret = of_parse_phandle_with_args(audmix_np, "dais", NULL, i, 218 &args); 219 if (ret < 0) { 220 dev_err(&pdev->dev, "of_parse_phandle_with_args failed\n"); 221 return ret; 222 } 223 --- 133 unchanged lines hidden --- | 214 215 ret = of_parse_phandle_with_args(audmix_np, "dais", NULL, i, 216 &args); 217 if (ret < 0) { 218 dev_err(&pdev->dev, "of_parse_phandle_with_args failed\n"); 219 return ret; 220 } 221 --- 133 unchanged lines hidden --- |