Lines Matching refs:iec60958_chstat
968 static int it661221_set_chstat(struct it66121_ctx *ctx, u8 iec60958_chstat[]) in it661221_set_chstat() argument
972 ret = regmap_write(ctx->regmap, IT66121_AUD_CHST_MODE_REG, iec60958_chstat[0] & 0x7C); in it661221_set_chstat()
976 ret = regmap_write(ctx->regmap, IT66121_AUD_CHST_CAT_REG, iec60958_chstat[1]); in it661221_set_chstat()
980 ret = regmap_write(ctx->regmap, IT66121_AUD_CHST_SRCNUM_REG, iec60958_chstat[2] & 0x0F); in it661221_set_chstat()
985 (iec60958_chstat[2] >> 4) & 0x0F); in it661221_set_chstat()
989 ret = regmap_write(ctx->regmap, IT66121_AUD_CHST_CA_FS_REG, iec60958_chstat[3]); in it661221_set_chstat()
993 return regmap_write(ctx->regmap, IT66121_AUD_CHST_OFS_WL_REG, iec60958_chstat[4]); in it661221_set_chstat()
1237 static u8 iec60958_chstat[5]; in it66121_audio_hw_params() local
1314 iec60958_chstat[0] = 0; in it66121_audio_hw_params()
1316 iec60958_chstat[0] |= 0x1; in it66121_audio_hw_params()
1317 iec60958_chstat[0] &= ~(1 << 1); in it66121_audio_hw_params()
1318 iec60958_chstat[1] = 0; in it66121_audio_hw_params()
1319 iec60958_chstat[2] = (channels + 1) / 2; in it66121_audio_hw_params()
1320 iec60958_chstat[2] |= (channels << 4) & 0xF0; in it66121_audio_hw_params()
1321 iec60958_chstat[3] = fs; in it66121_audio_hw_params()
1356 iec60958_chstat[4] = (((~fs) << 4) & 0xF0) | swl; in it66121_audio_hw_params()
1357 ret = it661221_set_chstat(ctx, iec60958_chstat); in it66121_audio_hw_params()