forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/i2c/other/ak4xxx-adda.c
....@@ -1,24 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ALSA driver for AK4524 / AK4528 / AK4529 / AK4355 / AK4358 / AK4381
34 * AD and DA converters
45 *
56 * Copyright (c) 2000-2004 Jaroslav Kysela <perex@perex.cz>,
67 * 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
- *
228 */
239
2410 #include <linux/io.h>
....@@ -876,13 +862,7 @@
876862
877863 static int proc_init(struct snd_akm4xxx *ak)
878864 {
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);
886866 }
887867
888868 int snd_akm4xxx_build_controls(struct snd_akm4xxx *ak)