madera.c (7c0577f4e609f7278ebd6d21e2de82b42f110944) | madera.c (5e518eddd11e8f71aaffc954dc7ee9572fc59808) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2// 3// Cirrus Logic Madera class codecs common support 4// 5// Copyright (C) 2015-2019 Cirrus Logic, Inc. and 6// Cirrus Logic International Semiconductor Ltd. 7// 8 --- 3265 unchanged lines hidden (view full) --- 3274 if (is_sync < 0) { 3275 dev_err(component->dev, "Illegal DAI clock id %d\n", clk_id); 3276 return is_sync; 3277 } 3278 3279 if (is_sync == madera_is_syncclk(dai_priv->clk)) 3280 return 0; 3281 | 1// SPDX-License-Identifier: GPL-2.0-only 2// 3// Cirrus Logic Madera class codecs common support 4// 5// Copyright (C) 2015-2019 Cirrus Logic, Inc. and 6// Cirrus Logic International Semiconductor Ltd. 7// 8 --- 3265 unchanged lines hidden (view full) --- 3274 if (is_sync < 0) { 3275 dev_err(component->dev, "Illegal DAI clock id %d\n", clk_id); 3276 return is_sync; 3277 } 3278 3279 if (is_sync == madera_is_syncclk(dai_priv->clk)) 3280 return 0; 3281 |
3282 if (dai->active) { | 3282 if (snd_soc_dai_active(dai)) { |
3283 dev_err(component->dev, "Can't change clock on active DAI %d\n", 3284 dai->id); 3285 return -EBUSY; 3286 } 3287 3288 dev_dbg(component->dev, "Setting AIF%d to %s\n", dai->id, 3289 is_sync ? "SYSCLK" : "ASYNCCLK"); 3290 --- 1544 unchanged lines hidden --- | 3283 dev_err(component->dev, "Can't change clock on active DAI %d\n", 3284 dai->id); 3285 return -EBUSY; 3286 } 3287 3288 dev_dbg(component->dev, "Setting AIF%d to %s\n", dai->id, 3289 is_sync ? "SYSCLK" : "ASYNCCLK"); 3290 --- 1544 unchanged lines hidden --- |