| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * cs42l73.c -- CS42L73 ALSA Soc Audio driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Authors: Georgi Vlaev, Nucleus Systems Ltd, <joe@nucleusys.com> |
|---|
| 7 | 8 | * Brian Austin, Cirrus Logic Inc, <brian.austin@cirrus.com> |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 11 | | - * published by the Free Software Foundation. |
|---|
| 12 | | - * |
|---|
| 13 | 9 | */ |
|---|
| 14 | 10 | |
|---|
| 15 | 11 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 276 | 272 | static SOC_ENUM_SINGLE_DECL(xsp_output_mux_enum, |
|---|
| 277 | 273 | CS42L73_MIXERCTL, 4, |
|---|
| 278 | 274 | cs42l73_spo_mixer_text); |
|---|
| 279 | | - |
|---|
| 280 | | -static const struct snd_kcontrol_new vsp_output_mux = |
|---|
| 281 | | - SOC_DAPM_ENUM("Route", vsp_output_mux_enum); |
|---|
| 282 | | - |
|---|
| 283 | | -static const struct snd_kcontrol_new xsp_output_mux = |
|---|
| 284 | | - SOC_DAPM_ENUM("Route", xsp_output_mux_enum); |
|---|
| 285 | 275 | |
|---|
| 286 | 276 | static const struct snd_kcontrol_new hp_amp_ctl = |
|---|
| 287 | 277 | SOC_DAPM_SINGLE("Switch", CS42L73_PWRCTL3, 0, 1, 1); |
|---|
| .. | .. |
|---|
| 948 | 938 | unsigned int inv, format; |
|---|
| 949 | 939 | u8 spc, mmcc; |
|---|
| 950 | 940 | |
|---|
| 951 | | - spc = snd_soc_component_read32(component, CS42L73_SPC(id)); |
|---|
| 952 | | - mmcc = snd_soc_component_read32(component, CS42L73_MMCC(id)); |
|---|
| 941 | + spc = snd_soc_component_read(component, CS42L73_SPC(id)); |
|---|
| 942 | + mmcc = snd_soc_component_read(component, CS42L73_MMCC(id)); |
|---|
| 953 | 943 | |
|---|
| 954 | 944 | switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { |
|---|
| 955 | 945 | case SND_SOC_DAIFMT_CBM_CFM: |
|---|