[alsa-devel] [RFC][PATCH 1/3] ASoC: ak4642: make sure snd_soc_codec value for ak4642
Kuninori Morimoto
kuninori.morimoto.gx at renesas.com
Thu Jul 15 02:23:33 CEST 2010
Dear Mark
Thank you for checking patch
> Could you be more specific about what you're trying to do here? This
> patch adds additional uses of the global variable for finding the codec
> which is pretty much the opposite direction to where we want to go. Is
> it possible you need multi-codec support?
Now, I would like to use 2 codecs (ak4642/da7210) in same time.
But if I select both 2 on .config (fsi-ak4642 / fsi-da7210),
kernel say WARNING which say
I can not use 2 soc-audio
(or can I select both ?)
So, I modified snd_soc_card :: dai_link
But, if I use "soc_codec_dev_ak4642" for snd_soc_device :: codec_dev,
snd_soc_codec of function parameter of "da7210" was ak4642's codec.
This mean register access of da7210 use ak4642's i2c address.
-> o da7210 doesn't work
o ak4642 register will be broken
I would like to do here is use correct i2c access for ak4642/da7210.
snd_soc_codec :: hw_write -> i2c_master_send
snd_soc_codec :: control_data -> i2c_client (i2c address)
I'm not goot at detail of soc-audio.
what should I do in this case ?
Best regards
--
Kuninori Morimoto
More information about the Alsa-devel
mailing list