media: adv748x: afe: Select input port when initializing AFE
[platform/kernel/linux-starfive.git] / drivers / media / i2c / adv748x / adv748x-afe.c
index 02eabe1..00095c7 100644 (file)
@@ -521,6 +521,10 @@ int adv748x_afe_init(struct adv748x_afe *afe)
                }
        }
 
+       adv748x_afe_s_input(afe, afe->input);
+
+       adv_dbg(state, "AFE Default input set to %d\n", afe->input);
+
        /* Entity pads and sinks are 0-indexed to match the pads */
        for (i = ADV748X_AFE_SINK_AIN0; i <= ADV748X_AFE_SINK_AIN7; i++)
                afe->pads[i].flags = MEDIA_PAD_FL_SINK;