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