wm8731.c (93b760b7072ca6972c15c798e97af3f830d8bbba) | wm8731.c (519cf2df5fb50c6d24412b2421ce2d1ff0346163) |
---|---|
1/* 2 * wm8731.c -- WM8731 ALSA SoC Audio driver 3 * 4 * Copyright 2005 Openedhand Ltd. 5 * 6 * Author: Richard Purdie <richard@openedhand.com> 7 * 8 * Based on wm8753.c by Liam Girdwood --- 560 unchanged lines hidden (view full) --- 569 codec->set_bias_level = wm8731_set_bias_level; 570 codec->dai = &wm8731_dai; 571 codec->num_dai = 1; 572 codec->reg_cache_size = WM8731_CACHEREGNUM; 573 codec->reg_cache = &wm8731->reg_cache; 574 575 memcpy(codec->reg_cache, wm8731_reg, sizeof(wm8731_reg)); 576 | 1/* 2 * wm8731.c -- WM8731 ALSA SoC Audio driver 3 * 4 * Copyright 2005 Openedhand Ltd. 5 * 6 * Author: Richard Purdie <richard@openedhand.com> 7 * 8 * Based on wm8753.c by Liam Girdwood --- 560 unchanged lines hidden (view full) --- 569 codec->set_bias_level = wm8731_set_bias_level; 570 codec->dai = &wm8731_dai; 571 codec->num_dai = 1; 572 codec->reg_cache_size = WM8731_CACHEREGNUM; 573 codec->reg_cache = &wm8731->reg_cache; 574 575 memcpy(codec->reg_cache, wm8731_reg, sizeof(wm8731_reg)); 576 |
577 ret = wm8731_reset(codec); 578 if (ret < 0) { 579 dev_err(codec->dev, "Failed to issue reset\n"); 580 return ret; 581 } 582 |
|
577 wm8731_dai.dev = codec->dev; 578 | 583 wm8731_dai.dev = codec->dev; 584 |
579 wm8731_reset(codec); | |
580 wm8731_set_bias_level(codec, SND_SOC_BIAS_STANDBY); 581 582 /* Latch the update bits */ 583 reg = wm8731_read_reg_cache(codec, WM8731_LOUT1V); 584 wm8731_write(codec, WM8731_LOUT1V, reg & ~0x0100); 585 reg = wm8731_read_reg_cache(codec, WM8731_ROUT1V); 586 wm8731_write(codec, WM8731_ROUT1V, reg & ~0x0100); 587 reg = wm8731_read_reg_cache(codec, WM8731_LINVOL); --- 176 unchanged lines hidden --- | 585 wm8731_set_bias_level(codec, SND_SOC_BIAS_STANDBY); 586 587 /* Latch the update bits */ 588 reg = wm8731_read_reg_cache(codec, WM8731_LOUT1V); 589 wm8731_write(codec, WM8731_LOUT1V, reg & ~0x0100); 590 reg = wm8731_read_reg_cache(codec, WM8731_ROUT1V); 591 wm8731_write(codec, WM8731_ROUT1V, reg & ~0x0100); 592 reg = wm8731_read_reg_cache(codec, WM8731_LINVOL); --- 176 unchanged lines hidden --- |