Lines Matching refs:format
1708 u8 mode, old_mode, format, old_format; in twl4030_hw_params() local
1712 format = twl4030_read(codec, TWL4030_REG_AUDIO_IF); in twl4030_hw_params()
1718 ((format & TWL4030_AIF_FORMAT) == TWL4030_AIF_FORMAT_TDM)) in twl4030_hw_params()
1772 format = old_format; in twl4030_hw_params()
1773 format &= ~TWL4030_DATA_WIDTH; in twl4030_hw_params()
1776 format |= TWL4030_DATA_WIDTH_16S_16W; in twl4030_hw_params()
1779 format |= TWL4030_DATA_WIDTH_32S_24W; in twl4030_hw_params()
1787 if (format != old_format || mode != old_mode) { in twl4030_hw_params()
1795 twl4030_write(codec, TWL4030_REG_AUDIO_IF, format); in twl4030_hw_params()
1799 twl4030_write(codec, TWL4030_REG_AUDIO_IF, format); in twl4030_hw_params()
1850 u8 old_format, format; in twl4030_set_dai_fmt() local
1854 format = old_format; in twl4030_set_dai_fmt()
1859 format &= ~(TWL4030_AIF_SLAVE_EN); in twl4030_set_dai_fmt()
1860 format &= ~(TWL4030_CLK256FS_EN); in twl4030_set_dai_fmt()
1863 format |= TWL4030_AIF_SLAVE_EN; in twl4030_set_dai_fmt()
1864 format |= TWL4030_CLK256FS_EN; in twl4030_set_dai_fmt()
1871 format &= ~TWL4030_AIF_FORMAT; in twl4030_set_dai_fmt()
1874 format |= TWL4030_AIF_FORMAT_CODEC; in twl4030_set_dai_fmt()
1877 format |= TWL4030_AIF_FORMAT_TDM; in twl4030_set_dai_fmt()
1883 if (format != old_format) { in twl4030_set_dai_fmt()
1890 twl4030_write(codec, TWL4030_REG_AUDIO_IF, format); in twl4030_set_dai_fmt()
1893 twl4030_write(codec, TWL4030_REG_AUDIO_IF, format); in twl4030_set_dai_fmt()
2048 u8 old_format, format; in twl4030_voice_set_dai_fmt() local
2052 format = old_format; in twl4030_voice_set_dai_fmt()
2057 format &= ~(TWL4030_VIF_SLAVE_EN); in twl4030_voice_set_dai_fmt()
2060 format |= TWL4030_VIF_SLAVE_EN; in twl4030_voice_set_dai_fmt()
2069 format &= ~(TWL4030_VIF_FORMAT); in twl4030_voice_set_dai_fmt()
2072 format |= TWL4030_VIF_FORMAT; in twl4030_voice_set_dai_fmt()
2078 if (format != old_format) { in twl4030_voice_set_dai_fmt()
2085 twl4030_write(codec, TWL4030_REG_VOICE_IF, format); in twl4030_voice_set_dai_fmt()
2088 twl4030_write(codec, TWL4030_REG_VOICE_IF, format); in twl4030_voice_set_dai_fmt()