[PATCH v5 2/3] ASoC: atmel-ssc-dai: register dai and pcm directly

From
Mark Brown <hidden>
Date
2012-11-13 08:30:33
Also in
alsa-devel, linux-devicetree, linux-sound
Reply to
Bo Shen, 2012-11-12
On Mon, Nov 12, 2012 at 03:40:26PM +0800, Bo Shen wrote:
quoted hunk ↗ jump to hunk
 static struct platform_device sam9g20ek_audio_device = {
 	.name   = "at91sam9g20ek-audio",
-	.id     = -1,
+	.id     = 0,
 };
Why are you changing this?  Single devices are supposed to specify -1 as
their id.
quoted hunk ↗ jump to hunk
 static int atmel_ssc_startup(struct snd_pcm_substream *substream,
 			     struct snd_soc_dai *dai)
 {
-	struct atmel_ssc_info *ssc_p = &ssc_info[dai->id];
+	struct atmel_ssc_info *ssc_p = &ssc_info;
This seems like a very big step backwards, there's now a single global
variable for the ssc_info which presumably means there can be only one
SSC active in the system at once.  That's changing a lot more than just
the registration...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121113/c38c8800/attachment.sig>
Thread (11 messages) 11 messages, 2 authors, last reply 2012-11-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help