diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-02-27 20:44:54 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-03-03 11:28:36 +0100 |
commit | bcd96557bd0ab1129fcdde073d5700aed8fcb942 (patch) | |
tree | 8f246b3fc0b986ba9d105f632aa7cef485123825 /sound/pci/hda/hda_intel.c | |
parent | 9a6246ff78ac33af78f82704cde6fec361597eea (diff) | |
download | talos-obmc-linux-bcd96557bd0ab1129fcdde073d5700aed8fcb942.tar.gz talos-obmc-linux-bcd96557bd0ab1129fcdde073d5700aed8fcb942.zip |
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: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index f7fb1b51d446..e81461a413b8 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1895,16 +1895,6 @@ static int azx_probe_continue(struct azx *chip) goto out_free; } - /* create PCM streams */ - err = snd_hda_build_pcms(chip->bus); - if (err < 0) - goto out_free; - - /* create mixer controls */ - err = snd_hda_build_controls(chip->bus); - if (err < 0) - goto out_free; - err = snd_card_register(chip->card); if (err < 0) goto out_free; |