Changeset 679 for GPL/trunk/alsa-kernel/pci/ak4531_codec.c
- Timestamp:
- Mar 18, 2021, 8:57:36 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-linux-3.2.102 (added) merged: 611-614 /GPL/branches/uniaud32-next (added) merged: 615-678
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/pci/ak4531_codec.c
r426 r679 1 // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 2 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 3 4 * Universal routines for AK4531 codec 4 *5 *6 * This program is free software; you can redistribute it and/or modify7 * it under the terms of the GNU General Public License as published by8 * the Free Software Foundation; either version 2 of the License, or9 * (at your option) any later version.10 *11 * This program is distributed in the hope that it will be useful,12 * but WITHOUT ANY WARRANTY; without even the implied warranty of13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14 * GNU General Public License for more details.15 *16 * You should have received a copy of the GNU General Public License17 * along with this program; if not, write to the Free Software18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19 *20 5 */ 21 6 … … 24 9 #include <linux/slab.h> 25 10 #include <linux/mutex.h> 11 #include <linux/module.h> 26 12 27 13 #include <sound/core.h> … … 35 21 */ 36 22 37 #ifdef CONFIG_PROC_FS38 23 static void snd_ak4531_proc_init(struct snd_card *card, struct snd_ak4531 *ak4531); 39 #else40 #define snd_ak4531_proc_init(card,ak)41 #endif42 24 43 25 /* … … 274 256 static const DECLARE_TLV_DB_SCALE(db_scale_input, -5000, 200, 0); 275 257 276 static struct snd_kcontrol_new snd_ak4531_controls[] __devinitdata= {258 static const struct snd_kcontrol_new snd_ak4531_controls[] = { 277 259 278 260 AK4531_DOUBLE_TLV("Master Playback Switch", 0, … … 354 336 } 355 337 356 static u8 snd_ak4531_initial_map[0x19 + 1] = {338 static const u8 snd_ak4531_initial_map[0x19 + 1] = { 357 339 0x9f, /* 00: Master Volume Lch */ 358 340 0x9f, /* 01: Master Volume Rch */ … … 383 365 }; 384 366 385 int __devinitsnd_ak4531_mixer(struct snd_card *card,386 387 367 int snd_ak4531_mixer(struct snd_card *card, 368 struct snd_ak4531 *_ak4531, 369 struct snd_ak4531 **rak4531) 388 370 { 389 371 unsigned int idx; 390 372 int err; 391 373 struct snd_ak4531 *ak4531; 392 static struct snd_device_ops ops = {374 static const struct snd_device_ops ops = { 393 375 .dev_free = snd_ak4531_dev_free, 394 376 }; … … 466 448 #endif 467 449 468 #ifdef CONFIG_PROC_FS469 450 /* 470 451 * /proc interface … … 483 464 } 484 465 485 static void __devinit466 static void 486 467 snd_ak4531_proc_init(struct snd_card *card, struct snd_ak4531 *ak4531) 487 468 { 488 struct snd_info_entry *entry; 489 490 if (! snd_card_proc_new(card, "ak4531", &entry)) 491 snd_info_set_text_ops(entry, ak4531, snd_ak4531_proc_read); 492 } 493 #endif 469 snd_card_ro_proc_new(card, "ak4531", ak4531, snd_ak4531_proc_read); 470 }
Note:
See TracChangeset
for help on using the changeset viewer.