Lines Matching refs:rmh

43 	struct pcxhr_rmh rmh;  in pcxhr_update_analog_audio_level()  local
45 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_WRITE); in pcxhr_update_analog_audio_level()
47 rmh.cmd[0] |= IO_NUM_REG_IN_ANA_LEVEL; in pcxhr_update_analog_audio_level()
48 rmh.cmd[2] = chip->analog_capture_volume[channel]; in pcxhr_update_analog_audio_level()
50 rmh.cmd[0] |= IO_NUM_REG_OUT_ANA_LEVEL; in pcxhr_update_analog_audio_level()
56 rmh.cmd[2] = PCXHR_LINE_PLAYBACK_LEVEL_MAX - vol; in pcxhr_update_analog_audio_level()
58 rmh.cmd[1] = 1 << ((2 * chip->chip_idx) + channel); /* audio mask */ in pcxhr_update_analog_audio_level()
59 rmh.cmd_len = 3; in pcxhr_update_analog_audio_level()
60 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_update_analog_audio_level()
249 struct pcxhr_rmh rmh; in pcxhr_update_playback_stream_level() local
262 pcxhr_init_rmh(&rmh, CMD_STREAM_OUT_LEVEL_ADJUST); in pcxhr_update_playback_stream_level()
264 pcxhr_set_pipe_cmd_params(&rmh, 0, pipe->first_audio, 0, 1<<idx); in pcxhr_update_playback_stream_level()
266 rmh.cmd[0] |= MORE_THAN_ONE_STREAM_LEVEL; in pcxhr_update_playback_stream_level()
267 rmh.cmd[2] = VALID_STREAM_PAN_LEVEL_MASK | VALID_STREAM_LEVEL_1_MASK; in pcxhr_update_playback_stream_level()
268 rmh.cmd[2] |= (left << 10); in pcxhr_update_playback_stream_level()
269 rmh.cmd[3] = VALID_STREAM_PAN_LEVEL_MASK | VALID_STREAM_LEVEL_2_MASK; in pcxhr_update_playback_stream_level()
270 rmh.cmd[3] |= right; in pcxhr_update_playback_stream_level()
271 rmh.cmd_len = 4; in pcxhr_update_playback_stream_level()
273 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_update_playback_stream_level()
293 struct pcxhr_rmh rmh; in pcxhr_update_audio_pipe_level() local
301 pcxhr_init_rmh(&rmh, CMD_AUDIO_LEVEL_ADJUST); in pcxhr_update_audio_pipe_level()
303 pcxhr_set_pipe_cmd_params(&rmh, capture, 0, 0, in pcxhr_update_audio_pipe_level()
308 rmh.cmd[0] |= VALID_AUDIO_IO_DIGITAL_LEVEL; in pcxhr_update_audio_pipe_level()
311 rmh.cmd[2] = chip->digital_capture_volume[channel]; in pcxhr_update_audio_pipe_level()
313 rmh.cmd[0] |= VALID_AUDIO_IO_MONITOR_LEVEL | in pcxhr_update_audio_pipe_level()
318 rmh.cmd[2] = chip->monitoring_volume[channel] << 10; in pcxhr_update_audio_pipe_level()
320 rmh.cmd[2] |= AUDIO_IO_HAS_MUTE_MONITOR_1; in pcxhr_update_audio_pipe_level()
322 rmh.cmd_len = 3; in pcxhr_update_audio_pipe_level()
324 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_update_audio_pipe_level()
573 struct pcxhr_rmh rmh; in pcxhr_set_audio_source() local
594 pcxhr_init_rmh(&rmh, CMD_RESYNC_AUDIO_INPUTS); in pcxhr_set_audio_source()
595 rmh.cmd[0] |= (1 << chip->chip_idx); in pcxhr_set_audio_source()
596 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_set_audio_source()
609 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_WRITE); in pcxhr_set_audio_source()
610 rmh.cmd_len = 2; in pcxhr_set_audio_source()
611 rmh.cmd[0] |= IO_NUM_REG_CONFIG_SRC; in pcxhr_set_audio_source()
612 rmh.cmd[1] = src_config; in pcxhr_set_audio_source()
613 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_set_audio_source()
619 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_WRITE); in pcxhr_set_audio_source()
620 rmh.cmd_len = 3; in pcxhr_set_audio_source()
621 rmh.cmd[0] |= IO_NUM_UER_CHIP_REG; in pcxhr_set_audio_source()
622 rmh.cmd[1] = codec; in pcxhr_set_audio_source()
623 rmh.cmd[2] = ((CS8420_DATA_FLOW_CTL & CHIP_SIG_AND_MAP_SPI) | in pcxhr_set_audio_source()
625 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_set_audio_source()
628 rmh.cmd[2] = ((CS8420_CLOCK_SRC_CTL & CHIP_SIG_AND_MAP_SPI) | in pcxhr_set_audio_source()
630 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_set_audio_source()
856 struct pcxhr_rmh rmh; in pcxhr_iec958_capture_byte() local
858 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_READ); in pcxhr_iec958_capture_byte()
859 rmh.cmd[0] |= IO_NUM_UER_CHIP_REG; in pcxhr_iec958_capture_byte()
862 case 0: rmh.cmd[1] = CS8420_01_CS; break; in pcxhr_iec958_capture_byte()
863 case 1: rmh.cmd[1] = CS8420_23_CS; break; in pcxhr_iec958_capture_byte()
864 case 2: rmh.cmd[1] = CS8420_45_CS; break; in pcxhr_iec958_capture_byte()
865 case 3: rmh.cmd[1] = CS8420_67_CS; break; in pcxhr_iec958_capture_byte()
870 case 0: rmh.cmd[2] = CS8416_CSB0; break; in pcxhr_iec958_capture_byte()
871 case 1: rmh.cmd[2] = CS8416_CSB1; break; in pcxhr_iec958_capture_byte()
872 case 2: rmh.cmd[2] = CS8416_CSB2; break; in pcxhr_iec958_capture_byte()
873 case 3: rmh.cmd[2] = CS8416_CSB3; break; in pcxhr_iec958_capture_byte()
874 case 4: rmh.cmd[2] = CS8416_CSB4; break; in pcxhr_iec958_capture_byte()
880 case 0: rmh.cmd[2] = CS8420_CSB0; break; in pcxhr_iec958_capture_byte()
881 case 1: rmh.cmd[2] = CS8420_CSB1; break; in pcxhr_iec958_capture_byte()
882 case 2: rmh.cmd[2] = CS8420_CSB2; break; in pcxhr_iec958_capture_byte()
883 case 3: rmh.cmd[2] = CS8420_CSB3; break; in pcxhr_iec958_capture_byte()
884 case 4: rmh.cmd[2] = CS8420_CSB4; break; in pcxhr_iec958_capture_byte()
889 rmh.cmd[1] &= 0x0fffff; in pcxhr_iec958_capture_byte()
891 rmh.cmd[2] &= CHIP_SIG_AND_MAP_SPI; in pcxhr_iec958_capture_byte()
892 rmh.cmd_len = 3; in pcxhr_iec958_capture_byte()
893 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_iec958_capture_byte()
898 temp = (unsigned char)rmh.stat[1]; in pcxhr_iec958_capture_byte()
904 if (rmh.stat[1] & (1 << i)) in pcxhr_iec958_capture_byte()
956 struct pcxhr_rmh rmh; in pcxhr_iec958_update_byte() local
966 pcxhr_init_rmh(&rmh, CMD_ACCESS_IO_WRITE); in pcxhr_iec958_update_byte()
967 rmh.cmd[0] |= IO_NUM_REG_CUER; in pcxhr_iec958_update_byte()
968 rmh.cmd[1] = cmd; in pcxhr_iec958_update_byte()
969 rmh.cmd_len = 2; in pcxhr_iec958_update_byte()
973 err = pcxhr_send_msg(chip->mgr, &rmh); in pcxhr_iec958_update_byte()