Lines Matching +full:fsync +full:- +full:rising +full:- +full:edge
1 /* SPDX-License-Identifier: GPL-2.0
3 * linux/sound/soc-dai.h -- ALSA SoC Layer
5 * Copyright: 2005-2008 Wolfson Microelectronics. PLC.
66 * define GATED -> CONT. GATED will be selected if both are selected.
82 * - "normal" polarity means signal is available at rising edge of BCLK
83 * - "inverted" polarity means signal is available at falling edge of BCLK
85 * FSYNC "normal" polarity depends on the frame format:
86 * - I2S: frame consists of left then right channel data. Left channel starts
87 * with falling FSYNC edge, right channel starts with rising FSYNC edge.
88 * - Left/Right Justified: frame consists of left then right channel data.
89 * Left channel starts with rising FSYNC edge, right channel starts with
90 * falling FSYNC edge.
91 * - DSP A/B: Frame starts with rising FSYNC edge.
92 * - AC97: Frame starts with rising FSYNC edge.
94 * "Negative" FSYNC polarity is the one opposite of "normal" polarity.
121 /* previous definitions kept for backwards-compatibility, do not use in new contributions */
233 snd_soc_dai_action(dai, stream, -1); in snd_soc_dai_deactivate()
320 * DAI digital mute - optional.
321 * Called by soc-core to minimise any pops.
326 * ALSA PCM audio operations - all optional.
327 * Called by soc-core during audio PCM operations.
367 /* probe ordering - for components with runtime dependencies */
456 /* Symmetry data - only valid if symmetry is being enforced */
480 &dai->driver->playback : &dai->driver->capture; in snd_soc_dai_get_pcm_stream()
488 return dai->stream[stream].widget; in snd_soc_dai_get_widget()
496 dai->stream[stream].widget = widget; in snd_soc_dai_set_widget()
501 #define snd_soc_dai_get_dma_data(dai, ss) snd_soc_dai_dma_data_get(dai, ss->stream)
504 return dai->stream[stream].dma_data; in snd_soc_dai_dma_data_get()
509 #define snd_soc_dai_set_dma_data(dai, ss, data) snd_soc_dai_dma_data_set(dai, ss->stream, data)
512 dai->stream[stream].dma_data = data; in snd_soc_dai_dma_data_set()
523 return dai->stream[stream].tdm_mask; in snd_soc_dai_tdm_mask_get()
529 dai->stream[stream].tdm_mask = tdm_mask; in snd_soc_dai_tdm_mask_set()
535 return dai->stream[stream].active; in snd_soc_dai_stream_active()
541 dev_set_drvdata(dai->dev, data); in snd_soc_dai_set_drvdata()
546 return dev_get_drvdata(dai->dev); in snd_soc_dai_get_drvdata()
550 * snd_soc_dai_set_stream() - Configures a DAI for stream operation
564 if (dai->driver->ops->set_stream) in snd_soc_dai_set_stream()
565 return dai->driver->ops->set_stream(dai, stream, direction); in snd_soc_dai_set_stream()
567 return -ENOTSUPP; in snd_soc_dai_set_stream()
571 * snd_soc_dai_get_stream() - Retrieves stream from DAI
579 * ERR_PTR(-ENOTSUPP) if callback is not supported;
584 if (dai->driver->ops->get_stream) in snd_soc_dai_get_stream()
585 return dai->driver->ops->get_stream(dai, direction); in snd_soc_dai_get_stream()
587 return ERR_PTR(-ENOTSUPP); in snd_soc_dai_get_stream()