Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1199153

Re: Nokia N900 - audio TPA6130A2 problems

From Jarkko Nikula <jarkko.nikula@bitmer.com>
Newsgroups linux.kernel
Subject Re: Nokia N900 - audio TPA6130A2 problems
Date 2015-08-03 20:30 +0200
Message-ID <pTsv8-2t7-19@gated-at.bofh.it> (permalink)
References <pQ4Sm-1Ir-3@gated-at.bofh.it> <pQ7wS-5zq-9@gated-at.bofh.it> <pSC3w-1Jd-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi

On 08/01/2015 01:18 PM, Pali Rohár wrote:
> On Saturday 25 July 2015 15:17:13 Lars-Peter Clausen wrote:
>> On 07/25/2015 12:28 PM, Pali Rohár wrote:
>>> Hello,
>>>
>>> sometimes after rebooting Nokia N900 initializing alsa audio fails.
>>> Here output from dmesg log when it happen:
>>>
>>> [    6.925140] tpa6130a2 2-0060: Write failed
>>> [    6.929534] tpa6130a2 2-0060: Failed to initialize chip
>>> [    6.935272] tpa6130a2: probe of 2-0060 failed with error -121
>>> [    7.624237] rx51-audio n900-audio: Failed to add TPA6130A2
>>> controls [    7.635101] rx51-audio n900-audio: ASoC: failed to
>>> init TLV320AIC34: -19 [    7.645874] rx51-audio n900-audio: ASoC:
>>> failed to instantiate card -19 [    7.665740] rx51-audio
>>> n900-audio: snd_soc_register_card failed (-19) [    8.063049] ALSA
>>> device list:
>>> [    8.070343]   No soundcards found.
>>>
>>> Any idea what to do?
>>
>> Looks like the chip is not responding. Try to add a small delay after
>> powerup to give the device to be fully ready, something like the
>> following:
>>
>> --- a/sound/soc/codecs/tpa6130a2.c
>> +++ b/sound/soc/codecs/tpa6130a2.c
>> @@ -152,6 +152,8 @@ static int tpa6130a2_power(u8 power)
>>   		if (data->power_gpio >= 0)
>>   			gpio_set_value(data->power_gpio, 1);
>>
>> +		msleep(5);
>> +
>>   		data->power_state = 1;
>>   		ret = tpa6130a2_initialize();
>>   		if (ret < 0) {
> 
> 
> Hello, your patch did not helped. Problem is still there...
> 
For me v4.2-rc5 works, i.e. TPA6130A2 can still play loudly to
headphones. Don't know were there any i2c etc regression before it or
how easy it would be to reproduce.

Logs below made me thinking can it be a HW issue? Although if it is an
HW issue it shouldn't work sometimes I guess. Do you have any earlier
well known configuration you could try is it an SW regression or
something else?

> [    5.962585] tpa6130a2 2-0060: Write failed
> [    5.962707] tpa6130a2 2-0060: Failed to initialize chip
> [    5.962860] tpa6130a2: probe of 2-0060 failed with error -121

-121 == EREMOTEIO which is returned from i2c-omap.c when there is no ACK
from the chip.

> [   28.102233] omap_i2c 48072000.i2c: controller timed out
> [   29.463653] lp5523x 2-0032: lp5523 Programmable led chip found
> [   30.734191] omap_i2c 48072000.i2c: controller timed out waiting for start condition to finish
> [   32.142333] i2c i2c-2: SCL is stuck low, exit recovery

If SCL is really stuck it also explains why chip doesn't acknowledge.

-- 
Jarkko
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Re: Nokia N900 - audio TPA6130A2 problems Pali Rohár <pali.rohar@gmail.com> - 2015-08-01 12:20 +0200
  Re: Nokia N900 - audio TPA6130A2 problems Pali Rohár <pali.rohar@gmail.com> - 2015-08-03 20:20 +0200
    Re: Nokia N900 - audio TPA6130A2 problems Jarkko Nikula <jarkko.nikula@bitmer.com> - 2015-08-03 20:50 +0200
      Re: Nokia N900 - audio TPA6130A2 problems Pali Rohár <pali.rohar@gmail.com> - 2015-08-03 21:00 +0200
      Re: Nokia N900 - audio TPA6130A2 problems Peter Ujfalusi <peter.ujfalusi@ti.com> - 2015-08-04 09:10 +0200
  Re: Nokia N900 - audio TPA6130A2 problems Jarkko Nikula <jarkko.nikula@bitmer.com> - 2015-08-03 20:30 +0200

csiph-web