rt5660.c (5c47e3cfd4f9d12e9f594d99118c1381c163ff98) | rt5660.c (4281fcc02ed9f902dfa52d3635ac7f04b1a7341f) |
---|---|
1/* 2 * rt5660.c -- RT5660 ALSA SoC audio codec driver 3 * 4 * Copyright 2016 Realtek Semiconductor Corp. 5 * Author: Oder Chiou <oder_chiou@realtek.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 512 unchanged lines hidden (view full) --- 521 SOC_DAPM_SINGLE("Switch", RT5660_LOUT_VOL, 522 RT5660_VOL_R_SFT, 1, 1); 523 524/* Interface data select */ 525static const char * const rt5660_data_select[] = { 526 "L/R", "R/L", "L/L", "R/R" 527}; 528 | 1/* 2 * rt5660.c -- RT5660 ALSA SoC audio codec driver 3 * 4 * Copyright 2016 Realtek Semiconductor Corp. 5 * Author: Oder Chiou <oder_chiou@realtek.com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 512 unchanged lines hidden (view full) --- 521 SOC_DAPM_SINGLE("Switch", RT5660_LOUT_VOL, 522 RT5660_VOL_R_SFT, 1, 1); 523 524/* Interface data select */ 525static const char * const rt5660_data_select[] = { 526 "L/R", "R/L", "L/L", "R/R" 527}; 528 |
529static const SOC_ENUM_SINGLE_DECL(rt5660_if1_dac_enum, | 529static SOC_ENUM_SINGLE_DECL(rt5660_if1_dac_enum, |
530 RT5660_DIG_INF1_DATA, RT5660_IF1_DAC_IN_SFT, rt5660_data_select); 531 | 530 RT5660_DIG_INF1_DATA, RT5660_IF1_DAC_IN_SFT, rt5660_data_select); 531 |
532static const SOC_ENUM_SINGLE_DECL(rt5660_if1_adc_enum, | 532static SOC_ENUM_SINGLE_DECL(rt5660_if1_adc_enum, |
533 RT5660_DIG_INF1_DATA, RT5660_IF1_ADC_IN_SFT, rt5660_data_select); 534 535static const struct snd_kcontrol_new rt5660_if1_dac_swap_mux = 536 SOC_DAPM_ENUM("IF1 DAC Swap Source", rt5660_if1_dac_enum); 537 538static const struct snd_kcontrol_new rt5660_if1_adc_swap_mux = 539 SOC_DAPM_ENUM("IF1 ADC Swap Source", rt5660_if1_adc_enum); 540 --- 817 unchanged lines hidden --- | 533 RT5660_DIG_INF1_DATA, RT5660_IF1_ADC_IN_SFT, rt5660_data_select); 534 535static const struct snd_kcontrol_new rt5660_if1_dac_swap_mux = 536 SOC_DAPM_ENUM("IF1 DAC Swap Source", rt5660_if1_dac_enum); 537 538static const struct snd_kcontrol_new rt5660_if1_adc_swap_mux = 539 SOC_DAPM_ENUM("IF1 ADC Swap Source", rt5660_if1_adc_enum); 540 --- 817 unchanged lines hidden --- |