Lines Matching refs:format

1713 	u8 mode, old_mode, format, old_format;  in twl4030_hw_params()  local
1717 format = twl4030_read(codec, TWL4030_REG_AUDIO_IF); in twl4030_hw_params()
1723 ((format & TWL4030_AIF_FORMAT) == TWL4030_AIF_FORMAT_TDM)) in twl4030_hw_params()
1777 format = old_format; in twl4030_hw_params()
1778 format &= ~TWL4030_DATA_WIDTH; in twl4030_hw_params()
1781 format |= TWL4030_DATA_WIDTH_16S_16W; in twl4030_hw_params()
1784 format |= TWL4030_DATA_WIDTH_32S_24W; in twl4030_hw_params()
1792 if (format != old_format || mode != old_mode) { in twl4030_hw_params()
1800 twl4030_write(codec, TWL4030_REG_AUDIO_IF, format); in twl4030_hw_params()
1804 twl4030_write(codec, TWL4030_REG_AUDIO_IF, format); in twl4030_hw_params()
1855 u8 old_format, format; in twl4030_set_dai_fmt() local
1859 format = old_format; in twl4030_set_dai_fmt()
1864 format &= ~(TWL4030_AIF_SLAVE_EN); in twl4030_set_dai_fmt()
1865 format &= ~(TWL4030_CLK256FS_EN); in twl4030_set_dai_fmt()
1868 format |= TWL4030_AIF_SLAVE_EN; in twl4030_set_dai_fmt()
1869 format |= TWL4030_CLK256FS_EN; in twl4030_set_dai_fmt()
1876 format &= ~TWL4030_AIF_FORMAT; in twl4030_set_dai_fmt()
1879 format |= TWL4030_AIF_FORMAT_CODEC; in twl4030_set_dai_fmt()
1882 format |= TWL4030_AIF_FORMAT_TDM; in twl4030_set_dai_fmt()
1888 if (format != old_format) { in twl4030_set_dai_fmt()
1895 twl4030_write(codec, TWL4030_REG_AUDIO_IF, format); in twl4030_set_dai_fmt()
1898 twl4030_write(codec, TWL4030_REG_AUDIO_IF, format); in twl4030_set_dai_fmt()
2053 u8 old_format, format; in twl4030_voice_set_dai_fmt() local
2057 format = old_format; in twl4030_voice_set_dai_fmt()
2062 format &= ~(TWL4030_VIF_SLAVE_EN); in twl4030_voice_set_dai_fmt()
2065 format |= TWL4030_VIF_SLAVE_EN; in twl4030_voice_set_dai_fmt()
2074 format &= ~(TWL4030_VIF_FORMAT); in twl4030_voice_set_dai_fmt()
2077 format |= TWL4030_VIF_FORMAT; in twl4030_voice_set_dai_fmt()
2083 if (format != old_format) { in twl4030_voice_set_dai_fmt()
2090 twl4030_write(codec, TWL4030_REG_VOICE_IF, format); in twl4030_voice_set_dai_fmt()
2093 twl4030_write(codec, TWL4030_REG_VOICE_IF, format); in twl4030_voice_set_dai_fmt()