pcsp.c (4ba25a496f62129a2ad8c2436ab2b402752dc66c) | pcsp.c (75415df8ffbac2ace9463ceffb3f21299af2548a) |
---|---|
1/* 2 * PC-Speaker driver for Linux 3 * 4 * Copyright (C) 1997-2001 David Woodhouse 5 * Copyright (C) 2001-2008 Stas Sergeev 6 */ 7 8#include <linux/init.h> --- 32 unchanged lines hidden (view full) --- 41 42static int snd_pcsp_create(struct snd_card *card) 43{ 44 static struct snd_device_ops ops = { }; 45 struct timespec tp; 46 int err; 47 int div, min_div, order; 48 | 1/* 2 * PC-Speaker driver for Linux 3 * 4 * Copyright (C) 1997-2001 David Woodhouse 5 * Copyright (C) 2001-2008 Stas Sergeev 6 */ 7 8#include <linux/init.h> --- 32 unchanged lines hidden (view full) --- 41 42static int snd_pcsp_create(struct snd_card *card) 43{ 44 static struct snd_device_ops ops = { }; 45 struct timespec tp; 46 int err; 47 int div, min_div, order; 48 |
49 hrtimer_get_res(CLOCK_MONOTONIC, &tp); 50 |
|
49 if (!nopcm) { | 51 if (!nopcm) { |
50 hrtimer_get_res(CLOCK_MONOTONIC, &tp); | |
51 if (tp.tv_sec || tp.tv_nsec > PCSP_MAX_PERIOD_NS) { 52 printk(KERN_ERR "PCSP: Timer resolution is not sufficient " 53 "(%linS)\n", tp.tv_nsec); 54 printk(KERN_ERR "PCSP: Make sure you have HPET and ACPI " 55 "enabled.\n"); 56 printk(KERN_ERR "PCSP: Turned into nopcm mode.\n"); 57 nopcm = 1; 58 } --- 188 unchanged lines hidden --- | 52 if (tp.tv_sec || tp.tv_nsec > PCSP_MAX_PERIOD_NS) { 53 printk(KERN_ERR "PCSP: Timer resolution is not sufficient " 54 "(%linS)\n", tp.tv_nsec); 55 printk(KERN_ERR "PCSP: Make sure you have HPET and ACPI " 56 "enabled.\n"); 57 printk(KERN_ERR "PCSP: Turned into nopcm mode.\n"); 58 nopcm = 1; 59 } --- 188 unchanged lines hidden --- |