Lines Matching +full:post +full:-
1 // SPDX-License-Identifier: GPL-2.0-or-later
8 #include <media/v4l2-common.h>
9 #include <media/drv-intf/cx25840.h>
11 #include "cx25840-core.h"
35 if (state->aud_input != CX25840_AUDIO_SERIAL) { in cx25840_set_audclk_freq()
39 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
40 * AUX_PLL Integer = 0x06, AUX PLL Post Divider = 0x10 in cx25840_set_audclk_freq()
47 * 432 MHz pre-postdivide in cx25840_set_audclk_freq()
53 * 196.6 MHz pre-postdivide in cx25840_set_audclk_freq()
61 * SA_MCLK_DIV = 0x10 = 384/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
77 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
78 * AUX_PLL Integer = 0x09, AUX PLL Post Divider = 0x10 in cx25840_set_audclk_freq()
85 * 432 MHz pre-postdivide in cx25840_set_audclk_freq()
91 * 271 MHz pre-postdivide in cx25840_set_audclk_freq()
98 * SA_MCLK_DIV = 0x10 = 384/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
114 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
115 * AUX_PLL Integer = 0x0a, AUX PLL Post Divider = 0x10 in cx25840_set_audclk_freq()
122 * 432 MHz pre-postdivide in cx25840_set_audclk_freq()
128 * 295 MHz pre-postdivide in cx25840_set_audclk_freq()
135 * SA_MCLK_DIV = 0x10 = 384/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
153 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
154 * AUX_PLL Integer = 0x08, AUX PLL Post Divider = 0x1e in cx25840_set_audclk_freq()
161 * 432 MHz pre-postdivide in cx25840_set_audclk_freq()
167 * 246 MHz pre-postdivide in cx25840_set_audclk_freq()
174 * SA_MCLK_DIV = 0x14 = 256/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
194 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
195 * AUX_PLL Integer = 0x09, AUX PLL Post Divider = 0x18 in cx25840_set_audclk_freq()
202 * 432 MHz pre-postdivide in cx25840_set_audclk_freq()
208 * 271 MHz pre-postdivide in cx25840_set_audclk_freq()
215 * SA_MCLK_DIV = 0x10 = 256/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
235 * VID_PLL Integer = 0x0f, VID_PLL Post Divider = 0x04 in cx25840_set_audclk_freq()
236 * AUX_PLL Integer = 0x0a, AUX PLL Post Divider = 0x18 in cx25840_set_audclk_freq()
243 * 432 MHz pre-postdivide in cx25840_set_audclk_freq()
249 * 295 MHz pre-postdivide in cx25840_set_audclk_freq()
256 * SA_MCLK_DIV = 0x10 = 256/384 * AUX_PLL post dvivider in cx25840_set_audclk_freq()
276 state->audclk_freq = freq; in cx25840_set_audclk_freq()
290 if (state->aud_input != CX25840_AUDIO_SERIAL) { in cx23885_set_audclk_freq()
297 /* FIXME return -EINVAL; */ in cx23885_set_audclk_freq()
306 /* FIXME return -EINVAL; */ in cx23885_set_audclk_freq()
323 state->audclk_freq = freq; in cx23885_set_audclk_freq()
332 if (state->aud_input != CX25840_AUDIO_SERIAL) { in cx231xx_set_audclk_freq()
399 state->audclk_freq = freq; in cx231xx_set_audclk_freq()
409 return -EINVAL; in set_audclk_freq()
437 if (state->aud_input == CX25840_AUDIO_SERIAL) { in cx25840_audio_set_path()
442 * non-tuner inputs: autodetection is specific for in cx25840_audio_set_path()
450 set_audclk_freq(client, state->audclk_freq); in cx25840_audio_set_path()
453 if (state->aud_input != CX25840_AUDIO_SERIAL) { in cx25840_audio_set_path()
472 /* Convert the volume to msp3400 values (0-127) */ in set_volume()
476 * -114dB to -96dB maps to 0 in set_volume()
481 vol -= 23; in set_volume()
485 cx25840_write(client, 0x8d4, 228 - (vol * 2)); in set_volume()
500 cx25840_and_or(client, 0x8d5, ~0x7f, 0x80 - bal); in set_balance()
512 if (state->aud_input != CX25840_AUDIO_SERIAL) { in cx25840_s_clock_freq()
517 if (state->aud_input != CX25840_AUDIO_SERIAL) in cx25840_s_clock_freq()
530 switch (ctrl->id) { in cx25840_audio_s_ctrl()
532 if (state->mute->val) in cx25840_audio_s_ctrl()
535 set_volume(client, state->volume->val); in cx25840_audio_s_ctrl()
540 48 - (ctrl->val * 48 / 0xffff)); in cx25840_audio_s_ctrl()
545 48 - (ctrl->val * 48 / 0xffff)); in cx25840_audio_s_ctrl()
548 set_balance(client, ctrl->val); in cx25840_audio_s_ctrl()
551 return -EINVAL; in cx25840_audio_s_ctrl()