[alsa-devel] snd-soc-cs4270: Convert to a new-style i2c driver (work in progress)

Jon Smirl jonsmirl at gmail.com
Sun Aug 31 16:47:03 CEST 2008


On 8/31/08, Jean Delvare <khali at linux-fr.org> wrote:
> Hi Timur,
>
>  I am in the process of converting your cs4270 codec driver from the
>  legacy i2c model to the new (standard) one. This is work in progress.
>  The patch below converts the cs4270 driver itself. However we also need
>  to convert its users. As far as I can see there's only one user at this
>  point: mpc8610_hpcd.
>
>  The problem is that this driver doesn't look like the other codec
>  drivers I have already converted. So, we need to add code to
>  instantiate the cs4270 i2c device, but I don't know where this should
>  happen. Given that the mpc8610_hpcd is apparently based on Open
>  Firmware, I guess that the i2c device should be instantiated directly
>  by the platform code. I see that the device is declared in
>  mpc8610_hpcd.dts, so maybe it's already done and my patch should work
>  already? What do you think?

I attached my codec and i2s driver. The i2c device is getting created
as part of the device tree loading process.

-- 
Jon Smirl
jonsmirl at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tas5504.c
Type: text/x-csrc
Size: 26806 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20080831/444c5c1d/attachment-0002.c 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpc5200_psc_i2s.c
Type: text/x-csrc
Size: 26927 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20080831/444c5c1d/attachment-0003.c 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dspeak01.dts
Type: application/octet-stream
Size: 11325 bytes
Desc: not available
Url : http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20080831/444c5c1d/attachment-0001.dll 


More information about the Alsa-devel mailing list