/sound/soc/sunxi/ |
D | sun8i-codec.c | 243 struct sun8i_codec_aif *aif = &scodec->aifs[i]; in sun8i_codec_update_sample_rate() local 245 if (aif->active_streams) in sun8i_codec_update_sample_rate() 246 max_rate = max(max_rate, aif->sample_rate); in sun8i_codec_update_sample_rate() 380 struct sun8i_codec_aif *aif = &scodec->aifs[dai->id]; in sun8i_codec_set_tdm_slot() local 385 aif->slots = slots; in sun8i_codec_set_tdm_slot() 386 aif->slot_width = slot_width; in sun8i_codec_set_tdm_slot() 496 struct sun8i_codec_aif *aif = &scodec->aifs[dai->id]; in sun8i_codec_hw_params() local 498 unsigned int slots = aif->slots ?: params_channels(params); in sun8i_codec_hw_params() 499 unsigned int slot_width = aif->slot_width ?: params_width(params); in sun8i_codec_hw_params() 573 ret = (aif->open_streams ? clk_set_rate : clk_set_rate_exclusive)(scodec->clk_module, in sun8i_codec_hw_params() [all …]
|
/sound/soc/codecs/ |
D | tscs454.c | 58 struct aif { struct 64 static inline void aif_init(struct aif *aif, unsigned int id) in aif_init() argument 66 aif->id = id; in aif_init() 126 struct aif aifs[TSCS454_DAI_COUNT]; 796 int aif_prepare(struct snd_soc_component *component, struct aif *aif) in aif_prepare() argument 800 ret = aif_set_master(component, aif->id, aif->master); in aif_prepare() 808 struct aif *aif, bool playback) in aif_free() argument 814 dev_dbg(component->dev, "%s(): aif %d\n", __func__, aif->id); in aif_free() 816 set_aif_status_inactive(&tscs454->aifs_status, aif->id, playback); in aif_free() 819 aif->id, tscs454->aifs_status.streams); in aif_free() [all …]
|
D | wm8955.c | 671 u16 aif = 0; in wm8955_set_fmt() local 677 aif |= WM8955_MS; in wm8955_set_fmt() 685 aif |= WM8955_LRP; in wm8955_set_fmt() 688 aif |= 0x3; in wm8955_set_fmt() 691 aif |= 0x2; in wm8955_set_fmt() 696 aif |= 0x1; in wm8955_set_fmt() 710 aif |= WM8955_BCLKINV; in wm8955_set_fmt() 724 aif |= WM8955_BCLKINV | WM8955_LRP; in wm8955_set_fmt() 727 aif |= WM8955_BCLKINV; in wm8955_set_fmt() 730 aif |= WM8955_LRP; in wm8955_set_fmt() [all …]
|
D | wm8961.c | 624 u16 aif = snd_soc_component_read(component, WM8961_AUDIO_INTERFACE_0); in wm8961_set_fmt() local 626 aif &= ~(WM8961_BCLKINV | WM8961_LRP | in wm8961_set_fmt() 631 aif |= WM8961_MS; in wm8961_set_fmt() 644 aif |= 1; in wm8961_set_fmt() 648 aif |= 2; in wm8961_set_fmt() 652 aif |= WM8961_LRP; in wm8961_set_fmt() 655 aif |= 3; in wm8961_set_fmt() 673 aif |= WM8961_LRP; in wm8961_set_fmt() 676 aif |= WM8961_BCLKINV; in wm8961_set_fmt() 679 aif |= WM8961_BCLKINV | WM8961_LRP; in wm8961_set_fmt() [all …]
|
D | wm8995.c | 669 static int configure_aif_clock(struct snd_soc_component *component, int aif) in configure_aif_clock() argument 678 if (aif) in configure_aif_clock() 683 switch (wm8995->sysclk[aif]) { in configure_aif_clock() 708 aif + 1, rate); in configure_aif_clock() 711 wm8995->aifclk[aif] = rate; in configure_aif_clock() 1445 int aif; in wm8995_set_dai_fmt() local 1461 aif = 0; in wm8995_set_dai_fmt() 1464 aif |= WM8995_AIF1_LRCLK_INV; in wm8995_set_dai_fmt() 1467 aif |= (0x3 << WM8995_AIF1_FMT_SHIFT); in wm8995_set_dai_fmt() 1470 aif |= (0x2 << WM8995_AIF1_FMT_SHIFT); in wm8995_set_dai_fmt() [all …]
|
D | wm8958-dsp2.c | 328 int ena, reg, aif; in wm8958_dsp_apply() local 333 aif = 0; in wm8958_dsp_apply() 337 aif = 0; in wm8958_dsp_apply() 341 aif = 1; in wm8958_dsp_apply() 375 aif << WM8958_DSP2CLK_SRC_SHIFT | in wm8958_dsp_apply() 438 static int wm8958_dsp2_busy(struct wm8994_priv *wm8994, int aif) in wm8958_dsp2_busy() argument 443 if (i == aif) in wm8958_dsp2_busy()
|
D | isabelle.c | 915 u16 aif = 0; in isabelle_hw_params() local 956 aif |= ISABELLE_AIF_LENGTH_20; in isabelle_hw_params() 959 aif |= ISABELLE_AIF_LENGTH_32; in isabelle_hw_params() 966 ISABELLE_AIF_LENGTH_MASK, aif); in isabelle_hw_params()
|
D | da732x.c | 945 u32 aif = 0; in da732x_hw_params() local 953 aif |= DA732X_AIF_WORD_16; in da732x_hw_params() 956 aif |= DA732X_AIF_WORD_20; in da732x_hw_params() 959 aif |= DA732X_AIF_WORD_24; in da732x_hw_params() 962 aif |= DA732X_AIF_WORD_32; in da732x_hw_params() 1006 snd_soc_component_update_bits(component, reg_aif, DA732X_AIF_WORD_MASK, aif); in da732x_hw_params()
|
D | wm8996.c | 1534 int aif, best, cur_val, bclk_rate, bclk_reg, i; in wm8996_update_bclk() local 1542 for (aif = 0; aif < WM8996_AIFS; aif++) { in wm8996_update_bclk() 1543 switch (aif) { in wm8996_update_bclk() 1552 bclk_rate = wm8996->bclk_rate[aif]; in wm8996_update_bclk()
|
D | wm8994.c | 162 static int configure_aif_clock(struct snd_soc_component *component, int aif) in configure_aif_clock() argument 169 if (aif) in configure_aif_clock() 174 switch (wm8994->sysclk[aif]) { in configure_aif_clock() 203 aif + 1, rate); in configure_aif_clock() 206 wm8994->aifclk[aif] = rate; in configure_aif_clock() 1059 static int aif_mclk_set(struct snd_soc_component *component, int aif, bool enable) in aif_mclk_set() argument 1065 if (aif) in aif_mclk_set()
|
/sound/soc/intel/boards/ |
D | bytcr_rt5640.c | 1562 int aif; in snd_byt_rt5640_mc_probe() local 1698 aif = 2; in snd_byt_rt5640_mc_probe() 1700 aif = 1; in snd_byt_rt5640_mc_probe() 1750 map_name[BYT_RT5640_MAP(byt_rt5640_quirk)], aif, in snd_byt_rt5640_mc_probe()
|