On Thu, Feb 20, 2014 at 7:34 AM, Puneet B <[email protected]> wrote:
>  Hi Codekipper,
>
>
> we are taking only HPLOUT  and HPROUT signal from TI chip.
> (we are not using remaining outputs).
>
> To make this work  is we need to write any middle level driver for
> TLV320AIC3100IRHBR as you shared in link.
>
> or did i need to configure from user space by using i2c node file
> /dev/i2c-0.
> (the chip has i2c interface).
>
> writing new driver will take more time. Is there any other way.

There is already an ALSA codec driver for this chip...
./codecs/tlv320aic3x.c

You need to attach this codec to the I2S driver in the device tree.
Look at other device trees in kernel for a full example.

sound {
  compatible = "machine-driver";
  controller = <&i2s;
  audio-codec = <&codec>;
  audio-routing =
    "MIC_IN", "Mic Jack",
    "Mic Jack", "Mic Bias",
    "Headphone Jack", "HP_OUT";
};

You also need to write an ALSA 'machine' driver. That is a tiny driver
that binds the generic tlv320 driver to the generic Allwinner I2S
driver and then tells ALSA exactly how these two devices are wired up.
 ie the place where you put this info "only HPLOUT  and HPROUT"

Don't try controlling the codec I2C from user space, you will confuse
ALSA. ALSA takes care of everything during suspend/resume and it won't
know what you have been doing to the chip.

>
> Regards
> Punith
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.



-- 
Jon Smirl
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to