hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/adav80x.c
....@@ -1,11 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ADAV80X Audio Codec driver supporting ADAV801, ADAV803
34 *
45 * Copyright 2011 Analog Devices Inc.
56 * Author: Yi Li <yi.li@analog.com>
67 * Author: Lars-Peter Clausen <lars@metafoo.de>
7
- *
8
- * Licensed under the GPL-2 or later.
98 */
109
1110 #include <linux/module.h>
....@@ -648,7 +647,7 @@
648647 pll_ctrl1 |= ADAV80X_PLL_CTRL1_PLLDIV;
649648 break;
650649 }
651
- /* fall through */
650
+ fallthrough;
652651 default:
653652 return -EINVAL;
654653 }
....@@ -726,7 +725,7 @@
726725 struct snd_soc_component *component = dai->component;
727726 struct adav80x *adav80x = snd_soc_component_get_drvdata(component);
728727
729
- if (!snd_soc_component_is_active(component) || !adav80x->rate)
728
+ if (!snd_soc_component_active(component) || !adav80x->rate)
730729 return 0;
731730
732731 return snd_pcm_hw_constraint_single(substream->runtime,
....@@ -739,7 +738,7 @@
739738 struct snd_soc_component *component = dai->component;
740739 struct adav80x *adav80x = snd_soc_component_get_drvdata(component);
741740
742
- if (!snd_soc_component_is_active(component))
741
+ if (!snd_soc_component_active(component))
743742 adav80x->rate = 0;
744743 }
745744