Re: [RFC PATCH] ASoC: tas2552: Support TI TAS2552 Amplifier

2014-06-18 Thread Dan Murphy
Mark Thanks for the comments On 06/18/2014 01:44 PM, Mark Brown wrote: > On Wed, Jun 18, 2014 at 12:45:46PM -0500, Dan Murphy wrote: > >> +static int tas2552_i2c_read(struct tas2552_data *tas_data, int reg) >> +{ >> +int val; >> + >> +if (WARN_ON(!tas_data->tas2552_client)) >> +

Re: [RFC PATCH] ASoC: tas2552: Support TI TAS2552 Amplifier

2014-06-18 Thread Mark Brown
On Wed, Jun 18, 2014 at 12:45:46PM -0500, Dan Murphy wrote: > +static int tas2552_i2c_read(struct tas2552_data *tas_data, int reg) > +{ > + int val; > + > + if (WARN_ON(!tas_data->tas2552_client)) > + return -EINVAL; > + > + /* If powered off, return the cached value */ >

[RFC PATCH] ASoC: tas2552: Support TI TAS2552 Amplifier

2014-06-18 Thread Dan Murphy
Support the TI TAS2552 Class D amplifier. The TAS2552 is a high efficiency Class-D audio power amplifier with advanced battery current management and an integrated Class-G boost The device constantly measures the current and voltage across the load and provides a digital stream of this

[RFC PATCH] ASoC: tas2552: Support TI TAS2552 Amplifier

2014-06-18 Thread Dan Murphy
Support the TI TAS2552 Class D amplifier. The TAS2552 is a high efficiency Class-D audio power amplifier with advanced battery current management and an integrated Class-G boost The device constantly measures the current and voltage across the load and provides a digital stream of this

Re: [RFC PATCH] ASoC: tas2552: Support TI TAS2552 Amplifier

2014-06-18 Thread Mark Brown
On Wed, Jun 18, 2014 at 12:45:46PM -0500, Dan Murphy wrote: +static int tas2552_i2c_read(struct tas2552_data *tas_data, int reg) +{ + int val; + + if (WARN_ON(!tas_data-tas2552_client)) + return -EINVAL; + + /* If powered off, return the cached value */ +

Re: [RFC PATCH] ASoC: tas2552: Support TI TAS2552 Amplifier

2014-06-18 Thread Dan Murphy
Mark Thanks for the comments On 06/18/2014 01:44 PM, Mark Brown wrote: On Wed, Jun 18, 2014 at 12:45:46PM -0500, Dan Murphy wrote: +static int tas2552_i2c_read(struct tas2552_data *tas_data, int reg) +{ +int val; + +if (WARN_ON(!tas_data-tas2552_client)) +return