public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 4/8] ASoC: tegra: Select SND_SOC_RT5659
       [not found]       ` <20210129154858.GE4560@sirena.org.uk>
@ 2021-01-29 16:45         ` Sameer Pujar
  2021-01-29 17:19           ` Mark Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Sameer Pujar @ 2021-01-29 16:45 UTC (permalink / raw)
  To: Mark Brown, Sameer Pujar
  Cc: devicetree, alsa-devel, kuninori.morimoto.gx, lgirdwood, robh+dt,
	jonathanh, sharadg, thierry.reding, linux-tegra



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?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 4/8] ASoC: tegra: Select SND_SOC_RT5659
  2021-01-29 16:45         ` [PATCH 4/8] ASoC: tegra: Select SND_SOC_RT5659 Sameer Pujar
@ 2021-01-29 17:19           ` Mark Brown
  2021-01-29 17:28             ` Sameer Pujar
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2021-01-29 17:19 UTC (permalink / raw)
  To: Sameer Pujar
  Cc: Sameer Pujar, devicetree, alsa-devel, kuninori.morimoto.gx,
	lgirdwood, robh+dt, jonathanh, sharadg, thierry.reding,
	linux-tegra

[-- Attachment #1: Type: text/plain, Size: 1305 bytes --]

On Fri, Jan 29, 2021 at 10:15:51PM +0530, Sameer Pujar wrote:
> On 1/29/2021 9:18 PM, Mark Brown wrote:

> > 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.

No, you're missing the point of a generic driver here.  This will mean
that if someone wants to build the driver into the kernel for their
embedded board they will be forced to build in every CODEC driver
someone has decided might be used with this generic driver, and even if
they're building things modular someone trying to cut down the size of
their kernel images is going to at least have to spend time building
CODEC drivers they don't want to use.  Distributions should just select
all the CODEC drivers that are available in Kconfig, people configuring
for a particular target audience should be able to build only the
drivers they know they need.

> If above does not seem fine, alternatively can I just enable CODEC config
> independently from defconfig?

Yes.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 4/8] ASoC: tegra: Select SND_SOC_RT5659
  2021-01-29 17:19           ` Mark Brown
@ 2021-01-29 17:28             ` Sameer Pujar
  0 siblings, 0 replies; 3+ messages in thread
From: Sameer Pujar @ 2021-01-29 17:28 UTC (permalink / raw)
  To: Mark Brown
  Cc: Sameer Pujar, devicetree, alsa-devel, kuninori.morimoto.gx,
	lgirdwood, robh+dt, jonathanh, sharadg, thierry.reding,
	linux-tegra



On 1/29/2021 10:49 PM, Mark Brown wrote:
> On Fri, Jan 29, 2021 at 10:15:51PM +0530, Sameer Pujar wrote:
>> On 1/29/2021 9:18 PM, Mark Brown wrote:
>>> 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.
> No, you're missing the point of a generic driver here.  This will mean
> that if someone wants to build the driver into the kernel for their
> embedded board they will be forced to build in every CODEC driver
> someone has decided might be used with this generic driver, and even if
> they're building things modular someone trying to cut down the size of
> their kernel images is going to at least have to spend time building
> CODEC drivers they don't want to use.  Distributions should just select
> all the CODEC drivers that are available in Kconfig, people configuring
> for a particular target audience should be able to build only the
> drivers they know they need.

OK, will drop this in v2. Thank you for details.

>
>> If above does not seem fine, alternatively can I just enable CODEC config
>> independently from defconfig?
> Yes.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-29 17:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1611920470-24225-1-git-send-email-spujar@nvidia.com>
     [not found] ` <1611920470-24225-5-git-send-email-spujar@nvidia.com>
     [not found]   ` <20210129124454.GB4560@sirena.org.uk>
     [not found]     ` <d6cb9252-246e-d6c7-7500-5f1d1823325c@nvidia.com>
     [not found]       ` <20210129154858.GE4560@sirena.org.uk>
2021-01-29 16:45         ` [PATCH 4/8] ASoC: tegra: Select SND_SOC_RT5659 Sameer Pujar
2021-01-29 17:19           ` Mark Brown
2021-01-29 17:28             ` Sameer Pujar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox