Lines Matching refs:decoder
2 * saa717x - Philips SAA717xHL video decoder driver
44 MODULE_DESCRIPTION("Philips SAA717x audio/video decoder driver");
782 struct saa717x_state *decoder)
789 saa717x_write(sd, 0x0594, decoder->audio_input);
791 decoder->audio_input);
794 work_l = (min(65536 - decoder->audio_main_balance, 32768) * decoder->audio_main_volume) / 32768;
795 work_r = (min(decoder->audio_main_balance, (u16)32768) * decoder->audio_main_volume) / 32768;
796 decoder->audio_main_vol_l = (long)work_l * (24 - (-40)) / 65535 - 40;
797 decoder->audio_main_vol_r = (long)work_r * (24 - (-40)) / 65535 - 40;
803 if (decoder->audio_main_mute) {
806 val = (u8)decoder->audio_main_vol_l |
807 ((u8)decoder->audio_main_vol_r << 8);
813 val = decoder->audio_main_bass & 0x1f;
814 val |= (decoder->audio_main_treble & 0x1f) << 5;
928 struct saa717x_state *decoder = to_state(sd);
933 v4l2_dbg(1, debug, sd, "decoder set input (%d)\n", input);
939 if (decoder->input != input) {
942 decoder->input = input_line;
960 set_audio_mode(sd, decoder->tuner_audio_mode);
1011 v4l2_dbg(1, debug, sd, "decoder set size\n");
1070 struct saa717x_state *decoder = to_state(sd);
1072 decoder->radio = 1;
1078 struct saa717x_state *decoder = to_state(sd);
1080 v4l2_dbg(1, debug, sd, "decoder set norm ");
1083 decoder->radio = 0;
1084 decoder->std = std;
1091 struct saa717x_state *decoder = to_state(sd);
1094 decoder->audio_input = input;
1096 "set decoder audio input to %d\n",
1097 decoder->audio_input);
1098 set_audio_regs(sd, decoder);
1106 struct saa717x_state *decoder = to_state(sd);
1108 v4l2_dbg(1, debug, sd, "decoder %s output\n",
1110 decoder->enable = enable;
1118 struct saa717x_state *decoder = to_state(sd);
1143 decoder->tuner_audio_mode = audio_mode;
1146 set_audio_mode(sd, decoder->tuner_audio_mode);
1152 struct saa717x_state *decoder = to_state(sd);
1155 if (decoder->radio)
1255 struct saa717x_state *decoder;
1265 decoder = kzalloc(sizeof(struct saa717x_state), GFP_KERNEL);
1266 if (decoder == NULL)
1269 sd = &decoder->sd;
1279 kfree(decoder);
1293 hdl = &decoder->hdl;
1319 kfree(decoder);
1323 decoder->std = V4L2_STD_NTSC;
1324 decoder->input = -1;
1325 decoder->enable = 1;
1327 decoder->playback = 0; /* initially capture mode used */
1328 decoder->audio = 1; /* DECODER_AUDIO_48_KHZ */
1330 decoder->audio_input = 2;
1332 decoder->tuner_audio_mode = TUNER_AUDIO_STEREO;
1334 decoder->audio_main_vol_l = 6;
1335 decoder->audio_main_vol_r = 6;