arm: tegra: roth: Fix TFA device patch header.
Scott Peterson [Fri, 4 Jan 2013 04:18:28 +0000 (20:18 -0800)]
Skip first 6 bytes of the patch file for TFA
speaker amplifier firmware.

Change-Id: I7b214c1f2bdee49d435da898cd1948933a9d8614
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/188524
Reviewed-on: http://git-master/r/189355
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

drivers/misc/tfa9887.c

index ef91a96..c2cbca4 100644 (file)
@@ -64,7 +64,6 @@ unsigned char coldpatch_data[] = {/* 10 */
 
 /* begin binary data: */
 
-
 /* begin binary data: */
 char n1d2_data[] = {/* 2380 */
 0x03, 0x00, 0x70, 0x00, 0x01, 0xFB, 0x00, 0x71, 0x40
@@ -956,6 +955,7 @@ int SetPreset(struct tfa9887_priv *tfa9887,struct tfa9887_priv *tfa9887_byte)
        int error = 0;
        unsigned int value = 0;
        unsigned int volume_value = 0;
+
     switch(preset_mode) {
             case 0:
                                        error = DspSetParam(tfa9887,tfa9887_byte, MODULE_SPEAKERBOOST, PARAM_SET_PRESET, 87, preset_data0);
@@ -1291,7 +1291,6 @@ static ssize_t tfa9887_vol_store(struct kobject *kobj,
        ssize_t ret = count;
 
        //printk("+tfa9887_vol_store: %d, %d\n", *buf, count);
-
        if (!tfa9887R || !tfa9887L ||
                !tfa9887R->deviceInit || !tfa9887L->deviceInit) {
                ret = -EINVAL;