ALSA: Make snd_sgbuf_get_{ptr|addr}() available for non-SG cases
authorTakashi Iwai <tiwai@suse.de>
Fri, 21 Sep 2012 03:29:12 +0000 (20:29 -0700)
committerTakashi Iwai <tiwai@suse.de>
Sun, 23 Sep 2012 09:24:42 +0000 (11:24 +0200)
commit9d069dc00b02b886abe3cab5e369140f7cd78965
treed2f29878332a7c36a6c30128b67b2780c4a44f41
parent3d98c21d064bfbb8c6fddc659471acb4950320fa
ALSA: Make snd_sgbuf_get_{ptr|addr}() available for non-SG cases

Passing struct snd_dma_buffer pointer instead, so that they work no
matter whether real SG buffer is used or not.

This is a preliminary work for the HD-audio DSP loader code.

Signed-off-by: Ian Minett <ian_minett@creativelabs.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/memalloc.h
include/sound/pcm.h
sound/core/pcm_memory.c
sound/core/sgbuf.c