]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcsp: Fix initialization with nopcm=1
authorTakashi Iwai <tiwai@suse.de>
Tue, 29 Oct 2013 14:15:20 +0000 (15:15 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 29 Oct 2013 14:15:20 +0000 (15:15 +0100)
commitd09d4469164d5eea79cf3407f76a4d505a2fd70c
tree9e9b552808ff8bede28da00a86167b2a7f99b41d
parentd1714d26e54f1b10c0d7f46b452d0aec298a11e5
ALSA: pcsp: Fix initialization with nopcm=1

When nopcm=1 is set, some initializations based on hrtimer resolution
might be bogus because the driver checks the resolution only when
nopcm=0.  Simply get the resolution always at first for fixing the
bug.

Spotted by coverity CID 139740.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/pcsp/pcsp.c