Lines Matching refs:wma_cfg

702 	struct q6asm_wma_cfg wma_cfg;  in __q6asm_dai_compr_set_codec_params()  local
745 memset(&wma_cfg, 0x0, sizeof(struct q6asm_wma_cfg)); in __q6asm_dai_compr_set_codec_params()
747 wma_cfg.sample_rate = codec->sample_rate; in __q6asm_dai_compr_set_codec_params()
748 wma_cfg.num_channels = codec->ch_in; in __q6asm_dai_compr_set_codec_params()
749 wma_cfg.bytes_per_sec = codec->bit_rate / 8; in __q6asm_dai_compr_set_codec_params()
750 wma_cfg.block_align = codec->align; in __q6asm_dai_compr_set_codec_params()
751 wma_cfg.bits_per_sample = prtd->bits_per_sample; in __q6asm_dai_compr_set_codec_params()
752 wma_cfg.enc_options = wma->encoder_option; in __q6asm_dai_compr_set_codec_params()
753 wma_cfg.adv_enc_options = wma->adv_encoder_option; in __q6asm_dai_compr_set_codec_params()
754 wma_cfg.adv_enc_options2 = wma->adv_encoder_option2; in __q6asm_dai_compr_set_codec_params()
756 if (wma_cfg.num_channels == 1) in __q6asm_dai_compr_set_codec_params()
757 wma_cfg.channel_mask = 4; /* Mono Center */ in __q6asm_dai_compr_set_codec_params()
758 else if (wma_cfg.num_channels == 2) in __q6asm_dai_compr_set_codec_params()
759 wma_cfg.channel_mask = 3; /* Stereo FL/FR */ in __q6asm_dai_compr_set_codec_params()
766 wma_cfg.fmtag = 0x161; in __q6asm_dai_compr_set_codec_params()
771 wma_cfg.fmtag = 0x166; in __q6asm_dai_compr_set_codec_params()
775 wma_cfg.fmtag = 0x162; in __q6asm_dai_compr_set_codec_params()
779 wma_cfg.fmtag = 0x163; in __q6asm_dai_compr_set_codec_params()
783 wma_cfg.fmtag = 0x167; in __q6asm_dai_compr_set_codec_params()
795 &wma_cfg); in __q6asm_dai_compr_set_codec_params()
799 &wma_cfg); in __q6asm_dai_compr_set_codec_params()