Lines Matching refs:mode
24 enum wl1273_mode mode; member
34 u16 mode; in snd_wl1273_fm_set_i2s_mode() local
41 mode = core->i2s_mode & ~WL1273_IS2_WIDTH & ~WL1273_IS2_RATE; in snd_wl1273_fm_set_i2s_mode()
45 mode |= WL1273_IS2_RATE_48K; in snd_wl1273_fm_set_i2s_mode()
48 mode |= WL1273_IS2_RATE_44_1K; in snd_wl1273_fm_set_i2s_mode()
51 mode |= WL1273_IS2_RATE_32K; in snd_wl1273_fm_set_i2s_mode()
54 mode |= WL1273_IS2_RATE_22_05K; in snd_wl1273_fm_set_i2s_mode()
57 mode |= WL1273_IS2_RATE_16K; in snd_wl1273_fm_set_i2s_mode()
60 mode |= WL1273_IS2_RATE_12K; in snd_wl1273_fm_set_i2s_mode()
63 mode |= WL1273_IS2_RATE_11_025; in snd_wl1273_fm_set_i2s_mode()
66 mode |= WL1273_IS2_RATE_8K; in snd_wl1273_fm_set_i2s_mode()
76 mode |= WL1273_IS2_WIDTH_32; in snd_wl1273_fm_set_i2s_mode()
79 mode |= WL1273_IS2_WIDTH_40; in snd_wl1273_fm_set_i2s_mode()
82 mode |= WL1273_IS2_WIDTH_48; in snd_wl1273_fm_set_i2s_mode()
85 mode |= WL1273_IS2_WIDTH_50; in snd_wl1273_fm_set_i2s_mode()
88 mode |= WL1273_IS2_WIDTH_60; in snd_wl1273_fm_set_i2s_mode()
91 mode |= WL1273_IS2_WIDTH_64; in snd_wl1273_fm_set_i2s_mode()
94 mode |= WL1273_IS2_WIDTH_80; in snd_wl1273_fm_set_i2s_mode()
97 mode |= WL1273_IS2_WIDTH_96; in snd_wl1273_fm_set_i2s_mode()
100 mode |= WL1273_IS2_WIDTH_128; in snd_wl1273_fm_set_i2s_mode()
110 dev_dbg(dev, "mode: 0x%04x\n", mode); in snd_wl1273_fm_set_i2s_mode()
112 if (core->i2s_mode != mode) { in snd_wl1273_fm_set_i2s_mode()
113 r = core->write(core, WL1273_I2S_MODE_CONFIG_SET, mode); in snd_wl1273_fm_set_i2s_mode()
117 core->i2s_mode = mode; in snd_wl1273_fm_set_i2s_mode()
142 if (channel_number == 1 && core->mode == WL1273_MODE_RX) in snd_wl1273_fm_set_channel_number()
144 else if (channel_number == 1 && core->mode == WL1273_MODE_TX) in snd_wl1273_fm_set_channel_number()
146 else if (channel_number == 2 && core->mode == WL1273_MODE_RX) in snd_wl1273_fm_set_channel_number()
148 else if (channel_number == 2 && core->mode == WL1273_MODE_TX) in snd_wl1273_fm_set_channel_number()
164 ucontrol->value.enumerated.item[0] = wl1273->mode; in snd_wl1273_get_audio_route()
182 if (wl1273->mode == ucontrol->value.enumerated.item[0]) in snd_wl1273_set_audio_route()
192 wl1273->mode = ucontrol->value.enumerated.item[0]; in snd_wl1273_set_audio_route()
293 switch (wl1273->mode) { in wl1273_startup()
337 if (wl1273->mode == WL1273_MODE_BT) { in wl1273_hw_params()
351 if (wl1273->mode == WL1273_MODE_FM_TX && in wl1273_hw_params()
357 if (wl1273->mode == WL1273_MODE_FM_RX && in wl1273_hw_params()
363 if (wl1273->mode != WL1273_MODE_FM_RX && in wl1273_hw_params()
364 wl1273->mode != WL1273_MODE_FM_TX) { in wl1273_hw_params()
365 pr_err("Unexpected mode: %d.\n", wl1273->mode); in wl1273_hw_params()
413 switch (wl1273->mode) { in wl1273_get_format()
451 wl1273->mode = WL1273_MODE_BT; in wl1273_probe()