Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba106ce3 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: wm8962: Remove defaults for volatile registers



Save a little RAM.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent fbe4ff79
Loading
Loading
Loading
Loading
+3 −14
Original line number Original line Diff line number Diff line
@@ -116,11 +116,11 @@ static struct reg_default wm8962_reg[] = {
	{ 1, 0x049F },   /* R1     - Right Input volume */
	{ 1, 0x049F },   /* R1     - Right Input volume */
	{ 2, 0x0000 },   /* R2     - HPOUTL volume */
	{ 2, 0x0000 },   /* R2     - HPOUTL volume */
	{ 3, 0x0000 },   /* R3     - HPOUTR volume */
	{ 3, 0x0000 },   /* R3     - HPOUTR volume */
	{ 4, 0x0020 },   /* R4     - Clocking1 */

	{ 5, 0x0018 },   /* R5     - ADC & DAC Control 1 */
	{ 5, 0x0018 },   /* R5     - ADC & DAC Control 1 */
	{ 6, 0x2008 },   /* R6     - ADC & DAC Control 2 */
	{ 6, 0x2008 },   /* R6     - ADC & DAC Control 2 */
	{ 7, 0x000A },   /* R7     - Audio Interface 0 */
	{ 7, 0x000A },   /* R7     - Audio Interface 0 */
	{ 8, 0x01E4 },   /* R8     - Clocking2 */

	{ 9, 0x0300 },   /* R9     - Audio Interface 1 */
	{ 9, 0x0300 },   /* R9     - Audio Interface 1 */
	{ 10, 0x00C0 },  /* R10    - Left DAC volume */
	{ 10, 0x00C0 },  /* R10    - Left DAC volume */
	{ 11, 0x00C0 },  /* R11    - Right DAC volume */
	{ 11, 0x00C0 },  /* R11    - Right DAC volume */
@@ -129,7 +129,7 @@ static struct reg_default wm8962_reg[] = {
	{ 15, 0x6243 },   /* R15    - Software Reset */
	{ 15, 0x6243 },   /* R15    - Software Reset */


	{ 17, 0x007B },   /* R17    - ALC1 */
	{ 17, 0x007B },   /* R17    - ALC1 */
	{ 18, 0x0000 },   /* R18    - ALC2 */

	{ 19, 0x1C32 },   /* R19    - ALC3 */
	{ 19, 0x1C32 },   /* R19    - ALC3 */
	{ 20, 0x3200 },   /* R20    - Noise Gate */
	{ 20, 0x3200 },   /* R20    - Noise Gate */
	{ 21, 0x00C0 },   /* R21    - Left ADC volume */
	{ 21, 0x00C0 },   /* R21    - Left ADC volume */
@@ -153,10 +153,6 @@ static struct reg_default wm8962_reg[] = {
	{ 40, 0x0000 },   /* R40    - SPKOUTL volume */
	{ 40, 0x0000 },   /* R40    - SPKOUTL volume */
	{ 41, 0x0000 },   /* R41    - SPKOUTR volume */
	{ 41, 0x0000 },   /* R41    - SPKOUTR volume */


	{ 47, 0x0000 },   /* R47    - Thermal Shutdown Status */
	{ 48, 0x8027 },   /* R48    - Additional Control (4) */
	{ 49, 0x0010 },   /* R49    - Class D Control 1 */

	{ 51, 0x0003 },   /* R51    - Class D Control 2 */
	{ 51, 0x0003 },   /* R51    - Class D Control 2 */


	{ 56, 0x0506 },   /* R56    - Clocking 4 */
	{ 56, 0x0506 },   /* R56    - Clocking 4 */
@@ -168,8 +164,6 @@ static struct reg_default wm8962_reg[] = {


	{ 64, 0x0810 },   /* R64    - DC Servo 4 */
	{ 64, 0x0810 },   /* R64    - DC Servo 4 */


	{ 66, 0x0000 },   /* R66    - DC Servo 6 */

	{ 68, 0x001B },   /* R68    - Analogue PGA Bias */
	{ 68, 0x001B },   /* R68    - Analogue PGA Bias */
	{ 69, 0x0000 },   /* R69    - Analogue HP 0 */
	{ 69, 0x0000 },   /* R69    - Analogue HP 0 */


@@ -302,9 +296,6 @@ static struct reg_default wm8962_reg[] = {
	{ 516, 0x8100 },   /* R516   - GPIO 5 */
	{ 516, 0x8100 },   /* R516   - GPIO 5 */
	{ 517, 0x8100 },   /* R517   - GPIO 6 */
	{ 517, 0x8100 },   /* R517   - GPIO 6 */


	{ 560, 0x0000 },   /* R560   - Interrupt Status 1 */
	{ 561, 0x0000 },   /* R561   - Interrupt Status 2 */

	{ 568, 0x0030 },   /* R568   - Interrupt Status 1 Mask */
	{ 568, 0x0030 },   /* R568   - Interrupt Status 1 Mask */
	{ 569, 0xFFED },   /* R569   - Interrupt Status 2 Mask */
	{ 569, 0xFFED },   /* R569   - Interrupt Status 2 Mask */


@@ -316,8 +307,6 @@ static struct reg_default wm8962_reg[] = {


	{ 768, 0x1C00 },   /* R768   - DSP2 Power Management */
	{ 768, 0x1C00 },   /* R768   - DSP2 Power Management */


	{ 1037, 0x0000 },   /* R1037  - DSP2_ExecControl */

	{ 8192, 0x0000 },   /* R8192  - DSP2 Instruction RAM 0 */
	{ 8192, 0x0000 },   /* R8192  - DSP2 Instruction RAM 0 */


	{ 9216, 0x0030 },   /* R9216  - DSP2 Address RAM 2 */
	{ 9216, 0x0030 },   /* R9216  - DSP2 Address RAM 2 */