.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Support for Digigram Lola PCI-e boards |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2011 Takashi Iwai <tiwai@suse.de> |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify it |
---|
7 | | - * under the terms of the GNU General Public License as published by the Free |
---|
8 | | - * Software Foundation; either version 2 of the License, or (at your option) |
---|
9 | | - * any later version. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
12 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
13 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
14 | | - * more details. |
---|
15 | | - * |
---|
16 | | - * You should have received a copy of the GNU General Public License along with |
---|
17 | | - * this program; if not, write to the Free Software Foundation, Inc., 59 |
---|
18 | | - * Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
---|
19 | 6 | */ |
---|
20 | 7 | |
---|
21 | 8 | #include <linux/kernel.h> |
---|
.. | .. |
---|
208 | 195 | |
---|
209 | 196 | void lola_proc_debug_new(struct lola *chip) |
---|
210 | 197 | { |
---|
211 | | - struct snd_info_entry *entry; |
---|
212 | | - |
---|
213 | | - if (!snd_card_proc_new(chip->card, "codec", &entry)) |
---|
214 | | - snd_info_set_text_ops(entry, chip, lola_proc_codec_read); |
---|
215 | | - if (!snd_card_proc_new(chip->card, "codec_rw", &entry)) { |
---|
216 | | - snd_info_set_text_ops(entry, chip, lola_proc_codec_rw_read); |
---|
217 | | - entry->mode |= 0200; |
---|
218 | | - entry->c.text.write = lola_proc_codec_rw_write; |
---|
219 | | - } |
---|
220 | | - if (!snd_card_proc_new(chip->card, "regs", &entry)) |
---|
221 | | - snd_info_set_text_ops(entry, chip, lola_proc_regs_read); |
---|
| 198 | + snd_card_ro_proc_new(chip->card, "codec", chip, lola_proc_codec_read); |
---|
| 199 | + snd_card_rw_proc_new(chip->card, "codec_rw", chip, |
---|
| 200 | + lola_proc_codec_rw_read, |
---|
| 201 | + lola_proc_codec_rw_write); |
---|
| 202 | + snd_card_ro_proc_new(chip->card, "regs", chip, lola_proc_regs_read); |
---|
222 | 203 | } |
---|