Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88538bb5 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] cx231xx: Fix identation



One of the identation blocks is wrong. Fix it.

While here, replace pr_info by pr_debug inside such block and
add the function name to the print messages, as otherwise they
will not help much.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 589dadf2
Loading
Loading
Loading
Loading
+32 −28
Original line number Diff line number Diff line
@@ -2534,33 +2534,37 @@ int cx231xx_initialize_stream_xfer(struct cx231xx *dev, u32 media_type)
			break;

		case TS1_serial_mode:
			pr_info("%s: set ts1 registers", __func__);
			pr_debug("%s: set ts1 registers", __func__);

			if (dev->board.has_417) {
			pr_info(" MPEG\n");
				pr_debug("%s: MPEG\n", __func__);
				value &= 0xFFFFFFFC;
				value |= 0x3;

			status = cx231xx_mode_register(dev, TS_MODE_REG, value);
				status = cx231xx_mode_register(dev,
							 TS_MODE_REG, value);

				val[0] = 0x04;
				val[1] = 0xA3;
				val[2] = 0x3B;
				val[3] = 0x00;
			status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER,
				status = cx231xx_write_ctrl_reg(dev,
							VRT_SET_REGISTER,
							TS1_CFG_REG, val, 4);

				val[0] = 0x00;
				val[1] = 0x08;
				val[2] = 0x00;
				val[3] = 0x08;
			status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER,
				status = cx231xx_write_ctrl_reg(dev,
							VRT_SET_REGISTER,
							TS1_LENGTH_REG, val, 4);

			} else {
			pr_info(" BDA\n");
			status = cx231xx_mode_register(dev, TS_MODE_REG, 0x101);
			status = cx231xx_mode_register(dev, TS1_CFG_REG, 0x010);
				pr_debug("%s: BDA\n", __func__);
				status = cx231xx_mode_register(dev,
							 TS_MODE_REG, 0x101);
				status = cx231xx_mode_register(dev,
							TS1_CFG_REG, 0x010);
			}
			break;