There are various opinions on which foods are allowed/disallowed. The most famous one is obviously the Bhagavad Gita. The Puranas and Dharma texts have more details. Ayurveda is another such text.

For Srivaishnavas (followers of Ramanuja Sampradaya) the rules of the Ahara-Niyamam text of Vedanta Desika form the authority in regards to what can and cannot be consumed.

As far as asafoetida is concerned, orthodox Srivaishnavas do not consume it however it is is culturally ubiquitous and even many temples use the ingredient. 

Brinjal is not prohibited as far as I know in Srivaishnava practice.

You can read Vedanta Desika's Ahara Niyamam [here][1]. Note that this translation has the following for the eleventh verse:

> [11]  Do not eat,
> -    ghee that is served after you have begun eating
> -    foods that have been cooked twice (reheated?)
> -    foods served by bare hand or spatulas made of  iron, uncooked foods may be served by bare hand
> -    foods already bitten into,
> -    old, and spoilt foods
> -    foods prepared in someone else's house (no potluck)
> -    foods that someone else wanted or rejected
> -    foods with smell of earth, or separated by finger nails, salt that you can see
> -    separated for one self and guests
> -    sap coming out of trees, **except asafoetida**.

The original Tamil text doesn't mention the "except asafoetida" part. It is a clarification from the translator which is unacceptable.


  [1]: https://www.srivaishnavam.com/desikaprabandam/ahara_meaning.htm