Re: Re: Question about WM8962 without PMPF0100 PMIC.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Re: Question about WM8962 without PMPF0100 PMIC.

671 Views
kimsangyoung
Contributor I

Dear freescale members

Please tell us exactly when there is a code debugging proposed actions should not cause a problem i.mx6q audio below.

"wm8962 0-001a: Failed to get supply 'DCVDD'"

I fixed the code below.

What is wrong here?

// #define WM8962_NUM_SUPPLIES 8

#define WM8962_NUM_SUPPLIES sizeof (wm8962_supply_names) / sizeof (char *)

static const char * wm8962_supply_names [] = {

};

/ *

static const char * wm8962_supply_names [WM8962_NUM_SUPPLIES] = {

"DCVDD",

"DBVDD",

"AVDD",

"CPVDD",

"MICVDD",

"PLLVDD",

"SPKVDD1",

"SPKVDD2",

};

* /

================================================================================


I solved the problem. Still not found the root cause, I just gave it a workaround by bypassing checking those power supplies.

IMHO, the size of the power supply array could be refactored to:

-#define WM8962_NUM_SUPPLIES 8
 -static const char *wm8962_supply_names[WM8962_NUM_SUPPLIES] = { 
+static const char *wm8962_supply_names[] = { +#define WM8962_NUM_SUPPLIES sizeof(wm8962_supply_names)/sizeof(char *)
Labels (1)
0 Kudos
3 Replies

485 Views
igorpadykov
NXP Employee
NXP Employee

Hi kim

reason may be that

static const char * wm8962_supply_names [] = {};

creates uninitialized array, NULL by default.

Accessing to NULL pointer may cause problems, IMHO.

Best regards

igor

0 Kudos

485 Views
kimsangyoung
Contributor I

Dear igo

Good evening.

This is South Korea. Has been tested by purchasing SABRE I.MX6Q EVB. And a new board was manufactured without the use of a PMIC. Testing tried to apply the source you suggested , but the same message was output as shown below.

To avoid routine check WM8962 power in the kernel seems to be writing code.

I do not know if you need to debug where the source . Please let me know am asking . I am a hardware engineer. There are a lot of difficulty in debugging.

wm8962 0-001a: Failed to get supply 'DCVDD': -19

wm8962 0-001a: Failed to request supplies: -19

wm8962 0-001a: asoc: failed to probe CODEC wm8962.0-001a: -19

========================================================================

0 Kudos

485 Views
igorpadykov
NXP Employee
NXP Employee

Hi kim

there are many options for that, check below

Question about WM8962 without PMPF0100 PMIC.

~igor

0 Kudos