sb_mixer.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | sb_mixer.c (fdd1f6fd328ff2e3723fe2a5c94378ef6f217edc) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 4 * Routines for Sound Blaster mixer control 5 */ 6 7#include <linux/io.h> 8#include <linux/delay.h> --- 424 unchanged lines hidden (view full) --- 433 434 435/* 436 */ 437/* 438 */ 439int snd_sbmixer_add_ctl(struct snd_sb *chip, const char *name, int index, int type, unsigned long value) 440{ | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 4 * Routines for Sound Blaster mixer control 5 */ 6 7#include <linux/io.h> 8#include <linux/delay.h> --- 424 unchanged lines hidden (view full) --- 433 434 435/* 436 */ 437/* 438 */ 439int snd_sbmixer_add_ctl(struct snd_sb *chip, const char *name, int index, int type, unsigned long value) 440{ |
441 static struct snd_kcontrol_new newctls[] = { | 441 static const struct snd_kcontrol_new newctls[] = { |
442 [SB_MIX_SINGLE] = { 443 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 444 .info = snd_sbmixer_info_single, 445 .get = snd_sbmixer_get_single, 446 .put = snd_sbmixer_put_single, 447 }, 448 [SB_MIX_DOUBLE] = { 449 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, --- 497 unchanged lines hidden --- | 442 [SB_MIX_SINGLE] = { 443 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 444 .info = snd_sbmixer_info_single, 445 .get = snd_sbmixer_get_single, 446 .put = snd_sbmixer_put_single, 447 }, 448 [SB_MIX_DOUBLE] = { 449 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, --- 497 unchanged lines hidden --- |