.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * ADAV80X Audio Codec driver supporting ADAV801, ADAV803 |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2011 Analog Devices Inc. |
---|
5 | 6 | * Author: Yi Li <yi.li@analog.com> |
---|
6 | 7 | * Author: Lars-Peter Clausen <lars@metafoo.de> |
---|
7 | | - * |
---|
8 | | - * Licensed under the GPL-2 or later. |
---|
9 | 8 | */ |
---|
10 | 9 | |
---|
11 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
648 | 647 | pll_ctrl1 |= ADAV80X_PLL_CTRL1_PLLDIV; |
---|
649 | 648 | break; |
---|
650 | 649 | } |
---|
651 | | - /* fall through */ |
---|
| 650 | + fallthrough; |
---|
652 | 651 | default: |
---|
653 | 652 | return -EINVAL; |
---|
654 | 653 | } |
---|
.. | .. |
---|
726 | 725 | struct snd_soc_component *component = dai->component; |
---|
727 | 726 | struct adav80x *adav80x = snd_soc_component_get_drvdata(component); |
---|
728 | 727 | |
---|
729 | | - if (!snd_soc_component_is_active(component) || !adav80x->rate) |
---|
| 728 | + if (!snd_soc_component_active(component) || !adav80x->rate) |
---|
730 | 729 | return 0; |
---|
731 | 730 | |
---|
732 | 731 | return snd_pcm_hw_constraint_single(substream->runtime, |
---|
.. | .. |
---|
739 | 738 | struct snd_soc_component *component = dai->component; |
---|
740 | 739 | struct adav80x *adav80x = snd_soc_component_get_drvdata(component); |
---|
741 | 740 | |
---|
742 | | - if (!snd_soc_component_is_active(component)) |
---|
| 741 | + if (!snd_soc_component_active(component)) |
---|
743 | 742 | adav80x->rate = 0; |
---|
744 | 743 | } |
---|
745 | 744 | |
---|