tas5720.c (c24a62be09d8a0c7ede1c209055a4ac6760a45ee) | tas5720.c (88f748e38b283702a620e635820f1864bf32db0e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * tas5720.c - ALSA SoC Texas Instruments TAS5720 Mono Audio Amplifier 4 * 5 * Copyright (C)2015-2016 Texas Instruments Incorporated - https://www.ti.com 6 * 7 * Author: Andreas Dannenberg <dannenberg@ti.com> 8 */ --- 337 unchanged lines hidden (view full) --- 346 dev_warn(component->dev, "wrong device ID. expected: %u read: %u\n", 347 expected_device_id, device_id); 348 349 /* Set device to mute */ 350 ret = tas5720_mute_soc_component(component, 1); 351 if (ret < 0) 352 goto error_snd_soc_component_update_bits; 353 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * tas5720.c - ALSA SoC Texas Instruments TAS5720 Mono Audio Amplifier 4 * 5 * Copyright (C)2015-2016 Texas Instruments Incorporated - https://www.ti.com 6 * 7 * Author: Andreas Dannenberg <dannenberg@ti.com> 8 */ --- 337 unchanged lines hidden (view full) --- 346 dev_warn(component->dev, "wrong device ID. expected: %u read: %u\n", 347 expected_device_id, device_id); 348 349 /* Set device to mute */ 350 ret = tas5720_mute_soc_component(component, 1); 351 if (ret < 0) 352 goto error_snd_soc_component_update_bits; 353 |
354 /* Set Bit 7 in TAS5720_ANALOG_CTRL_REG to 1 for TAS5720A_Q1 */ 355 switch (tas5720->devtype) { 356 case TAS5720A_Q1: 357 ret = snd_soc_component_update_bits(component, TAS5720_ANALOG_CTRL_REG, 358 TAS5720_Q1_RESERVED7_BIT, 359 TAS5720_Q1_RESERVED7_BIT); 360 break; 361 default: 362 break; 363 } 364 if (ret < 0) 365 goto error_snd_soc_component_update_bits; 366 |
|
354 /* 355 * Enter shutdown mode - our default when not playing audio - to 356 * minimize current consumption. On the TAS5720 there is no real down 357 * side doing so as all device registers are preserved and the wakeup 358 * of the codec is rather quick which we do using a dapm widget. 359 */ 360 ret = snd_soc_component_update_bits(component, TAS5720_POWER_CTRL_REG, 361 TAS5720_SDZ, 0); --- 457 unchanged lines hidden --- | 367 /* 368 * Enter shutdown mode - our default when not playing audio - to 369 * minimize current consumption. On the TAS5720 there is no real down 370 * side doing so as all device registers are preserved and the wakeup 371 * of the codec is rather quick which we do using a dapm widget. 372 */ 373 ret = snd_soc_component_update_bits(component, TAS5720_POWER_CTRL_REG, 374 TAS5720_SDZ, 0); --- 457 unchanged lines hidden --- |