Message ID | 1611920470-24225-1-git-send-email-spujar@nvidia.com |
---|---|
Headers | show |
Series | Tegra186 and Tegra194 audio graph card | expand |
On 1/29/2021 6:14 PM, Mark Brown wrote: > On Fri, Jan 29, 2021 at 05:11:06PM +0530, Sameer Pujar wrote: >> Select SND_SOC_RT5659 to verify external audio over Jetson platforms. >> Jetson AGX Xavier has an on-board RT5658 audio codec and to use this >> enable required config. >> >> config SND_SOC_TEGRA_AUDIO_GRAPH_CARD >> tristate "Audio Graph Card based Tegra driver" >> depends on SND_AUDIO_GRAPH_CARD >> + select SND_SOC_RT5659 >> help > This is a generic device, not something specific to Jetson, why force > on a driver that may not be required on other boards using this driver? Yes specific boards using 'SND_SOC_TEGRA_AUDIO_GRAPH_CARD' may require 'SND_SOC_RT5659'. But there is no platform specific config. Is there a better way to enable config 'SND_SOC_RT5659' conditionally?
On Fri, Jan 29, 2021 at 09:02:52PM +0530, Sameer Pujar wrote: > On 1/29/2021 6:14 PM, Mark Brown wrote: > > This is a generic device, not something specific to Jetson, why force > > on a driver that may not be required on other boards using this driver? > Yes specific boards using 'SND_SOC_TEGRA_AUDIO_GRAPH_CARD' may require > 'SND_SOC_RT5659'. But there is no platform specific config. Is there a > better way to enable config 'SND_SOC_RT5659' conditionally? If the user wants a given CODEC driver then they should enable that driver.
On 1/29/2021 9:18 PM, Mark Brown wrote: > On Fri, Jan 29, 2021 at 09:02:52PM +0530, Sameer Pujar wrote: >> On 1/29/2021 6:14 PM, Mark Brown wrote: >>> This is a generic device, not something specific to Jetson, why force >>> on a driver that may not be required on other boards using this driver? >> Yes specific boards using 'SND_SOC_TEGRA_AUDIO_GRAPH_CARD' may require >> 'SND_SOC_RT5659'. But there is no platform specific config. Is there a >> better way to enable config 'SND_SOC_RT5659' conditionally? > If the user wants a given CODEC driver then they should enable that > driver. Above card driver is intended to be used on multiple platforms. DT has already a way for user to describe the CODEC connection required for specific platform. So idea is enable these CODECs from driver point of view for this card driver and platform DT can use what is required. Also the CODEC driver will be a loadable module here. If above does not seem fine, alternatively can I just enable CODEC config independently from defconfig?