pcsp.c (58e16d792a6a8c6b750f637a4649967fcac853dc) pcsp.c (34273b234c0712c963f02845919125686f503d3e)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * PC-Speaker driver for Linux
4 *
5 * Copyright (C) 1997-2001 David Woodhouse
6 * Copyright (C) 2001-2008 Stas Sergeev
7 */
8

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

38MODULE_PARM_DESC(enable, "Enable PC-Speaker sound.");
39module_param(nopcm, bool, 0444);
40MODULE_PARM_DESC(nopcm, "Disable PC-Speaker PCM sound. Only beeps remain.");
41
42struct snd_pcsp pcsp_chip;
43
44static int snd_pcsp_create(struct snd_card *card)
45{
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * PC-Speaker driver for Linux
4 *
5 * Copyright (C) 1997-2001 David Woodhouse
6 * Copyright (C) 2001-2008 Stas Sergeev
7 */
8

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

38MODULE_PARM_DESC(enable, "Enable PC-Speaker sound.");
39module_param(nopcm, bool, 0444);
40MODULE_PARM_DESC(nopcm, "Disable PC-Speaker PCM sound. Only beeps remain.");
41
42struct snd_pcsp pcsp_chip;
43
44static int snd_pcsp_create(struct snd_card *card)
45{
46 static struct snd_device_ops ops = { };
46 static const struct snd_device_ops ops = { };
47 unsigned int resolution = hrtimer_resolution;
48 int err, div, min_div, order;
49
50 if (!nopcm) {
51 if (resolution > PCSP_MAX_PERIOD_NS) {
52 printk(KERN_ERR "PCSP: Timer resolution is not sufficient "
53 "(%unS)\n", resolution);
54 printk(KERN_ERR "PCSP: Make sure you have HPET and ACPI "

--- 185 unchanged lines hidden ---
47 unsigned int resolution = hrtimer_resolution;
48 int err, div, min_div, order;
49
50 if (!nopcm) {
51 if (resolution > PCSP_MAX_PERIOD_NS) {
52 printk(KERN_ERR "PCSP: Timer resolution is not sufficient "
53 "(%unS)\n", resolution);
54 printk(KERN_ERR "PCSP: Make sure you have HPET and ACPI "

--- 185 unchanged lines hidden ---