Lines Matching refs:audio
666 void ps3av_cmd_set_audio_mode(struct ps3av_pkt_audio_mode *audio, u32 avport, in ps3av_cmd_set_audio_mode() argument
682 memset(audio, 0, sizeof(*audio)); in ps3av_cmd_set_audio_mode()
683 ps3av_set_hdr(PS3AV_CID_AUDIO_MODE, sizeof(*audio), &audio->send_hdr); in ps3av_cmd_set_audio_mode()
685 audio->avport = (u8) avport; in ps3av_cmd_set_audio_mode()
686 audio->mask = 0x0FFF; /* XXX set all */ in ps3av_cmd_set_audio_mode()
687 audio->audio_num_of_ch = ch; in ps3av_cmd_set_audio_mode()
688 audio->audio_fs = fs; in ps3av_cmd_set_audio_mode()
689 audio->audio_word_bits = word_bits; in ps3av_cmd_set_audio_mode()
690 audio->audio_format = format; in ps3av_cmd_set_audio_mode()
691 audio->audio_source = source; in ps3av_cmd_set_audio_mode()
695 audio->audio_enable[3] = 1; in ps3av_cmd_set_audio_mode()
698 audio->audio_enable[2] = 1; in ps3av_cmd_set_audio_mode()
699 audio->audio_enable[1] = 1; in ps3av_cmd_set_audio_mode()
703 audio->audio_enable[0] = 1; in ps3av_cmd_set_audio_mode()
708 audio->audio_swap[i] = PS3AV_CMD_AUDIO_SWAP_0; /* no swap */ in ps3av_cmd_set_audio_mode()
711 audio->audio_map[0] = PS3AV_CMD_AUDIO_MAP_OUTPUT_0; in ps3av_cmd_set_audio_mode()
712 audio->audio_map[1] = PS3AV_CMD_AUDIO_MAP_OUTPUT_1; in ps3av_cmd_set_audio_mode()
713 audio->audio_map[2] = PS3AV_CMD_AUDIO_MAP_OUTPUT_2; in ps3av_cmd_set_audio_mode()
714 audio->audio_map[3] = PS3AV_CMD_AUDIO_MAP_OUTPUT_3; in ps3av_cmd_set_audio_mode()
721 audio->audio_layout = PS3AV_CMD_AUDIO_LAYOUT_8CH; in ps3av_cmd_set_audio_mode()
724 audio->audio_layout = PS3AV_CMD_AUDIO_LAYOUT_6CH; in ps3av_cmd_set_audio_mode()
728 audio->audio_layout = PS3AV_CMD_AUDIO_LAYOUT_2CH; in ps3av_cmd_set_audio_mode()
732 audio->audio_layout = PS3AV_CMD_AUDIO_LAYOUT_2CH; in ps3av_cmd_set_audio_mode()
736 audio->audio_downmix = PS3AV_CMD_AUDIO_DOWNMIX_PERMITTED; in ps3av_cmd_set_audio_mode()
738 audio->audio_downmix_level = 0; /* 0dB */ in ps3av_cmd_set_audio_mode()
742 audio->audio_cs_info[i] = ps3av_mode_cs_info[i]; in ps3av_cmd_set_audio_mode()
746 audio->audio_cs_info[3] &= ~CS_MASK; in ps3av_cmd_set_audio_mode()
747 audio->audio_cs_info[3] |= CS_44; in ps3av_cmd_set_audio_mode()
750 audio->audio_cs_info[3] &= ~CS_MASK; in ps3av_cmd_set_audio_mode()
751 audio->audio_cs_info[3] |= CS_88; in ps3av_cmd_set_audio_mode()
754 audio->audio_cs_info[3] &= ~CS_MASK; in ps3av_cmd_set_audio_mode()
755 audio->audio_cs_info[3] |= CS_96; in ps3av_cmd_set_audio_mode()
758 audio->audio_cs_info[3] &= ~CS_MASK; in ps3av_cmd_set_audio_mode()
759 audio->audio_cs_info[3] |= CS_176; in ps3av_cmd_set_audio_mode()
762 audio->audio_cs_info[3] &= ~CS_MASK; in ps3av_cmd_set_audio_mode()
763 audio->audio_cs_info[3] |= CS_192; in ps3av_cmd_set_audio_mode()
770 spdif_through = audio->audio_cs_info[0] & 0x02; in ps3av_cmd_set_audio_mode()
778 audio->audio_word_bits = PS3AV_CMD_AUDIO_WORD_BITS_16; in ps3av_cmd_set_audio_mode()
779 audio->audio_format = PS3AV_CMD_AUDIO_FORMAT_BITSTREAM; in ps3av_cmd_set_audio_mode()