Tool/software:
since the 3106 codec driver doesn't have support for the DMIC or the page 1 filter parameters i need to be able to access registers directly. i was told in another post i can use "snd_soc_component_write" to access those registers.
I have been googling for a couple of hours and i can't get a clear answer on how to use this. i see the prototype for it so it seems obvious until you realize that you have to get:
struct snd_soc_component * component
and when i looked for how you are supposed to get "component" it looks like it is neatly a part of the dai structure.
dai->component
great. so how do you get the dai structure? that's where i got hung up. i see it passed as a parameter in routines most of the time so i'm guessing as a part of the driver it is readily available. however, for an application i am not sure how to obtain the dai handle.
i could rally use some guidance as far as: am i going about this the right way? how do i get the dai handle? do i not need the dai handle and there is a more direct route to get the component? should i give up and just use ioctl on the i2c bus?
help.