snd_soc_dai_ops.startup called for all codecs

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

 



Hi,

I'm trying to create a sound card which has two codecs associated with
one DAI. One codec is responsible for playback and the other one for
capture. I can see in soc-pcm.c that
__soc_pcm_hw_params() is checking if the stream is valid for the
current codec with
snd_soc_dai_stream_valid() and if it isn't it is not calling the
hw_params() callback.
But this check is not there in __soc_pcm_open() which calls
snd_soc_dai_startup() for every codec. Can someone shed some light on
this? Why is startup() called for codecs that don't support the
current stream?

Thank you!

Best Regards,
Peter Suti



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

  Powered by Linux