[alsa-devel] [PATCH 2/2] ALSA: hda - Add driver for Tegra SoC HDA

Takashi Iwai tiwai at suse.de
Wed Apr 9 11:40:34 CEST 2014


At Wed, 9 Apr 2014 11:22:13 +0200,
Thierry Reding wrote:
> 
> > +
> > +static int probe_mask[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1};
> > +module_param_array(probe_mask, int, NULL, 0444);
> > +MODULE_PARM_DESC(probe_mask, "Bitmask to probe codecs (default = -1).");
> 
> Is this really necessary? Do we need this with Tegra? Can't we simply
> assume that there's always only one codec? Or always use a probe_mask of
> -1? Alternatively, wouldn't this be better off in DT?

This is an option rather for debugging.  Usually the codec is
recognized automatically in the case of HD-audio.

But, another point is, suppose this is really specific to Tegra and
nothing else, whether we need multiple instances.  If there is only a
single controller, we can omit the arrays.


Takashi


More information about the Alsa-devel mailing list