27 static int set_audclk_freq(
struct cx18 *cx,
u32 freq)
31 if (freq != 32000 && freq != 44100 && freq != 48000)
345 static void set_volume(
struct cx18 *cx,
int volume)
348 int vol = volume >> 9;
361 static void set_bass(
struct cx18 *cx,
int bass)
367 static void set_treble(
struct cx18 *cx,
int treble)
373 static void set_balance(
struct cx18 *cx,
int balance)
375 int bal = balance >> 8;
418 struct cx18 *cx = v4l2_get_subdevdata(sd);
431 retval = set_audclk_freq(cx, freq);
445 struct cx18 *cx = v4l2_get_subdevdata(sd);
449 set_volume(cx, ctrl->
val);
452 set_bass(cx, ctrl->
val);
455 set_treble(cx, ctrl->
val);
458 set_balance(cx, ctrl->
val);
470 .s_ctrl = cx18_av_audio_s_ctrl,