pcm: Fix forward/rewind support in iec958 plugin

When forwarding or rewinding, the frame counter was not updated. This
could result in corrupted channel status words or misplaced Z-type
preamble.

Signed-off-by: Alexander E. Patrakov <patrakov@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Alexander E. Patrakov 2014-04-24 20:40:06 +06:00 committed by Takashi Iwai
parent 351870fd2d
commit 80a43f23db
3 changed files with 44 additions and 3 deletions

View file

@ -58,8 +58,14 @@ typedef struct {
snd1_pcm_plugin_undo_read_generic
#define snd_pcm_plugin_undo_write_generic \
snd1_pcm_plugin_undo_write_generic
#define snd_pcm_plugin_rewind \
snd1_pcm_plugin_rewind
#define snd_pcm_plugin_forward \
snd1_pcm_plugin_forward
void snd_pcm_plugin_init(snd_pcm_plugin_t *plugin);
snd_pcm_sframes_t snd_pcm_plugin_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
snd_pcm_sframes_t snd_pcm_plugin_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
extern const snd_pcm_fast_ops_t snd_pcm_plugin_fast_ops;