Re: New SoC layer codec registration problem

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

 



Hello!

On Thu, 2010-10-28 at 19:33 +0100, Mark Brown wrote:
> > The question is why fmt_single_name() picks up "spi0.0" instead of
> > "cs4271-codec", I've added some debug output. And this function relies
> 
> We identify devices based on something unique per device so that if you
> have more than one device of the same type in a system the stack can
> tell them apart.
> 

My machine driver contains the following structures:

---
static struct snd_soc_dai_link edb93xx_dai = {
	.name		= "CS4271",
	.stream_name	= "CS4271 HiFi",
	.platform_name	= "ep93xx-pcm-audio",
	.cpu_dai_name	= "ep93xx-i2s",
	.codec_name	= "cs4271-codec",
	.codec_dai_name	= "cs4271-hifi",
	.ops		= &edb93xx_ops,
};

static struct snd_soc_card snd_soc_edb93xx = {
	.name		= "EDB93XX",
	.dai_link	= &edb93xx_dai,
	.num_links	= 1,
};
---

And all other machine SoC drivers contain similar...
If instead I'll write 
.codec_name = "spi0.0",

it will be strange... However it can work...

Alexander.


_______________________________________________
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