Commit 0cbf324e authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Takashi Iwai

sound/oss: use schedule_timeout_interruptible()

API consolidation with coccinelle found:
./sound/oss/msnd_pinnacle.c:1292:2-18:
        consolidation with schedule_timeout_*() recommended

This is a 1:1 conversion of the current calls to an available helper
only - so only an API consolidation to improve readability.

Patch was compile tested with x86_64_defconfig

Patch is against 4.1-rc5 (localversion-next is -next-20150529)
Signed-off-by: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent d0a601c2
...@@ -1288,8 +1288,7 @@ static int __init calibrate_adc(WORD srate) ...@@ -1288,8 +1288,7 @@ static int __init calibrate_adc(WORD srate)
& ~0x0001, dev.SMA + SMA_wCurrHostStatusFlags); & ~0x0001, dev.SMA + SMA_wCurrHostStatusFlags);
if (msnd_send_word(&dev, 0, 0, HDEXAR_CAL_A_TO_D) == 0 && if (msnd_send_word(&dev, 0, 0, HDEXAR_CAL_A_TO_D) == 0 &&
chk_send_dsp_cmd(&dev, HDEX_AUX_REQ) == 0) { chk_send_dsp_cmd(&dev, HDEX_AUX_REQ) == 0) {
__set_current_state(TASK_INTERRUPTIBLE); schedule_timeout_interruptible(HZ / 3);
schedule_timeout(HZ / 3);
return 0; return 0;
} }
printk(KERN_WARNING LOGNAME ": ADC calibration failed\n"); printk(KERN_WARNING LOGNAME ": ADC calibration failed\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment