Re: [RFC 5/7] snd-aoa: add layout-id fabric

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

 



At Sun, 28 May 2006 21:00:31 +0200,
Johannes Berg wrote:
> 
> The 'fabric' is the thing that pulls all of snd-aoa together, this patch
> adds the 'layout' or 'layout-id' fabric that keys off the 'layout-id'
> property in the device-tree to pull in the proper modules. It itself loads
> if an i2sbus is present with a layout-id (exported in modalias) that it can
> use.
(snip)
> +static void use_layout(struct layout *l)
> +{
> +	int i;
> +
> +	for (i=0; i<MAX_CODECS_PER_BUS; i++) {
> +		if (l->codecs[i].name) {
> +			request_module("snd-aoa-codec-%s", l->codecs[i].name);

Just from curiosity:  Does this work properly?
I remember that there was a deadlock when you call request_module()
during module probe.


Takashi


_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/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