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

Commit 2ded0fe1 authored by Devin Heitmueller's avatar Devin Heitmueller Committed by Mauro Carvalho Chehab
Browse files

[media] cx231xx: whitespace cleanup



Fix some indentation problems and remove an "if (1)" from the Colibri setup
function.

Signed-off-by: default avatarDevin Heitmueller <dheitmueller@hauppauge.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b6cd9c4a
Loading
Loading
Loading
Loading
+15 −20
Original line number Diff line number Diff line
@@ -1482,10 +1482,9 @@ void cx231xx_Setup_AFE_for_LowIF(struct cx231xx *dev)
void cx231xx_set_Colibri_For_LowIF(struct cx231xx *dev, u32 if_freq,
		 u8 spectral_invert, u32 mode)
{

	u32 colibri_carrier_offset = 0;
	u8 status = 0;
    u32 func_mode = 0x01; /* Device has an DIF if this function is called */
	u32 func_mode = 0x01; /* Device has a DIF if this function is called */
	u32 standard = 0;
	u8 value[4] = { 0, 0, 0, 0 };

@@ -1496,18 +1495,15 @@ void cx231xx_set_Colibri_For_LowIF(struct cx231xx *dev, u32 if_freq,
	value[3] = (u8) 0x6F;
	status = cx231xx_write_ctrl_reg(dev, VRT_SET_REGISTER,
					PWR_CTL_EN, value, 4);
    if (1) {

	/*Set colibri for low IF*/
	status = cx231xx_afe_set_mode(dev, AFE_MODE_LOW_IF);


	/* Set C2HH for low IF operation.*/
	standard = dev->norm;
	status = cx231xx_dif_configure_C2HH_for_low_IF(dev, dev->active_mode,
						       func_mode, standard);


	/* Get colibri offsets.*/
	colibri_carrier_offset = cx231xx_Get_Colibri_CarrierOffset(mode,
								   standard);
@@ -1516,9 +1512,8 @@ void cx231xx_set_Colibri_For_LowIF(struct cx231xx *dev, u32 if_freq,
		     colibri_carrier_offset, standard);

	/* Set the band Pass filter for DIF*/
	cx231xx_set_DIF_bandpass(dev, (if_freq+colibri_carrier_offset)
		 , spectral_invert, mode);
    }
	cx231xx_set_DIF_bandpass(dev, (if_freq+colibri_carrier_offset),
				 spectral_invert, mode);
}

u32 cx231xx_Get_Colibri_CarrierOffset(u32 mode, u32 standerd)