Lines Matching +full:0 +full:x00000033
38 { 32768, 0x00 },
39 { 8000, 0x01 },
40 { 11025, 0x02 },
41 { 12000, 0x03 },
42 { 16000, 0x04 },
43 { 22050, 0x05 },
44 { 24000, 0x06 },
45 { 32000, 0x07 },
46 { 44100, 0x08 },
47 { 48000, 0x09 },
48 { 88200, 0x0A },
49 { 96000, 0x0B },
50 { 128000, 0x0C },
51 { 176400, 0x0D },
52 { 192000, 0x0E },
53 { 256000, 0x0F },
54 { 352800, 0x10 },
55 { 384000, 0x11 },
56 { 512000, 0x12 },
57 { 705600, 0x13 },
58 { 750000, 0x14 },
59 { 768000, 0x15 },
60 { 1000000, 0x16 },
61 { 1024000, 0x17 },
62 { 1200000, 0x18 },
63 { 1411200, 0x19 },
64 { 1500000, 0x1A },
65 { 1536000, 0x1B },
66 { 2000000, 0x1C },
67 { 2048000, 0x1D },
68 { 2400000, 0x1E },
69 { 2822400, 0x1F },
70 { 3000000, 0x20 },
71 { 3072000, 0x21 },
72 { 3200000, 0x22 },
73 { 4000000, 0x23 },
74 { 4096000, 0x24 },
75 { 4800000, 0x25 },
76 { 5644800, 0x26 },
77 { 6000000, 0x27 },
78 { 6144000, 0x28 },
79 { 6250000, 0x29 },
80 { 6400000, 0x2A },
81 { 6500000, 0x2B },
82 { 6750000, 0x2C },
83 { 7526400, 0x2D },
84 { 8000000, 0x2E },
85 { 8192000, 0x2F },
86 { 9600000, 0x30 },
87 { 11289600, 0x31 },
88 { 12000000, 0x32 },
89 { 12288000, 0x33 },
90 { 12500000, 0x34 },
91 { 12800000, 0x35 },
92 { 13000000, 0x36 },
93 { 13500000, 0x37 },
94 { 19200000, 0x38 },
95 { 22579200, 0x39 },
96 { 24000000, 0x3A },
97 { 24576000, 0x3B },
98 { 25000000, 0x3C },
99 { 25600000, 0x3D },
100 { 26000000, 0x3E },
101 { 27000000, 0x3F },
152 { 12288000, 0, 0 },
159 for (i = 0; i < ARRAY_SIZE(cs35l41_fs_mon); i++) { in cs35l41_get_fs_mon_config_index()
168 0, 0, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE, 0, 1),
170 static DECLARE_TLV_DB_SCALE(amp_gain_tlv, 50, 100, 0);
173 SOC_DAPM_SINGLE("Switch", CS35L41_PWR_CTRL3, 20, 1, 0);
180 CS35L41_AMP_DIG_VOL_CTRL, 0,
193 return 0; in cs35l41_dsp_preload_ev()
198 return 0; in cs35l41_dsp_preload_ev()
208 return 0; in cs35l41_dsp_preload_ev()
226 if (ret < 0) { in cs35l41_dsp_audio_ev()
248 return 0; in cs35l41_dsp_audio_ev()
253 static const unsigned int cs35l41_pcm_source_values[] = {0x08, 0x32};
256 0, CS35L41_ASP_SOURCE_MASK,
269 0x00, CS35L41_INPUT_SRC_ASPRX1, CS35L41_INPUT_SRC_ASPRX2,
276 0, CS35L41_ASP_SOURCE_MASK,
285 0, CS35L41_ASP_SOURCE_MASK,
294 0, CS35L41_ASP_SOURCE_MASK,
303 0, CS35L41_ASP_SOURCE_MASK,
312 0, CS35L41_ASP_SOURCE_MASK,
321 0, CS35L41_ASP_SOURCE_MASK,
330 3, 0x4CF, 0x391, dig_vol_tlv),
331 SOC_SINGLE_TLV("Analog PCM Volume", CS35L41_AMP_GAIN_CTRL, 5, 0x14, 0,
334 SOC_SINGLE("HW Noise Gate Enable", CS35L41_NG_CFG, 8, 63, 0),
335 SOC_SINGLE("HW Noise Gate Delay", CS35L41_NG_CFG, 4, 7, 0),
336 SOC_SINGLE("HW Noise Gate Threshold", CS35L41_NG_CFG, 0, 7, 0),
338 CS35L41_MIXER_NGATE_CH1_CFG, 16, 1, 0),
340 CS35L41_MIXER_NGATE_CH1_CFG, 8, 15, 0),
342 CS35L41_MIXER_NGATE_CH1_CFG, 0, 7, 0),
344 CS35L41_MIXER_NGATE_CH2_CFG, 8, 15, 0),
346 CS35L41_MIXER_NGATE_CH2_CFG, 16, 1, 0),
348 CS35L41_MIXER_NGATE_CH2_CFG, 0, 7, 0),
349 SOC_SINGLE("SCLK Force Switch", CS35L41_SP_FORMAT, CS35L41_SCLK_FRC_SHIFT, 1, 0),
350 SOC_SINGLE("LRCLK Force Switch", CS35L41_SP_FORMAT, CS35L41_LRCLK_FRC_SHIFT, 1, 0),
352 CS35L41_AMP_INV_PCM_SHIFT, 1, 0),
354 CS35L41_AMP_GAIN_ZC_SHIFT, 1, 0),
356 WM_ADSP_FW_CONTROL("DSP1", 0),
378 regmap_write(cs35l41->regmap, CS35L41_PROTECT_REL_ERR_IGN, 0); in cs35l41_error_release()
380 regmap_update_bits(cs35l41->regmap, CS35L41_PROTECT_REL_ERR_IGN, rel_err_bit, 0); in cs35l41_error_release()
386 unsigned int status[4] = { 0, 0, 0, 0 }; in cs35l41_irq()
387 unsigned int masks[4] = { 0, 0, 0, 0 }; in cs35l41_irq()
392 if (ret < 0) { in cs35l41_irq()
401 for (i = 0; i < ARRAY_SIZE(status); i++) { in cs35l41_irq()
411 if (!(status[0] & ~masks[0]) && !(status[1] & ~masks[1]) && in cs35l41_irq()
425 if (status[0] & CS35L41_AMP_SHORT_ERR) { in cs35l41_irq()
431 if (status[0] & CS35L41_TEMP_WARN) { in cs35l41_irq()
437 if (status[0] & CS35L41_TEMP_ERR) { in cs35l41_irq()
443 if (status[0] & CS35L41_BST_OVP_ERR) { in cs35l41_irq()
445 cs35l41_boost_enable(cs35l41, 0); in cs35l41_irq()
451 if (status[0] & CS35L41_BST_DCM_UVP_ERR) { in cs35l41_irq()
453 cs35l41_boost_enable(cs35l41, 0); in cs35l41_irq()
459 if (status[0] & CS35L41_BST_SHORT_ERR) { in cs35l41_irq()
461 cs35l41_boost_enable(cs35l41, 0); in cs35l41_irq()
479 !!(status[0] & CS35L41_PUP_DONE_MASK)); in cs35l41_irq()
493 { CS35L41_TEST_KEY_CTL, 0x00000055 },
494 { CS35L41_TEST_KEY_CTL, 0x000000AA },
495 { 0x00002084, 0x002F1AA0 },
496 { CS35L41_TEST_KEY_CTL, 0x000000CC },
497 { CS35L41_TEST_KEY_CTL, 0x00000033 },
501 { CS35L41_TEST_KEY_CTL, 0x00000055 },
502 { CS35L41_TEST_KEY_CTL, 0x000000AA },
503 { 0x00002084, 0x002F1AA3 },
504 { CS35L41_TEST_KEY_CTL, 0x000000CC },
505 { CS35L41_TEST_KEY_CTL, 0x00000033 },
513 int ret = 0; in cs35l41_main_amp_event()
526 0, &cs35l41->dsp.cs_dsp); in cs35l41_main_amp_event()
533 dev_err(cs35l41->dev, "Invalid event = 0x%x\n", event); in cs35l41_main_amp_event()
542 SND_SOC_DAPM_SUPPLY_S("DSP1 Preloader", 100, SND_SOC_NOPM, 0, 0,
545 SND_SOC_DAPM_OUT_DRV_E("DSP1", SND_SOC_NOPM, 0, 0, NULL, 0,
551 SND_SOC_DAPM_AIF_IN("ASPRX1", NULL, 0, CS35L41_SP_ENABLES, 16, 0),
552 SND_SOC_DAPM_AIF_IN("ASPRX2", NULL, 0, CS35L41_SP_ENABLES, 17, 0),
553 SND_SOC_DAPM_AIF_OUT("ASPTX1", NULL, 0, CS35L41_SP_ENABLES, 0, 0),
554 SND_SOC_DAPM_AIF_OUT("ASPTX2", NULL, 0, CS35L41_SP_ENABLES, 1, 0),
555 SND_SOC_DAPM_AIF_OUT("ASPTX3", NULL, 0, CS35L41_SP_ENABLES, 2, 0),
556 SND_SOC_DAPM_AIF_OUT("ASPTX4", NULL, 0, CS35L41_SP_ENABLES, 3, 0),
564 SND_SOC_DAPM_SUPPLY("VMON", CS35L41_PWR_CTRL2, 12, 0, NULL, 0),
565 SND_SOC_DAPM_SUPPLY("IMON", CS35L41_PWR_CTRL2, 13, 0, NULL, 0),
566 SND_SOC_DAPM_SUPPLY("VPMON", CS35L41_PWR_CTRL2, 8, 0, NULL, 0),
567 SND_SOC_DAPM_SUPPLY("VBSTMON", CS35L41_PWR_CTRL2, 9, 0, NULL, 0),
568 SND_SOC_DAPM_SUPPLY("TEMPMON", CS35L41_PWR_CTRL2, 10, 0, NULL, 0),
570 SND_SOC_DAPM_ADC("VMON ADC", NULL, SND_SOC_NOPM, 0, 0),
571 SND_SOC_DAPM_ADC("IMON ADC", NULL, SND_SOC_NOPM, 0, 0),
572 SND_SOC_DAPM_ADC("VPMON ADC", NULL, SND_SOC_NOPM, 0, 0),
573 SND_SOC_DAPM_ADC("VBSTMON ADC", NULL, SND_SOC_NOPM, 0, 0),
574 SND_SOC_DAPM_ADC("TEMPMON ADC", NULL, SND_SOC_NOPM, 0, 0),
576 SND_SOC_DAPM_ADC("CLASS H", NULL, CS35L41_PWR_CTRL3, 4, 0),
578 SND_SOC_DAPM_OUT_DRV_E("Main AMP", CS35L41_PWR_CTRL2, 0, 0, NULL, 0,
582 SND_SOC_DAPM_MUX("ASP TX1 Source", SND_SOC_NOPM, 0, 0, &asp_tx1_mux),
583 SND_SOC_DAPM_MUX("ASP TX2 Source", SND_SOC_NOPM, 0, 0, &asp_tx2_mux),
584 SND_SOC_DAPM_MUX("ASP TX3 Source", SND_SOC_NOPM, 0, 0, &asp_tx3_mux),
585 SND_SOC_DAPM_MUX("ASP TX4 Source", SND_SOC_NOPM, 0, 0, &asp_tx4_mux),
586 SND_SOC_DAPM_MUX("DSP RX1 Source", SND_SOC_NOPM, 0, 0, &dsp_rx1_mux),
587 SND_SOC_DAPM_MUX("DSP RX2 Source", SND_SOC_NOPM, 0, 0, &dsp_rx2_mux),
588 SND_SOC_DAPM_MUX("PCM Source", SND_SOC_NOPM, 0, 0, &pcm_source_mux),
589 SND_SOC_DAPM_SWITCH("DRE", SND_SOC_NOPM, 0, 0, &dre_ctrl),
687 unsigned int daifmt = 0; in cs35l41_set_dai_fmt()
740 { 12000, 0x01 },
741 { 24000, 0x02 },
742 { 48000, 0x03 },
743 { 96000, 0x04 },
744 { 192000, 0x05 },
745 { 11025, 0x09 },
746 { 22050, 0x0A },
747 { 44100, 0x0B },
748 { 88200, 0x0C },
749 { 176400, 0x0D },
750 { 8000, 0x11 },
751 { 16000, 0x12 },
752 { 32000, 0x13 },
764 for (i = 0; i < ARRAY_SIZE(cs35l41_fs_rates); i++) { in cs35l41_pcm_hw_params()
796 return 0; in cs35l41_pcm_hw_params()
803 for (i = 0; i < ARRAY_SIZE(cs35l41_pll_sysclk); i++) { in cs35l41_get_clk_config()
835 if (extclk_cfg < 0) { in cs35l41_component_set_sysclk()
849 0 << CS35L41_PLL_CLK_EN_SHIFT); in cs35l41_component_set_sysclk()
854 0 << CS35L41_PLL_OPENLOOP_SHIFT); in cs35l41_component_set_sysclk()
859 return 0; in cs35l41_component_set_sysclk()
872 if (fsindex < 0) { in cs35l41_dai_set_sysclk()
885 fs1_val = 0x10; in cs35l41_dai_set_sysclk()
886 fs2_val = 0x24; in cs35l41_dai_set_sysclk()
893 return 0; in cs35l41_dai_set_sysclk()
913 if (hw_cfg->dout_hiz <= CS35L41_ASP_DOUT_HIZ_MASK && hw_cfg->dout_hiz >= 0) in cs35l41_set_pdata()
917 return 0; in cs35l41_set_pdata()
925 SND_SOC_DAPM_SUPPLY("VSPK", CS35L41_GPIO1_CTRL1, CS35L41_GPIO_LVL_SHIFT, 0, NULL, 0),
975 .id = 0,
1031 if (ret >= 0) in cs35l41_handle_pdata()
1036 if (ret >= 0) in cs35l41_handle_pdata()
1042 if (ret >= 0) in cs35l41_handle_pdata()
1048 if (ret >= 0) in cs35l41_handle_pdata()
1054 if (ret >= 0) in cs35l41_handle_pdata()
1063 if (ret >= 0) { in cs35l41_handle_pdata()
1072 if (ret >= 0) { in cs35l41_handle_pdata()
1079 return 0; in cs35l41_handle_pdata()
1096 if (ret < 0) in cs35l41_dsp_init()
1121 if (ret < 0) { in cs35l41_dsp_init()
1126 if (ret < 0) { in cs35l41_dsp_init()
1132 if (ret < 0) { in cs35l41_dsp_init()
1138 if (ret < 0) { in cs35l41_dsp_init()
1143 return 0; in cs35l41_dsp_init()
1156 /* If there is no ACPI_HANDLE, there is no ACPI for this system, return 0 */ in cs35l41_acpi_get_name()
1158 return 0; in cs35l41_acpi_get_name()
1162 /* If bad ACPI, return 0 and fallback to legacy firmware path, otherwise fail */ in cs35l41_acpi_get_name()
1164 return 0; in cs35l41_acpi_get_name()
1172 return 0; in cs35l41_acpi_get_name()
1178 int irq_pol = 0; in cs35l41_probe()
1185 if (ret != 0) in cs35l41_probe()
1189 for (i = 0; i < CS35L41_NUM_SUPPLIES; i++) in cs35l41_probe()
1194 if (ret != 0) in cs35l41_probe()
1199 if (ret != 0) in cs35l41_probe()
1243 if (ret < 0) { in cs35l41_probe()
1249 if (ret < 0) { in cs35l41_probe()
1274 if (ret < 0) { in cs35l41_probe()
1289 0 << CS35L41_INT3_PLL_LOCK_SHIFT); in cs35l41_probe()
1294 if (ret != 0) { in cs35l41_probe()
1300 if (ret < 0) { in cs35l41_probe()
1306 if (ret < 0) in cs35l41_probe()
1310 if (ret < 0) in cs35l41_probe()
1323 if (ret < 0) { in cs35l41_probe()
1333 return 0; in cs35l41_probe()
1344 gpiod_set_value_cansleep(cs35l41->reset_gpio, 0); in cs35l41_probe()
1356 regmap_write(cs35l41->regmap, CS35L41_IRQ1_MASK1, 0xFFFFFFFF); in cs35l41_remove()
1368 gpiod_set_value_cansleep(cs35l41->reset_gpio, 0); in cs35l41_remove()
1379 return 0; in cs35l41_runtime_suspend()
1386 return 0; in cs35l41_runtime_suspend()
1397 return 0; in cs35l41_runtime_resume()
1415 return 0; in cs35l41_runtime_resume()
1425 return 0; in cs35l41_sys_suspend()
1435 return 0; in cs35l41_sys_suspend_noirq()
1445 return 0; in cs35l41_sys_resume_noirq()
1455 return 0; in cs35l41_sys_resume()