new understanding of alsa

1 snd_open start analysis
Take out new file_operations from snd_minors[ ].

2 snd_register_device constructs the array of snd_minors[] through this function

3 A function is constructed through snd_register_device to control the device
, pcm device (create an output device, an input device)

Probe function 4 snd_soc_platform_driver and snd_soc_codec_driver in
a generally registered Wight
b hardware settings
5 snd_soc_platform_driver and snd_soc_codec_driver function of the probe
by the snd_soc_instantiate_card callback
snd_soc_instantiate_card back by the snd_soc_register_card out
snd_soc_register_card back away from the soc_probe

6 The stream in /proc/asound/pcm corresponds to the stream name in snd_soc_dai_link.
At the same time:
there is a number before snd_soc_dai_link, such as 12, which corresponds to the
pcmC0D12c of the device in dev/snd . At the same time, according to the snd_soc_dai_link member function, it is judged whether there are two devices pcmC0D12c and pcmC0D12p

Guess you like

Origin blog.csdn.net/aningxiaoxixi/article/details/110943705