.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * ALSA SoC Texas Instruments TLV320DAC33 codec driver |
---|
3 | 4 | * |
---|
4 | 5 | * Author: Peter Ujfalusi <peter.ujfalusi@ti.com> |
---|
5 | 6 | * |
---|
6 | 7 | * Copyright: (C) 2009 Nokia Corporation |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License version 2 as |
---|
10 | | - * 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 | | - * |
---|
22 | 8 | */ |
---|
23 | 9 | |
---|
24 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
394 | 380 | if (ret != 0) { |
---|
395 | 381 | dev_err(component->dev, |
---|
396 | 382 | "Failed to enable supplies: %d\n", ret); |
---|
397 | | - goto exit; |
---|
| 383 | + goto exit; |
---|
398 | 384 | } |
---|
399 | 385 | |
---|
400 | 386 | if (dac33->power_gpio >= 0) |
---|
.. | .. |
---|
463 | 449 | if (dac33->fifo_mode == ucontrol->value.enumerated.item[0]) |
---|
464 | 450 | return 0; |
---|
465 | 451 | /* Do not allow changes while stream is running*/ |
---|
466 | | - if (snd_soc_component_is_active(component)) |
---|
| 452 | + if (snd_soc_component_active(component)) |
---|
467 | 453 | return -EPERM; |
---|
468 | 454 | |
---|
469 | 455 | if (ucontrol->value.enumerated.item[0] >= DAC33_FIFO_LAST_MODE) |
---|