Re: [PATCH v3 08/13] ASoC: Add SoundWire stream programming interface

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

 



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