Re: [PATCH 45/54 v2] ASoC: switch over to use snd_soc_register_component() on sh4 hac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Stephen

Thank you for checking patch

> >  static int hac_soc_platform_probe(struct platform_device *pdev)
> >  {
> > -	return snd_soc_register_dais(&pdev->dev, sh4_hac_dai,
> > -			ARRAY_SIZE(sh4_hac_dai));
> > +	return snd_soc_register_component(&pdev->dev, &sh4_hac_component,
> > +					  sh4_hac_dai, ARRAY_SIZE(sh4_hac_dai));
> >  }
> 
> Again, ARRAY_SIZE(sh4_hac_dai) == 1 or 2 based on #ifdef
> CONFIG_CPU_SUBTYPE_SH7760, so the names might change due to falling back
> to snd_soc_register_dai() instead of snd_soc_register_dais().

The user of this driver was only sh7760-ac97.c in upstream kernel,
and it have CONFIG_CPU_SUBTYPE_SH7760 (ARRAY_SIZE() == 2).
So, it always use dais()

Best regards
---
Kuninori Morimoto
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux