• Home
  • Raw
  • Download

Lines Matching refs:mode

178 	int mode;  in twl4030_codec_enable()  local
184 mode = twl4030_audio_enable_resource(TWL4030_AUDIO_RES_POWER); in twl4030_codec_enable()
186 mode = twl4030_audio_disable_resource(TWL4030_AUDIO_RES_POWER); in twl4030_codec_enable()
188 if (mode >= 0) in twl4030_codec_enable()
1695 u8 mode, old_mode, format, old_format; in twl4030_hw_params() local
1700 mode = twl4030_read(component, TWL4030_REG_CODEC_MODE); in twl4030_hw_params()
1704 if ((mode & TWL4030_OPTION_1) && in twl4030_hw_params()
1718 mode = old_mode & ~TWL4030_APLL_RATE; in twl4030_hw_params()
1722 mode |= TWL4030_APLL_RATE_8000; in twl4030_hw_params()
1725 mode |= TWL4030_APLL_RATE_11025; in twl4030_hw_params()
1728 mode |= TWL4030_APLL_RATE_12000; in twl4030_hw_params()
1731 mode |= TWL4030_APLL_RATE_16000; in twl4030_hw_params()
1734 mode |= TWL4030_APLL_RATE_22050; in twl4030_hw_params()
1737 mode |= TWL4030_APLL_RATE_24000; in twl4030_hw_params()
1740 mode |= TWL4030_APLL_RATE_32000; in twl4030_hw_params()
1743 mode |= TWL4030_APLL_RATE_44100; in twl4030_hw_params()
1746 mode |= TWL4030_APLL_RATE_48000; in twl4030_hw_params()
1749 mode |= TWL4030_APLL_RATE_96000; in twl4030_hw_params()
1774 if (format != old_format || mode != old_mode) { in twl4030_hw_params()
1781 twl4030_write(component, TWL4030_REG_CODEC_MODE, mode); in twl4030_hw_params()
1785 twl4030_write(component, TWL4030_REG_CODEC_MODE, mode); in twl4030_hw_params()
1927 u8 mode; in twl4030_voice_startup() local
1942 mode = twl4030_read(component, TWL4030_REG_CODEC_MODE) in twl4030_voice_startup()
1945 if (mode != TWL4030_OPTION_2) { in twl4030_voice_startup()
1969 u8 old_mode, mode; in twl4030_voice_hw_params() local
1977 mode = old_mode; in twl4030_voice_hw_params()
1981 mode &= ~(TWL4030_SEL_16K); in twl4030_voice_hw_params()
1984 mode |= TWL4030_SEL_16K; in twl4030_voice_hw_params()
1992 if (mode != old_mode) { in twl4030_voice_hw_params()
1999 twl4030_write(component, TWL4030_REG_CODEC_MODE, mode); in twl4030_voice_hw_params()
2002 twl4030_write(component, TWL4030_REG_CODEC_MODE, mode); in twl4030_voice_hw_params()