diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-02-04 12:22:39 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-14 02:14:17 -0500 |
commit | cf74dcf3512271bca4bb5fe79274ad23c22f5dd3 (patch) | |
tree | 0d7a8aecb236a4de5b1fd02ada3ba32585ecd7ab /sound/core | |
parent | 61efcee8608c38c1f3147aee9c60248b6e2b141f (diff) |
ALSA: timer: Use standard printk helpers
Use the standard pr_xxx() helpers instead of home-baked snd_print*().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/hrtimer.c | 3 | ||||
-rw-r--r-- | sound/core/rtctimer.c | 3 | ||||
-rw-r--r-- | sound/core/timer.c | 13 |
3 files changed, 8 insertions, 11 deletions
diff --git a/sound/core/hrtimer.c b/sound/core/hrtimer.c index b8b31c433d64..886be7da989d 100644 --- a/sound/core/hrtimer.c +++ b/sound/core/hrtimer.c | |||
@@ -126,8 +126,7 @@ static int __init snd_hrtimer_init(void) | |||
126 | 126 | ||
127 | hrtimer_get_res(CLOCK_MONOTONIC, &tp); | 127 | hrtimer_get_res(CLOCK_MONOTONIC, &tp); |
128 | if (tp.tv_sec > 0 || !tp.tv_nsec) { | 128 | if (tp.tv_sec > 0 || !tp.tv_nsec) { |
129 | snd_printk(KERN_ERR | 129 | pr_err("snd-hrtimer: Invalid resolution %u.%09u", |
130 | "snd-hrtimer: Invalid resolution %u.%09u", | ||
131 | (unsigned)tp.tv_sec, (unsigned)tp.tv_nsec); | 130 | (unsigned)tp.tv_sec, (unsigned)tp.tv_nsec); |
132 | return -EINVAL; | 131 | return -EINVAL; |
133 | } | 132 | } |
diff --git a/sound/core/rtctimer.c b/sound/core/rtctimer.c index b27223746b0e..f3420d11a12f 100644 --- a/sound/core/rtctimer.c +++ b/sound/core/rtctimer.c | |||
@@ -132,8 +132,7 @@ static int __init rtctimer_init(void) | |||
132 | 132 | ||
133 | if (rtctimer_freq < 2 || rtctimer_freq > 8192 || | 133 | if (rtctimer_freq < 2 || rtctimer_freq > 8192 || |
134 | !is_power_of_2(rtctimer_freq)) { | 134 | !is_power_of_2(rtctimer_freq)) { |
135 | snd_printk(KERN_ERR "rtctimer: invalid frequency %d\n", | 135 | pr_err("ALSA: rtctimer: invalid frequency %d\n", rtctimer_freq); |
136 | rtctimer_freq); | ||
137 | return -EINVAL; | 136 | return -EINVAL; |
138 | } | 137 | } |
139 | 138 | ||
diff --git a/sound/core/timer.c b/sound/core/timer.c index cbec51464c5b..cfd455a8ac1a 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c | |||
@@ -240,7 +240,8 @@ int snd_timer_open(struct snd_timer_instance **ti, | |||
240 | /* open a slave instance */ | 240 | /* open a slave instance */ |
241 | if (tid->dev_sclass <= SNDRV_TIMER_SCLASS_NONE || | 241 | if (tid->dev_sclass <= SNDRV_TIMER_SCLASS_NONE || |
242 | tid->dev_sclass > SNDRV_TIMER_SCLASS_OSS_SEQUENCER) { | 242 | tid->dev_sclass > SNDRV_TIMER_SCLASS_OSS_SEQUENCER) { |
243 | snd_printd("invalid slave class %i\n", tid->dev_sclass); | 243 | pr_debug("ALSA: timer: invalid slave class %i\n", |
244 | tid->dev_sclass); | ||
244 | return -EINVAL; | 245 | return -EINVAL; |
245 | } | 246 | } |
246 | mutex_lock(®ister_mutex); | 247 | mutex_lock(®ister_mutex); |
@@ -774,7 +775,7 @@ int snd_timer_new(struct snd_card *card, char *id, struct snd_timer_id *tid, | |||
774 | *rtimer = NULL; | 775 | *rtimer = NULL; |
775 | timer = kzalloc(sizeof(*timer), GFP_KERNEL); | 776 | timer = kzalloc(sizeof(*timer), GFP_KERNEL); |
776 | if (timer == NULL) { | 777 | if (timer == NULL) { |
777 | snd_printk(KERN_ERR "timer: cannot allocate\n"); | 778 | pr_err("ALSA: timer: cannot allocate\n"); |
778 | return -ENOMEM; | 779 | return -ENOMEM; |
779 | } | 780 | } |
780 | timer->tmr_class = tid->dev_class; | 781 | timer->tmr_class = tid->dev_class; |
@@ -813,7 +814,7 @@ static int snd_timer_free(struct snd_timer *timer) | |||
813 | if (! list_empty(&timer->open_list_head)) { | 814 | if (! list_empty(&timer->open_list_head)) { |
814 | struct list_head *p, *n; | 815 | struct list_head *p, *n; |
815 | struct snd_timer_instance *ti; | 816 | struct snd_timer_instance *ti; |
816 | snd_printk(KERN_WARNING "timer %p is busy?\n", timer); | 817 | pr_warn("ALSA: timer %p is busy?\n", timer); |
817 | list_for_each_safe(p, n, &timer->open_list_head) { | 818 | list_for_each_safe(p, n, &timer->open_list_head) { |
818 | list_del_init(p); | 819 | list_del_init(p); |
819 | ti = list_entry(p, struct snd_timer_instance, open_list); | 820 | ti = list_entry(p, struct snd_timer_instance, open_list); |
@@ -1955,12 +1956,10 @@ static int __init alsa_timer_init(void) | |||
1955 | #endif | 1956 | #endif |
1956 | 1957 | ||
1957 | if ((err = snd_timer_register_system()) < 0) | 1958 | if ((err = snd_timer_register_system()) < 0) |
1958 | snd_printk(KERN_ERR "unable to register system timer (%i)\n", | 1959 | pr_err("ALSA: unable to register system timer (%i)\n", err); |
1959 | err); | ||
1960 | if ((err = snd_register_device(SNDRV_DEVICE_TYPE_TIMER, NULL, 0, | 1960 | if ((err = snd_register_device(SNDRV_DEVICE_TYPE_TIMER, NULL, 0, |
1961 | &snd_timer_f_ops, NULL, "timer")) < 0) | 1961 | &snd_timer_f_ops, NULL, "timer")) < 0) |
1962 | snd_printk(KERN_ERR "unable to register timer device (%i)\n", | 1962 | pr_err("ALSA: unable to register timer device (%i)\n", err); |
1963 | err); | ||
1964 | snd_timer_proc_init(); | 1963 | snd_timer_proc_init(); |
1965 | return 0; | 1964 | return 0; |
1966 | } | 1965 | } |