Lines Matching defs:format

148 	switch (ssp->ssp_prm[di].hw_cfg[hwi].format & SSP_FMT_CLOCK_PROVIDER_MASK) {
167 fprintf(stderr, "ssp_calculate(): format & PROVIDER_MASK EINVAL\n");
172 switch (ssp->ssp_prm[di].hw_cfg[hwi].format & SSP_FMT_INV_MASK) {
176 inverted_frame = 1; /* handled later with format */
180 inverted_frame = 1; /* handled later with format */
186 fprintf(stderr, "ssp_calculate: format & INV_MASK EINVAL\n");
298 /* format */
299 switch (ssp->ssp_prm[di].hw_cfg[hwi].format & SSP_FMT_FORMAT_MASK) {
466 fprintf(stderr, "ssp_set_config(): invalid format 0x%04x\n",
467 ssp->ssp_prm[di].hw_cfg[hwi].format);
629 tr->format |= SET_BITS(7, 0, aux->tr_start.number_of_channels);
630 tr->format |= SET_BITS(15, 8, aux->tr_start.valid_bit_depth);
631 tr->format |= SET_BITS(23, 16, aux->tr_start.sample_type);
647 tr->format |= SET_BITS(7, 0, aux->tr_stop.number_of_channels);
648 tr->format |= SET_BITS(15, 8, aux->tr_stop.valid_bit_depth);
649 tr->format |= SET_BITS(23, 16, aux->tr_stop.sample_type);
957 int ssp_hw_set_params(struct intel_nhlt_params *nhlt, const char *format,
971 /* compose format out of clock related string variables */
974 if (!strcmp(format, "I2S")) {
975 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format = SSP_FMT_I2S;
976 } else if (!strcmp(format, "RIGHT_J")) {
977 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format = SSP_FMT_RIGHT_J;
978 } else if (!strcmp(format, "LEFT_J")) {
979 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format = SSP_FMT_LEFT_J;
980 } else if (!strcmp(format, "DSP_A")) {
981 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format = SSP_FMT_DSP_A;
982 } else if (!strcmp(format, "DSP_B")) {
983 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format = SSP_FMT_DSP_B;
985 fprintf(stderr, "no valid format specified for ssp: %s\n", format);
993 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format |= SSP_FMT_CBP_CFP;
995 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format |= SSP_FMT_CBP_CFC;
999 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format |= SSP_FMT_CBC_CFP;
1001 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format |= SSP_FMT_CBC_CFC;
1007 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format |= SSP_FMT_IB_IF;
1009 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format |= SSP_FMT_IB_NF;
1012 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format |= SSP_FMT_NB_IF;
1014 ssp->ssp_prm[ssp->ssp_count].hw_cfg[hwi].format |= SSP_FMT_NB_NF;