Re: [PATCH 2/3] ASoC: Blackfin: add multi-channel supporting in Blackfin ASoC driver and AD1980 codec driver

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

 



On Tue, Oct 21, 2008 at 12:01:45PM +0200, Takashi Iwai wrote:
> Cai, Cliff wrote:

> BTW, are your changes to ad1980.c applicable unconditionally?
> For example,
> > --- a/sound/soc/codecs/ad1980.c
> > +++ b/sound/soc/codecs/ad1980.c
> > @@ -145,7 +145,7 @@ struct snd_soc_dai ad1980_dai = {
> >  	.playback = {
> >  		.stream_name = "Playback",
> >  		.channels_min = 2,
> > -		.channels_max = 2,
> > +		.channels_max = 6,

> This won't work if the machine side doesn't support the
> multi-channel.  Right now, blackfin is the only one, but the codec
> driver should be generic.

This is fine - the ASoC core does constraint checks so if the controller
doesn't support the extra channels user space will never be told about
them.
_______________________________________________
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