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

Commit dc4af782 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] cx231xx: prints error code if can't switch TV mode



If something bad happens when switching between digital
and analog mode, prints an error and outputs the returned code.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 24b923f0
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -746,7 +746,14 @@ int cx231xx_set_mode(struct cx231xx *dev, enum cx231xx_mode set_mode)
		}
	}

	return errCode ? -EINVAL : 0;
	if (errCode < 0) {
		dev_err(dev->dev, "Failed to set devmode to %s: error: %i",
			dev->mode == CX231XX_DIGITAL_MODE ? "digital" : "analog",
			errCode);
		return errCode;
	}

	return 0;
}
EXPORT_SYMBOL_GPL(cx231xx_set_mode);