| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ak4671.c -- audio driver for AK4671 |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2009 Samsung Electronics Co.Ltd |
|---|
| 5 | 6 | * 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 | | - * |
|---|
| 12 | 7 | */ |
|---|
| 13 | 8 | |
|---|
| 14 | 9 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 430 | 425 | struct snd_soc_component *component = dai->component; |
|---|
| 431 | 426 | u8 fs; |
|---|
| 432 | 427 | |
|---|
| 433 | | - fs = snd_soc_component_read32(component, AK4671_PLL_MODE_SELECT0); |
|---|
| 428 | + fs = snd_soc_component_read(component, AK4671_PLL_MODE_SELECT0); |
|---|
| 434 | 429 | fs &= ~AK4671_FS; |
|---|
| 435 | 430 | |
|---|
| 436 | 431 | switch (params_rate(params)) { |
|---|
| .. | .. |
|---|
| 476 | 471 | struct snd_soc_component *component = dai->component; |
|---|
| 477 | 472 | u8 pll; |
|---|
| 478 | 473 | |
|---|
| 479 | | - pll = snd_soc_component_read32(component, AK4671_PLL_MODE_SELECT0); |
|---|
| 474 | + pll = snd_soc_component_read(component, AK4671_PLL_MODE_SELECT0); |
|---|
| 480 | 475 | pll &= ~AK4671_PLL; |
|---|
| 481 | 476 | |
|---|
| 482 | 477 | switch (freq) { |
|---|
| .. | .. |
|---|
| 523 | 518 | u8 format; |
|---|
| 524 | 519 | |
|---|
| 525 | 520 | /* 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); |
|---|
| 527 | 522 | |
|---|
| 528 | 523 | switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { |
|---|
| 529 | 524 | case SND_SOC_DAIFMT_CBM_CFM: |
|---|
| .. | .. |
|---|
| 537 | 532 | } |
|---|
| 538 | 533 | |
|---|
| 539 | 534 | /* interface format */ |
|---|
| 540 | | - format = snd_soc_component_read32(component, AK4671_FORMAT_SELECT); |
|---|
| 535 | + format = snd_soc_component_read(component, AK4671_FORMAT_SELECT); |
|---|
| 541 | 536 | format &= ~AK4671_DIF; |
|---|
| 542 | 537 | |
|---|
| 543 | 538 | switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) { |
|---|