]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hiface: return correct XRUN indication
authorEldad Zack <eldad@fogrefinery.com>
Tue, 23 Jul 2013 09:15:06 +0000 (11:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 24 Jul 2013 08:51:37 +0000 (10:51 +0200)
commit8acbe2b3bd3b877e397cfeca7a4142acb45f57cb
tree928e21f066d1e7d5b8341f66ac9dbd1fa8d192f9
parent6b885181f565fa32bbdd883e5f3b790a5453a51d
ALSA: hiface: return correct XRUN indication

Return SNDRV_PCM_POS_XRUN (snd_pcm_uframes_t) instead of
SNDRV_PCM_STATE_XRUN (snd_pcm_state_t) from the pointer
function of hiface, as expected by snd_pcm_update_hw_ptr0().

Caught by sparse.

Cc: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/hiface/pcm.c