| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 1999 by Uros Bizjak <uros@kss-loka.si> |
|---|
| 3 | 4 | * Takashi Iwai <tiwai@suse.de> |
|---|
| .. | .. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * CSP microcode loader: |
|---|
| 8 | 9 | * alsa-tools/sb16_csp/ |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 11 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 12 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 13 | | - * (at your option) any later version. |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 18 | | - * GNU General Public License for more details. |
|---|
| 19 | | - * |
|---|
| 20 | | - * You should have received a copy of the GNU General Public License |
|---|
| 21 | | - * along with this program; if not, write to the Free Software |
|---|
| 22 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 23 | | - * |
|---|
| 24 | 10 | */ |
|---|
| 25 | 11 | |
|---|
| 26 | 12 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 116 | 102 | int snd_sb_csp_new(struct snd_sb *chip, int device, struct snd_hwdep ** rhwdep) |
|---|
| 117 | 103 | { |
|---|
| 118 | 104 | struct snd_sb_csp *p; |
|---|
| 119 | | - int uninitialized_var(version); |
|---|
| 105 | + int version; |
|---|
| 120 | 106 | int err; |
|---|
| 121 | 107 | struct snd_hwdep *hw; |
|---|
| 122 | 108 | |
|---|
| .. | .. |
|---|
| 1138 | 1124 | static int init_proc_entry(struct snd_sb_csp * p, int device) |
|---|
| 1139 | 1125 | { |
|---|
| 1140 | 1126 | char name[16]; |
|---|
| 1141 | | - struct snd_info_entry *entry; |
|---|
| 1127 | + |
|---|
| 1142 | 1128 | sprintf(name, "cspD%d", device); |
|---|
| 1143 | | - if (! snd_card_proc_new(p->chip->card, name, &entry)) |
|---|
| 1144 | | - snd_info_set_text_ops(entry, p, info_read); |
|---|
| 1129 | + snd_card_ro_proc_new(p->chip->card, name, p, info_read); |
|---|
| 1145 | 1130 | return 0; |
|---|
| 1146 | 1131 | } |
|---|
| 1147 | 1132 | |
|---|