Lines Matching refs:format
72 static unsigned int get_hdmi_wlen(snd_pcm_format_t format)
74 return snd_pcm_format_physical_width(format) <= 16 ?
78 static unsigned int get_tdm_wlen(snd_pcm_format_t format)
80 return snd_pcm_format_physical_width(format) <= 16 ?
84 static unsigned int get_tdm_channel_bck(snd_pcm_format_t format)
86 return snd_pcm_format_physical_width(format) <= 16 ?
90 static unsigned int get_tdm_lrck_width(snd_pcm_format_t format)
92 return snd_pcm_format_physical_width(format) - 1;
477 snd_pcm_format_t format = params_format(params);
491 snd_pcm_format_physical_width(format);
499 dev_info(afe->dev, "%s(), id %d, rate %d, channels %d, format %d, mclk_rate %d, bck_rate %d\n",
501 tdm_id, rate, channels, format,
517 tdm_con |= get_tdm_lrck_width(format) << LRCK_TDM_WIDTH_SFT;
524 tdm_con |= get_tdm_wlen(format) << WLEN_SFT;
526 tdm_con |= get_tdm_channel_bck(format) << CHANNEL_BCK_CYCLES_SFT;
577 get_hdmi_wlen(format) << AFE_HDMI_OUT_BIT_WIDTH_SFT);