Re: mainline tlv320aic26 driver

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

 



On Tue, May 19, 2009 at 10:09:50AM -0600, Grant Likely wrote:

> I don't know the best way for your fabric driver to find the aic26 spi
> device.  It probably should use bus_find_device() and
> dev_get_drvdata() to resolve to the value that codec_data should be
> set to.

With non-PowerPC platforms that don't use the of-simple bodge the
machine driver finds the CODEC by referencing them from the data
structures referenced from the snd_soc_device.  You don't need to look
up the struct device for the CODEC.

For an AT91 example look at the sam9g20_wm8731.c driver - you want to
replace the references to the wm8731 DAI and CODEC with those for the
tlv320aic26.
_______________________________________________
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