ALSA: usb-audio: 6fire: return correct XRUN indication
authorEldad Zack <eldad@fogrefinery.com>
Fri, 19 Jul 2013 16:26:53 +0000 (18:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jul 2013 23:18:52 +0000 (16:18 -0700)
commit2d4fe72b277dde96b6cb765b13689d98ee759a5f
treec0b7db8e8f9dd7a4df030041e0a3b9ff8ec49cb3
parent9cfe5af116d3c10595733f11681399f5d80980f6
ALSA: usb-audio: 6fire: return correct XRUN indication

commit be2f93a4c4981b3646b6f98f477154411b8516cb upstream.

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

Caught by sparse.

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/6fire/pcm.c