sound/soc/sdw_utils/soc_sdw_cs_amp.c

Source file repositories/reference/linux-study-clean/sound/soc/sdw_utils/soc_sdw_cs_amp.c

File Facts

System
Linux kernel
Corpus path
sound/soc/sdw_utils/soc_sdw_cs_amp.c
Extension
.c
Size
3659 bytes
Lines
126
Domain
Driver Families
Bucket
sound/soc
Inferred role
Driver Families: exported/initcall integration point
Status
integration implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

if (ret < 0) {
			dev_err(rtd->card->dev, "Failed to set TDM slot:%d\n", ret);
			return ret;
		}

		ch_slot[ch_map->cpu] += ch_per_amp;
	}

	return 0;
}
EXPORT_SYMBOL_NS(asoc_sdw_cs_spk_feedback_rtd_init, "SND_SOC_SDW_UTILS");

int asoc_sdw_cs_amp_init(struct snd_soc_card *card,
			 struct snd_soc_dai_link *dai_links,
			 struct asoc_sdw_codec_info *info,
			 bool playback)
{
	/* Do init on playback link only. */
	if (!playback)
		return 0;

	info->amp_num++;

	return 0;
}
EXPORT_SYMBOL_NS(asoc_sdw_cs_amp_init, "SND_SOC_SDW_UTILS");

Annotation

Implementation Notes