forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/sound/soc/codecs/tlv320dac33.c
....@@ -1,24 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ALSA SoC Texas Instruments TLV320DAC33 codec driver
34 *
45 * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
56 *
67 * 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
- *
228 */
239
2410 #include <linux/module.h>
....@@ -394,7 +380,7 @@
394380 if (ret != 0) {
395381 dev_err(component->dev,
396382 "Failed to enable supplies: %d\n", ret);
397
- goto exit;
383
+ goto exit;
398384 }
399385
400386 if (dac33->power_gpio >= 0)
....@@ -463,7 +449,7 @@
463449 if (dac33->fifo_mode == ucontrol->value.enumerated.item[0])
464450 return 0;
465451 /* Do not allow changes while stream is running*/
466
- if (snd_soc_component_is_active(component))
452
+ if (snd_soc_component_active(component))
467453 return -EPERM;
468454
469455 if (ucontrol->value.enumerated.item[0] >= DAC33_FIFO_LAST_MODE)