alsa-lib/src
Laxmi Devi 6b058fda9d pcm: dmix: Add option to allow alignment of slave pointers
These changes are required due to the kernel
commit 07b7acb51d283d8469696c906b91f1882696a4d4
("ASoC: rsnd: update pointer more accurate")

Issue is that snd_pcm_wait() goes back to waiting because the hw_ptr
is not period aligned. Therefore snd_pcm_wait() will block for a longer
time as required.

With these rcar driver changes the exact position of the dma is returned.
During snd_pcm_start they read hw_ptr as reference, and this hw_ptr
is now not period aligned, and is a little ahead over the period while it
is read. Therefore when the avail is calculated during snd_pcm_wait(),
it is missing the avail_min by a few frames.

An additional option hw_ptr_alignment is provided to dmix configuration,
to allow the user to configure the slave application and hw pointer
alignment at startup

[ Slight indentation and parentheses removals by tiwai ]

Signed-off-by: Laxmi Devi <Laxmi.Devi@in.bosch.com>
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-11-13 15:18:40 +01:00
..
alisp control: Proper reference of internal versioned functions 2018-01-04 15:28:25 +01:00
conf conf/ucm/Dell-WD15-Dock: Fix incorrect device names 2018-10-18 09:38:38 +02:00
control control_hw: Fix issue when applying seccomp policy 2018-08-19 10:08:49 +02:00
hwdep core: Proper reference of internal snd_dlopen() 2018-01-04 15:29:57 +01:00
mixer core: Proper reference of internal snd_dlopen() 2018-01-04 15:29:57 +01:00
pcm pcm: dmix: Add option to allow alignment of slave pointers 2018-11-13 15:18:40 +01:00
rawmidi core: Proper reference of internal snd_dlopen() 2018-01-04 15:29:57 +01:00
seq seq: Fix signedness in MIDI encoder/decoder 2018-08-23 08:34:37 +02:00
timer core: Proper reference of internal snd_dlopen() 2018-01-04 15:29:57 +01:00
topology ASoC: topology: Add alias conf parameter names for hw_configs 2018-04-20 09:27:44 +02:00
ucm ucm: adding the folder of card_long_name when finding verb conf file 2018-05-02 08:42:40 +02:00
async.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
conf.c core: Proper reference of internal snd_dlopen() 2018-01-04 15:29:57 +01:00
confmisc.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
dlmisc.c core: Proper reference of internal snd_dlopen() 2018-01-04 15:29:57 +01:00
error.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
input.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
Makefile.am topology: autotools: Add build support for topology core 2015-07-30 17:10:14 +02:00
names.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
output.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
shmarea.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
socket.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
userfile.c Change FSF address (Franklin Street) 2017-11-14 14:29:26 +01:00
Versions.in Change snd_dlopen() function to return the error string 2017-11-27 21:48:20 +01:00