Lines Matching +full:0 +full:x00000033
39 { 32768, 0x00 },
40 { 8000, 0x01 },
41 { 11025, 0x02 },
42 { 12000, 0x03 },
43 { 16000, 0x04 },
44 { 22050, 0x05 },
45 { 24000, 0x06 },
46 { 32000, 0x07 },
47 { 44100, 0x08 },
48 { 48000, 0x09 },
49 { 88200, 0x0A },
50 { 96000, 0x0B },
51 { 128000, 0x0C },
52 { 176400, 0x0D },
53 { 192000, 0x0E },
54 { 256000, 0x0F },
55 { 352800, 0x10 },
56 { 384000, 0x11 },
57 { 512000, 0x12 },
58 { 705600, 0x13 },
59 { 750000, 0x14 },
60 { 768000, 0x15 },
61 { 1000000, 0x16 },
62 { 1024000, 0x17 },
63 { 1200000, 0x18 },
64 { 1411200, 0x19 },
65 { 1500000, 0x1A },
66 { 1536000, 0x1B },
67 { 2000000, 0x1C },
68 { 2048000, 0x1D },
69 { 2400000, 0x1E },
70 { 2822400, 0x1F },
71 { 3000000, 0x20 },
72 { 3072000, 0x21 },
73 { 3200000, 0x22 },
74 { 4000000, 0x23 },
75 { 4096000, 0x24 },
76 { 4800000, 0x25 },
77 { 5644800, 0x26 },
78 { 6000000, 0x27 },
79 { 6144000, 0x28 },
80 { 6250000, 0x29 },
81 { 6400000, 0x2A },
82 { 6500000, 0x2B },
83 { 6750000, 0x2C },
84 { 7526400, 0x2D },
85 { 8000000, 0x2E },
86 { 8192000, 0x2F },
87 { 9600000, 0x30 },
88 { 11289600, 0x31 },
89 { 12000000, 0x32 },
90 { 12288000, 0x33 },
91 { 12500000, 0x34 },
92 { 12800000, 0x35 },
93 { 13000000, 0x36 },
94 { 13500000, 0x37 },
95 { 19200000, 0x38 },
96 { 22579200, 0x39 },
97 { 24000000, 0x3A },
98 { 24576000, 0x3B },
99 { 25000000, 0x3C },
100 { 25600000, 0x3D },
101 { 26000000, 0x3E },
102 { 27000000, 0x3F },
153 { 12288000, 0, 0 },
160 for (i = 0; i < ARRAY_SIZE(cs35l41_fs_mon); i++) { in cs35l41_get_fs_mon_config_index()
169 0, 0, TLV_DB_SCALE_ITEM(TLV_DB_GAIN_MUTE, 0, 1),
171 static DECLARE_TLV_DB_SCALE(amp_gain_tlv, 50, 100, 0);
174 SOC_DAPM_SINGLE("Switch", CS35L41_PWR_CTRL3, 20, 1, 0);
181 CS35L41_AMP_DIG_VOL_CTRL, 0,
194 return 0; in cs35l41_dsp_preload_ev()
199 return 0; in cs35l41_dsp_preload_ev()
209 return 0; in cs35l41_dsp_preload_ev()
227 if (ret < 0) { in cs35l41_dsp_audio_ev()
249 return 0; in cs35l41_dsp_audio_ev()
254 static const unsigned int cs35l41_pcm_source_values[] = {0x08, 0x32};
257 0, CS35L41_ASP_SOURCE_MASK,
270 0x00, CS35L41_INPUT_SRC_ASPRX1, CS35L41_INPUT_SRC_ASPRX2,
277 0, CS35L41_ASP_SOURCE_MASK,
286 0, CS35L41_ASP_SOURCE_MASK,
295 0, CS35L41_ASP_SOURCE_MASK,
304 0, CS35L41_ASP_SOURCE_MASK,
313 0, CS35L41_ASP_SOURCE_MASK,
322 0, CS35L41_ASP_SOURCE_MASK,
331 3, 0x4CF, 0x391, dig_vol_tlv),
332 SOC_SINGLE_TLV("Analog PCM Volume", CS35L41_AMP_GAIN_CTRL, 5, 0x14, 0,
335 SOC_SINGLE("HW Noise Gate Enable", CS35L41_NG_CFG, 8, 63, 0),
336 SOC_SINGLE("HW Noise Gate Delay", CS35L41_NG_CFG, 4, 7, 0),
337 SOC_SINGLE("HW Noise Gate Threshold", CS35L41_NG_CFG, 0, 7, 0),
339 CS35L41_MIXER_NGATE_CH1_CFG, 16, 1, 0),
341 CS35L41_MIXER_NGATE_CH1_CFG, 8, 15, 0),
343 CS35L41_MIXER_NGATE_CH1_CFG, 0, 7, 0),
345 CS35L41_MIXER_NGATE_CH2_CFG, 8, 15, 0),
347 CS35L41_MIXER_NGATE_CH2_CFG, 16, 1, 0),
349 CS35L41_MIXER_NGATE_CH2_CFG, 0, 7, 0),
350 SOC_SINGLE("SCLK Force Switch", CS35L41_SP_FORMAT, CS35L41_SCLK_FRC_SHIFT, 1, 0),
351 SOC_SINGLE("LRCLK Force Switch", CS35L41_SP_FORMAT, CS35L41_LRCLK_FRC_SHIFT, 1, 0),
353 CS35L41_AMP_INV_PCM_SHIFT, 1, 0),
355 CS35L41_AMP_GAIN_ZC_SHIFT, 1, 0),
357 WM_ADSP_FW_CONTROL("DSP1", 0),
379 regmap_write(cs35l41->regmap, CS35L41_PROTECT_REL_ERR_IGN, 0); in cs35l41_error_release()
381 regmap_update_bits(cs35l41->regmap, CS35L41_PROTECT_REL_ERR_IGN, rel_err_bit, 0); in cs35l41_error_release()
387 unsigned int status[4] = { 0, 0, 0, 0 }; in cs35l41_irq()
388 unsigned int masks[4] = { 0, 0, 0, 0 }; in cs35l41_irq()
393 if (ret < 0) { in cs35l41_irq()
402 for (i = 0; i < ARRAY_SIZE(status); i++) { in cs35l41_irq()
412 if (!(status[0] & ~masks[0]) && !(status[1] & ~masks[1]) && in cs35l41_irq()
426 if (status[0] & CS35L41_AMP_SHORT_ERR) { in cs35l41_irq()
432 if (status[0] & CS35L41_TEMP_WARN) { in cs35l41_irq()
438 if (status[0] & CS35L41_TEMP_ERR) { in cs35l41_irq()
444 if (status[0] & CS35L41_BST_OVP_ERR) { in cs35l41_irq()
446 cs35l41_boost_enable(cs35l41, 0); in cs35l41_irq()
452 if (status[0] & CS35L41_BST_DCM_UVP_ERR) { in cs35l41_irq()
454 cs35l41_boost_enable(cs35l41, 0); in cs35l41_irq()
460 if (status[0] & CS35L41_BST_SHORT_ERR) { in cs35l41_irq()
462 cs35l41_boost_enable(cs35l41, 0); in cs35l41_irq()
480 !!(status[0] & CS35L41_PUP_DONE_MASK)); in cs35l41_irq()
494 { CS35L41_TEST_KEY_CTL, 0x00000055 },
495 { CS35L41_TEST_KEY_CTL, 0x000000AA },
496 { 0x00002084, 0x002F1AA0 },
497 { CS35L41_TEST_KEY_CTL, 0x000000CC },
498 { CS35L41_TEST_KEY_CTL, 0x00000033 },
502 { CS35L41_TEST_KEY_CTL, 0x00000055 },
503 { CS35L41_TEST_KEY_CTL, 0x000000AA },
504 { 0x00002084, 0x002F1AA3 },
505 { CS35L41_TEST_KEY_CTL, 0x000000CC },
506 { CS35L41_TEST_KEY_CTL, 0x00000033 },
514 int ret = 0; in cs35l41_main_amp_event()
527 0, cs35l41->dsp.cs_dsp.running); in cs35l41_main_amp_event()
534 dev_err(cs35l41->dev, "Invalid event = 0x%x\n", event); in cs35l41_main_amp_event()
543 SND_SOC_DAPM_SUPPLY_S("DSP1 Preloader", 100, SND_SOC_NOPM, 0, 0,
546 SND_SOC_DAPM_OUT_DRV_E("DSP1", SND_SOC_NOPM, 0, 0, NULL, 0,
552 SND_SOC_DAPM_AIF_IN("ASPRX1", NULL, 0, CS35L41_SP_ENABLES, 16, 0),
553 SND_SOC_DAPM_AIF_IN("ASPRX2", NULL, 0, CS35L41_SP_ENABLES, 17, 0),
554 SND_SOC_DAPM_AIF_OUT("ASPTX1", NULL, 0, CS35L41_SP_ENABLES, 0, 0),
555 SND_SOC_DAPM_AIF_OUT("ASPTX2", NULL, 0, CS35L41_SP_ENABLES, 1, 0),
556 SND_SOC_DAPM_AIF_OUT("ASPTX3", NULL, 0, CS35L41_SP_ENABLES, 2, 0),
557 SND_SOC_DAPM_AIF_OUT("ASPTX4", NULL, 0, CS35L41_SP_ENABLES, 3, 0),
565 SND_SOC_DAPM_SUPPLY("VMON", CS35L41_PWR_CTRL2, 12, 0, NULL, 0),
566 SND_SOC_DAPM_SUPPLY("IMON", CS35L41_PWR_CTRL2, 13, 0, NULL, 0),
567 SND_SOC_DAPM_SUPPLY("VPMON", CS35L41_PWR_CTRL2, 8, 0, NULL, 0),
568 SND_SOC_DAPM_SUPPLY("VBSTMON", CS35L41_PWR_CTRL2, 9, 0, NULL, 0),
569 SND_SOC_DAPM_SUPPLY("TEMPMON", CS35L41_PWR_CTRL2, 10, 0, NULL, 0),
571 SND_SOC_DAPM_ADC("VMON ADC", NULL, SND_SOC_NOPM, 0, 0),
572 SND_SOC_DAPM_ADC("IMON ADC", NULL, SND_SOC_NOPM, 0, 0),
573 SND_SOC_DAPM_ADC("VPMON ADC", NULL, SND_SOC_NOPM, 0, 0),
574 SND_SOC_DAPM_ADC("VBSTMON ADC", NULL, SND_SOC_NOPM, 0, 0),
575 SND_SOC_DAPM_ADC("TEMPMON ADC", NULL, SND_SOC_NOPM, 0, 0),
577 SND_SOC_DAPM_ADC("CLASS H", NULL, CS35L41_PWR_CTRL3, 4, 0),
579 SND_SOC_DAPM_OUT_DRV_E("Main AMP", CS35L41_PWR_CTRL2, 0, 0, NULL, 0,
583 SND_SOC_DAPM_MUX("ASP TX1 Source", SND_SOC_NOPM, 0, 0, &asp_tx1_mux),
584 SND_SOC_DAPM_MUX("ASP TX2 Source", SND_SOC_NOPM, 0, 0, &asp_tx2_mux),
585 SND_SOC_DAPM_MUX("ASP TX3 Source", SND_SOC_NOPM, 0, 0, &asp_tx3_mux),
586 SND_SOC_DAPM_MUX("ASP TX4 Source", SND_SOC_NOPM, 0, 0, &asp_tx4_mux),
587 SND_SOC_DAPM_MUX("DSP RX1 Source", SND_SOC_NOPM, 0, 0, &dsp_rx1_mux),
588 SND_SOC_DAPM_MUX("DSP RX2 Source", SND_SOC_NOPM, 0, 0, &dsp_rx2_mux),
589 SND_SOC_DAPM_MUX("PCM Source", SND_SOC_NOPM, 0, 0, &pcm_source_mux),
590 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()
797 return 0; in cs35l41_pcm_hw_params()
804 for (i = 0; i < ARRAY_SIZE(cs35l41_pll_sysclk); i++) { in cs35l41_get_clk_config()
826 return snd_pcm_hw_constraint_list(substream->runtime, 0, in cs35l41_pcm_startup()
829 return 0; in cs35l41_pcm_startup()
856 if (extclk_cfg < 0) { in cs35l41_component_set_sysclk()
870 0 << CS35L41_PLL_CLK_EN_SHIFT); in cs35l41_component_set_sysclk()
875 0 << CS35L41_PLL_OPENLOOP_SHIFT); in cs35l41_component_set_sysclk()
880 return 0; in cs35l41_component_set_sysclk()
893 if (fsindex < 0) { in cs35l41_dai_set_sysclk()
906 fs1_val = 0x10; in cs35l41_dai_set_sysclk()
907 fs2_val = 0x24; in cs35l41_dai_set_sysclk()
914 return 0; in cs35l41_dai_set_sysclk()
934 if (hw_cfg->dout_hiz <= CS35L41_ASP_DOUT_HIZ_MASK && hw_cfg->dout_hiz >= 0) in cs35l41_set_pdata()
938 return 0; in cs35l41_set_pdata()
946 SND_SOC_DAPM_SUPPLY("VSPK", CS35L41_GPIO1_CTRL1, CS35L41_GPIO_LVL_SHIFT, 0, NULL, 0),
988 .id = 0,
1044 if (ret >= 0) in cs35l41_handle_pdata()
1049 if (ret >= 0) in cs35l41_handle_pdata()
1055 if (ret >= 0) in cs35l41_handle_pdata()
1061 if (ret >= 0) in cs35l41_handle_pdata()
1067 if (ret >= 0) in cs35l41_handle_pdata()
1076 if (ret >= 0) { in cs35l41_handle_pdata()
1085 if (ret >= 0) { in cs35l41_handle_pdata()
1092 return 0; in cs35l41_handle_pdata()
1109 if (ret < 0) in cs35l41_dsp_init()
1134 if (ret < 0) { in cs35l41_dsp_init()
1139 if (ret < 0) { in cs35l41_dsp_init()
1145 if (ret < 0) { in cs35l41_dsp_init()
1151 if (ret < 0) { in cs35l41_dsp_init()
1156 return 0; in cs35l41_dsp_init()
1169 /* If there is no ACPI_HANDLE, there is no ACPI for this system, return 0 */ in cs35l41_acpi_get_name()
1171 return 0; in cs35l41_acpi_get_name()
1175 /* If bad ACPI, return 0 and fallback to legacy firmware path, otherwise fail */ in cs35l41_acpi_get_name()
1177 return 0; in cs35l41_acpi_get_name()
1185 return 0; in cs35l41_acpi_get_name()
1191 int irq_pol = 0; in cs35l41_probe()
1198 if (ret != 0) in cs35l41_probe()
1202 for (i = 0; i < CS35L41_NUM_SUPPLIES; i++) in cs35l41_probe()
1207 if (ret != 0) { in cs35l41_probe()
1213 if (ret != 0) { in cs35l41_probe()
1258 if (ret < 0) { in cs35l41_probe()
1264 if (ret < 0) { in cs35l41_probe()
1289 if (ret < 0) { in cs35l41_probe()
1304 0 << CS35L41_INT3_PLL_LOCK_SHIFT); in cs35l41_probe()
1309 if (ret != 0) { in cs35l41_probe()
1315 if (ret < 0) { in cs35l41_probe()
1321 if (ret < 0) in cs35l41_probe()
1325 if (ret < 0) in cs35l41_probe()
1338 if (ret < 0) { in cs35l41_probe()
1348 return 0; in cs35l41_probe()
1359 gpiod_set_value_cansleep(cs35l41->reset_gpio, 0); in cs35l41_probe()
1371 regmap_write(cs35l41->regmap, CS35L41_IRQ1_MASK1, 0xFFFFFFFF); in cs35l41_remove()
1383 gpiod_set_value_cansleep(cs35l41->reset_gpio, 0); in cs35l41_remove()
1394 return 0; in cs35l41_runtime_suspend()
1401 return 0; in cs35l41_runtime_suspend()
1412 return 0; in cs35l41_runtime_resume()
1430 return 0; in cs35l41_runtime_resume()
1440 return 0; in cs35l41_sys_suspend()
1450 return 0; in cs35l41_sys_suspend_noirq()
1460 return 0; in cs35l41_sys_resume_noirq()
1470 return 0; in cs35l41_sys_resume()