If the image of function y = sin (2x + π / 4) and y = m have infinite number of common points, and the distance between any two adjacent common points is the same, then a value of M is

If the image of function y = sin (2x + π / 4) and y = m have infinite number of common points, and the distance between any two adjacent common points is the same, then a value of M is

From y = sin (2x + π / 4)
Let y ′ = 2cos (2x + π / 4) = 0,
2x+π/4=π/2,
∴x=π/8,
When x = π / 8, y = sin (2 × π / 8 + π / 4) = sin (π / 2) = 1
∴m=1.