hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/sound/soc/codecs/wl1273.c
....@@ -1,24 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ALSA SoC WL1273 codec driver
34 *
45 * Author: Matti Aaltonen, <matti.j.aaltonen@nokia.com>
56 *
67 * Copyright: (C) 2010, 2011 Nokia Corporation
7
- *
8
- * This program is free software; you can redistribute it and/or
9
- * modify it under the terms of the GNU General Public License
10
- * version 2 as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful, but
13
- * WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
- * General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
- * 02110-1301 USA
21
- *
228 */
239
2410 #include <linux/mfd/wl1273-core.h>
....@@ -197,7 +183,7 @@
197183 return 0;
198184
199185 /* Do not allow changes while stream is running */
200
- if (snd_soc_component_is_active(component))
186
+ if (snd_soc_component_active(component))
201187 return -EPERM;
202188
203189 if (ucontrol->value.enumerated.item[0] >= ARRAY_SIZE(wl1273_audio_route))