Lines Matching refs:decoder
768 struct saa717x_state *decoder) in set_audio_regs() argument
775 saa717x_write(sd, 0x0594, decoder->audio_input); in set_audio_regs()
777 decoder->audio_input); in set_audio_regs()
780 work_l = (min(65536 - decoder->audio_main_balance, 32768) * decoder->audio_main_volume) / 32768; in set_audio_regs()
781 work_r = (min(decoder->audio_main_balance, (u16)32768) * decoder->audio_main_volume) / 32768; in set_audio_regs()
782 decoder->audio_main_vol_l = (long)work_l * (24 - (-40)) / 65535 - 40; in set_audio_regs()
783 decoder->audio_main_vol_r = (long)work_r * (24 - (-40)) / 65535 - 40; in set_audio_regs()
789 if (decoder->audio_main_mute) { in set_audio_regs()
792 val = (u8)decoder->audio_main_vol_l | in set_audio_regs()
793 ((u8)decoder->audio_main_vol_r << 8); in set_audio_regs()
799 val = decoder->audio_main_bass & 0x1f; in set_audio_regs()
800 val |= (decoder->audio_main_treble & 0x1f) << 5; in set_audio_regs()
914 struct saa717x_state *decoder = to_state(sd); in saa717x_s_video_routing() local
925 if (decoder->input != input) { in saa717x_s_video_routing()
928 decoder->input = input_line; in saa717x_s_video_routing()
946 set_audio_mode(sd, decoder->tuner_audio_mode); in saa717x_s_video_routing()
1052 struct saa717x_state *decoder = to_state(sd); in saa717x_s_radio() local
1054 decoder->radio = 1; in saa717x_s_radio()
1060 struct saa717x_state *decoder = to_state(sd); in saa717x_s_std() local
1065 decoder->radio = 0; in saa717x_s_std()
1066 decoder->std = std; in saa717x_s_std()
1073 struct saa717x_state *decoder = to_state(sd); in saa717x_s_audio_routing() local
1076 decoder->audio_input = input; in saa717x_s_audio_routing()
1079 decoder->audio_input); in saa717x_s_audio_routing()
1080 set_audio_regs(sd, decoder); in saa717x_s_audio_routing()
1088 struct saa717x_state *decoder = to_state(sd); in saa717x_s_stream() local
1092 decoder->enable = enable; in saa717x_s_stream()
1100 struct saa717x_state *decoder = to_state(sd); in saa717x_s_tuner() local
1125 decoder->tuner_audio_mode = audio_mode; in saa717x_s_tuner()
1128 set_audio_mode(sd, decoder->tuner_audio_mode); in saa717x_s_tuner()
1134 struct saa717x_state *decoder = to_state(sd); in saa717x_g_tuner() local
1137 if (decoder->radio) in saa717x_g_tuner()
1234 struct saa717x_state *decoder; in saa717x_probe() local
1244 decoder = devm_kzalloc(&client->dev, sizeof(*decoder), GFP_KERNEL); in saa717x_probe()
1245 if (decoder == NULL) in saa717x_probe()
1248 sd = &decoder->sd; in saa717x_probe()
1271 hdl = &decoder->hdl; in saa717x_probe()
1300 decoder->std = V4L2_STD_NTSC; in saa717x_probe()
1301 decoder->input = -1; in saa717x_probe()
1302 decoder->enable = 1; in saa717x_probe()
1305 decoder->playback = 0; /* initially capture mode used */ in saa717x_probe()
1306 decoder->audio = 1; /* DECODER_AUDIO_48_KHZ */ in saa717x_probe()
1308 decoder->audio_input = 2; /* FIXME!! */ in saa717x_probe()
1310 decoder->tuner_audio_mode = TUNER_AUDIO_STEREO; in saa717x_probe()
1312 decoder->audio_main_vol_l = 6; in saa717x_probe()
1313 decoder->audio_main_vol_r = 6; in saa717x_probe()