tumbler.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) tumbler.c (c031b0cc77a1bef980eb360e317a6bbd54211326)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * PMac Tumbler/Snapper lowlevel functions
4 *
5 * Copyright (c) by Takashi Iwai <tiwai@suse.de>
6 *
7 * Rene Rebe <rene.rebe@gmx.net>:
8 * * update from shadow registers on wakeup and headphone plug

--- 812 unchanged lines hidden (view full) ---

821 .put = snapper_put_mix, \
822 .index = idx,\
823 .private_value = ofs, \
824}
825
826
827/*
828 */
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * PMac Tumbler/Snapper lowlevel functions
4 *
5 * Copyright (c) by Takashi Iwai <tiwai@suse.de>
6 *
7 * Rene Rebe <rene.rebe@gmx.net>:
8 * * update from shadow registers on wakeup and headphone plug

--- 812 unchanged lines hidden (view full) ---

821 .put = snapper_put_mix, \
822 .index = idx,\
823 .private_value = ofs, \
824}
825
826
827/*
828 */
829static struct snd_kcontrol_new tumbler_mixers[] = {
829static const struct snd_kcontrol_new tumbler_mixers[] = {
830 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
831 .name = "Master Playback Volume",
832 .info = tumbler_info_master_volume,
833 .get = tumbler_get_master_volume,
834 .put = tumbler_put_master_volume
835 },
836 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
837 .name = "Master Playback Switch",

--- 7 unchanged lines hidden (view full) ---

845 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
846 .name = "DRC Range",
847 .info = tumbler_info_drc_value,
848 .get = tumbler_get_drc_value,
849 .put = tumbler_put_drc_value
850 },
851};
852
830 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
831 .name = "Master Playback Volume",
832 .info = tumbler_info_master_volume,
833 .get = tumbler_get_master_volume,
834 .put = tumbler_put_master_volume
835 },
836 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
837 .name = "Master Playback Switch",

--- 7 unchanged lines hidden (view full) ---

845 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
846 .name = "DRC Range",
847 .info = tumbler_info_drc_value,
848 .get = tumbler_get_drc_value,
849 .put = tumbler_put_drc_value
850 },
851};
852
853static struct snd_kcontrol_new snapper_mixers[] = {
853static const struct snd_kcontrol_new snapper_mixers[] = {
854 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
855 .name = "Master Playback Volume",
856 .info = tumbler_info_master_volume,
857 .get = tumbler_get_master_volume,
858 .put = tumbler_put_master_volume
859 },
860 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
861 .name = "Master Playback Switch",

--- 617 unchanged lines hidden ---
854 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
855 .name = "Master Playback Volume",
856 .info = tumbler_info_master_volume,
857 .get = tumbler_get_master_volume,
858 .put = tumbler_put_master_volume
859 },
860 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
861 .name = "Master Playback Switch",

--- 617 unchanged lines hidden ---