pmac.c (46dd47c106f11587cf5887710765868e5bb53ce6) pmac.c (c031b0cc77a1bef980eb360e317a6bbd54211326)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * PMac DBDMA lowlevel functions
4 *
5 * Copyright (c) by Takashi Iwai <tiwai@suse.de>
6 * code based on dmasound.c.
7 */
8

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

1099 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol);
1100 if (chip->detect_headphone)
1101 ucontrol->value.integer.value[0] = chip->detect_headphone(chip);
1102 else
1103 ucontrol->value.integer.value[0] = 0;
1104 return 0;
1105}
1106
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * PMac DBDMA lowlevel functions
4 *
5 * Copyright (c) by Takashi Iwai <tiwai@suse.de>
6 * code based on dmasound.c.
7 */
8

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

1099 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol);
1100 if (chip->detect_headphone)
1101 ucontrol->value.integer.value[0] = chip->detect_headphone(chip);
1102 else
1103 ucontrol->value.integer.value[0] = 0;
1104 return 0;
1105}
1106
1107static struct snd_kcontrol_new auto_mute_controls[] = {
1107static const struct snd_kcontrol_new auto_mute_controls[] = {
1108 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1109 .name = "Auto Mute Switch",
1110 .info = snd_pmac_boolean_mono_info,
1111 .get = pmac_auto_mute_get,
1112 .put = pmac_auto_mute_put,
1113 },
1114 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1115 .name = "Headphone Detection",

--- 252 unchanged lines hidden ---
1108 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1109 .name = "Auto Mute Switch",
1110 .info = snd_pmac_boolean_mono_info,
1111 .get = pmac_auto_mute_get,
1112 .put = pmac_auto_mute_put,
1113 },
1114 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1115 .name = "Headphone Detection",

--- 252 unchanged lines hidden ---