| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * rt5514.c -- RT5514 ALSA SoC audio codec driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2015 Realtek Semiconductor Corp. |
|---|
| 5 | 6 | * Author: Oder Chiou <oder_chiou@realtek.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 9 | | - * published by the Free Software Foundation. |
|---|
| 10 | 7 | */ |
|---|
| 11 | 8 | |
|---|
| 12 | 9 | #include <linux/acpi.h> |
|---|
| .. | .. |
|---|
| 422 | 419 | } |
|---|
| 423 | 420 | } |
|---|
| 424 | 421 | |
|---|
| 425 | | - return 0; |
|---|
| 422 | + return 1; |
|---|
| 426 | 423 | } |
|---|
| 427 | 424 | |
|---|
| 428 | 425 | static const struct snd_kcontrol_new rt5514_snd_controls[] = { |
|---|
| .. | .. |
|---|
| 489 | 486 | /** |
|---|
| 490 | 487 | * rt5514_calc_dmic_clk - Calculate the frequency divider parameter of dmic. |
|---|
| 491 | 488 | * |
|---|
| 489 | + * @component: only used for dev_warn |
|---|
| 492 | 490 | * @rate: base clock rate. |
|---|
| 493 | 491 | * |
|---|
| 494 | 492 | * Choose divider parameter that gives the highest possible DMIC frequency in |
|---|
| .. | .. |
|---|
| 1201 | 1199 | .cache_type = REGCACHE_RBTREE, |
|---|
| 1202 | 1200 | .reg_defaults = rt5514_reg, |
|---|
| 1203 | 1201 | .num_reg_defaults = ARRAY_SIZE(rt5514_reg), |
|---|
| 1204 | | - .use_single_rw = true, |
|---|
| 1202 | + .use_single_read = true, |
|---|
| 1203 | + .use_single_write = true, |
|---|
| 1205 | 1204 | }; |
|---|
| 1206 | 1205 | |
|---|
| 1207 | 1206 | static const struct i2c_device_id rt5514_i2c_id[] = { |
|---|