17 Apr
2018
17 Apr
'18
5:49 p.m.
On Tue, Apr 17, 2018 at 12:11:18PM +0100, Mark Brown wrote:
On Mon, Apr 16, 2018 at 08:53:36PM +0530, Vinod Koul wrote:
+/**
- snd_soc_dai_set_sdw_stream() - Configures a DAI for SDW stream operation
- @dai: DAI
- @stream: STREAM
- @direction: Stream direction(Playback/Capture)
- SoundWire subsystem doesn't have a notion of direction and we reuse
- the ASoC stream direction to configure source/sink ports.
- Returns 0 on success, a negative error code otherwise.
- */
+static inline int snd_soc_dai_set_sdw_stream(struct snd_soc_dai *dai,
void *stream, int direction)
+{
How do we clear the stream that's been set up? I'd expect that to be a useful thing to do from a housekeeping point of view if nothing else.
Right it needs to be cleared and that is achieved by setting with NULL.
Thanks
--
~Vinod