| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ALSA driver for AK4524 / AK4528 / AK4529 / AK4355 / AK4358 / AK4381 |
|---|
| 3 | 4 | * AD and DA converters |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright (c) 2000-2004 Jaroslav Kysela <perex@perex.cz>, |
|---|
| 6 | 7 | * Takashi Iwai <tiwai@suse.de> |
|---|
| 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 as published by |
|---|
| 10 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | | - * (at your option) any later version. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | - * GNU General Public License for more details. |
|---|
| 17 | | - * |
|---|
| 18 | | - * You should have received a copy of the GNU General Public License |
|---|
| 19 | | - * along with this program; if not, write to the Free Software |
|---|
| 20 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 21 | | - * |
|---|
| 22 | 8 | */ |
|---|
| 23 | 9 | |
|---|
| 24 | 10 | #include <linux/io.h> |
|---|
| .. | .. |
|---|
| 876 | 862 | |
|---|
| 877 | 863 | static int proc_init(struct snd_akm4xxx *ak) |
|---|
| 878 | 864 | { |
|---|
| 879 | | - struct snd_info_entry *entry; |
|---|
| 880 | | - int err; |
|---|
| 881 | | - err = snd_card_proc_new(ak->card, ak->name, &entry); |
|---|
| 882 | | - if (err < 0) |
|---|
| 883 | | - return err; |
|---|
| 884 | | - snd_info_set_text_ops(entry, ak, proc_regs_read); |
|---|
| 885 | | - return 0; |
|---|
| 865 | + return snd_card_ro_proc_new(ak->card, ak->name, ak, proc_regs_read); |
|---|
| 886 | 866 | } |
|---|
| 887 | 867 | |
|---|
| 888 | 868 | int snd_akm4xxx_build_controls(struct snd_akm4xxx *ak) |
|---|