Re: [PATCH 2/3] ALSA: snd-usb-caiaq: set up internal sample pointer positions in trigger callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daniel Mack wrote:
> Calling prepare() on a stream which is already active

... would be a bug; snd_pcm_pre_prepare() in sound/core/pcm_native.c
should prevent this.  Why do you feel the need for this patch?

> shouldn't touch the sample pointer positions. This code belongs into
> the trigger callback, so move it there.

The trigger callback should execute as fast as possible; any
initialization that isn't need to directly start the stream should go
into the prepare callback.


Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux