Home
last modified time | relevance | path

Searched refs:gpios_per_amp (Results 1 – 3 of 3) sorted by relevance

/linux/sound/hda/codecs/side-codecs/
H A Dcirrus_scodec_test.c188 int gpios_per_amp; member
196 int num_spk_id_refs = param->num_amps * param->gpios_per_amp; in cirrus_scodec_test_spkid_parse()
216 if (!(i % param->gpios_per_amp) && in cirrus_scodec_test_spkid_parse()
217 (i % (param->gpios_per_amp * param->num_amps_sharing))) in cirrus_scodec_test_spkid_parse()
218 v -= param->gpios_per_amp; in cirrus_scodec_test_spkid_parse()
225 for (v = 0; v < (1 << param->gpios_per_amp); ++v) { in cirrus_scodec_test_spkid_parse()
228 v << (param->gpios_per_amp * (i / param->num_amps_sharing)); in cirrus_scodec_test_spkid_parse()
272 { .num_amps = 2, .gpios_per_amp = 1, .num_amps_sharing = 1 },
273 { .num_amps = 2, .gpios_per_amp = 2, .num_amps_sharing = 1 },
274 { .num_amps = 2, .gpios_per_amp = 3, .num_amps_sharing = 1 },
[all …]
H A Dcirrus_scodec.c31 int gpios_per_amp; in cirrus_scodec_get_speaker_id() local
39 gpios_per_amp = count / num_amps; in cirrus_scodec_get_speaker_id()
40 base_index = gpios_per_amp * amp_index; in cirrus_scodec_get_speaker_id()
45 dev_dbg(dev, "Found %d Speaker ID GPIOs per Amp\n", gpios_per_amp); in cirrus_scodec_get_speaker_id()
47 for (i = 0; i < gpios_per_amp; i++) { in cirrus_scodec_get_speaker_id()
H A Dcs35l41_hda.c1742 int gpios_per_amp; in cs35l41_get_speaker_id() local
1750 gpios_per_amp = count / num_amps; in cs35l41_get_speaker_id()
1751 base_index = gpios_per_amp * amp_index; in cs35l41_get_speaker_id()
1756 dev_dbg(dev, "Found %d Speaker ID GPIOs per Amp\n", gpios_per_amp); in cs35l41_get_speaker_id()
1758 for (i = 0; i < gpios_per_amp; i++) { in cs35l41_get_speaker_id()