hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/sound/soc/codecs/ak4671.c
....@@ -1,14 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ak4671.c -- audio driver for AK4671
34 *
45 * Copyright (C) 2009 Samsung Electronics Co.Ltd
56 * Author: Joonyoung Shim <jy0922.shim@samsung.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify it
8
- * under the terms of the GNU General Public License as published by the
9
- * Free Software Foundation; either version 2 of the License, or (at your
10
- * option) any later version.
11
- *
127 */
138
149 #include <linux/module.h>
....@@ -430,7 +425,7 @@
430425 struct snd_soc_component *component = dai->component;
431426 u8 fs;
432427
433
- fs = snd_soc_component_read32(component, AK4671_PLL_MODE_SELECT0);
428
+ fs = snd_soc_component_read(component, AK4671_PLL_MODE_SELECT0);
434429 fs &= ~AK4671_FS;
435430
436431 switch (params_rate(params)) {
....@@ -476,7 +471,7 @@
476471 struct snd_soc_component *component = dai->component;
477472 u8 pll;
478473
479
- pll = snd_soc_component_read32(component, AK4671_PLL_MODE_SELECT0);
474
+ pll = snd_soc_component_read(component, AK4671_PLL_MODE_SELECT0);
480475 pll &= ~AK4671_PLL;
481476
482477 switch (freq) {
....@@ -523,7 +518,7 @@
523518 u8 format;
524519
525520 /* set master/slave audio interface */
526
- mode = snd_soc_component_read32(component, AK4671_PLL_MODE_SELECT1);
521
+ mode = snd_soc_component_read(component, AK4671_PLL_MODE_SELECT1);
527522
528523 switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
529524 case SND_SOC_DAIFMT_CBM_CFM:
....@@ -537,7 +532,7 @@
537532 }
538533
539534 /* interface format */
540
- format = snd_soc_component_read32(component, AK4671_FORMAT_SELECT);
535
+ format = snd_soc_component_read(component, AK4671_FORMAT_SELECT);
541536 format &= ~AK4671_DIF;
542537
543538 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {