We study the endomorphism algebras attached to Bernstein components of reductive p-adic groups. By using recent results of Solleveld, we prove a reduction to depth zero case result for the components attached to regular supercuspidal representations of Levi subgroups, and construct a correspondence with the appropriate set of enhanced L-parameters.In particular, for Levi subgroups of maximal parabolic of the split exceptional group of type G2, we compute the explicit parameters for the corresponding Hecke algebras, and show that they satisfy a conjecture of Lusztig's. We also give examples for a generalized version of Yu's conjecture using type theory for G2. G ∼