Skip to content
Commit bcd96557 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda - Build PCMs and controls at codec driver probe



This makes the code flow easier -- instead of the controller driver
calling snd_hda_build_pcms() and snd_hda_build_controls() explicitly,
the codec driver itself builds PCMs and controls at probe time.  Then
the controller driver only needs to call snd_card_register().

Also, this allows us the full bind/unbind control, too.  Even when a
codec driver is bound later, it automatically registers the new PCM
and controls by itself.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9a6246ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment