Skip to content

Commit 731c24f

Browse files
Jacopo Mondimchehab
authored andcommitted
media: i2c: max9286: Define high channel amplitude
Provide a macro to define the reverse channel amplitude to be used to compensate the remote serializer noise immunity. While at it, update a comment. Signed-off-by: Jacopo Mondi <[email protected]> Reviewed-by: Kieran Bingham <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 902edc2 commit 731c24f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/media/i2c/max9286.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
#define MAX9286_REV_TRF(n) ((n) << 4)
114114
#define MAX9286_REV_AMP(n) ((((n) - 30) / 10) << 1) /* in mV */
115115
#define MAX9286_REV_AMP_X BIT(0)
116+
#define MAX9286_REV_AMP_HIGH 170
116117
/* Register 0x3f */
117118
#define MAX9286_EN_REV_CFG BIT(6)
118119
#define MAX9286_REV_FLEN(n) ((n) - 20)
@@ -567,12 +568,12 @@ static int max9286_notify_bound(struct v4l2_async_notifier *notifier,
567568
* channels:
568569
*
569570
* - Increase the reverse channel amplitude to compensate for the
570-
* remote ends high threshold, if not done already
571+
* remote ends high threshold
571572
* - Verify all configuration links are properly detected
572573
* - Disable auto-ack as communication on the control channel are now
573574
* stable.
574575
*/
575-
max9286_reverse_channel_setup(priv, 170);
576+
max9286_reverse_channel_setup(priv, MAX9286_REV_AMP_HIGH);
576577
max9286_check_config_link(priv, priv->source_mask);
577578

578579
/*

0 commit comments

Comments
 (0)