Re: Question about hw_param with Ctrl-Z + fg

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

 



Hi,

On Apr 4 2017 09:54, Kuninori Morimoto wrote:
Is this aplay issue ? or kernel issue ?
...
Ctrl-Z case
	- aplay xxx.wav
=>	- hw_param
	- SNDRV_PCM_TRIGGER_START
	- Ctrl-Z
	- SNDRV_PCM_TRIGGER_STOP
	- fg
=>	- ## no hw_param here
	- SNDRV_PCM_TRIGGER_START
	- Ctrl-C (stop)
	- SNDRV_PCM_TRIGGER_STOP

No issues.

I think it better to implement what you want in any .prepare callbacks, instead of the .be_hw_params_fixup callback, because in this case, PCM substream lapses into XRUN state in call graph from your hw IRQ handler. Typical applications recover from this state by calling ioctl(PREPARE), without any call of ioctl(HW_PARAMS).

Actually, you can see applications call ioctl(PREPARE), before you see call of 'struct snd_pcm_ops.trigger(START)'.


Regards

Takashi Sakamoto
_______________________________________________
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