pcsp_mixer.c (8dd06ef34b6e2f41b29fbf5fc1663780f2524285) pcsp_mixer.c (9cbe416b9356e84863dff02112d3d3c095f881f8)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * PC-Speaker driver for Linux
4 *
5 * Mixer implementation.
6 * Copyright (C) 2001-2008 Stas Sergeev
7 */
8

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

68 struct snd_ctl_elem_value *ucontrol)
69{
70 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol);
71 int changed = 0;
72 int treble = ucontrol->value.enumerated.item[0];
73 if (treble != chip->treble) {
74 chip->treble = treble;
75#if PCSP_DEBUG
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * PC-Speaker driver for Linux
4 *
5 * Mixer implementation.
6 * Copyright (C) 2001-2008 Stas Sergeev
7 */
8

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

68 struct snd_ctl_elem_value *ucontrol)
69{
70 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol);
71 int changed = 0;
72 int treble = ucontrol->value.enumerated.item[0];
73 if (treble != chip->treble) {
74 chip->treble = treble;
75#if PCSP_DEBUG
76 printk(KERN_INFO "PCSP: rate set to %li\n", PCSP_RATE());
76 dev_dbg(chip->card->dev, "PCSP: rate set to %li\n", PCSP_RATE());
77#endif
78 changed = 1;
79 }
80 return changed;
81}
82
83static int pcsp_pcspkr_info(struct snd_kcontrol *kcontrol,
84 struct snd_ctl_elem_info *uinfo)

--- 80 unchanged lines hidden ---
77#endif
78 changed = 1;
79 }
80 return changed;
81}
82
83static int pcsp_pcspkr_info(struct snd_kcontrol *kcontrol,
84 struct snd_ctl_elem_info *uinfo)

--- 80 unchanged lines hidden ---