summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-02-24 11:50:11 +0100
committerTakashi Iwai <tiwai@suse.de>2015-03-03 11:25:15 +0100
commit1a4ba30cced3002add8459eadcd65b8d3cd1515e (patch)
treedbc0abf4782e78806b5d8a2151f41fb9257e8814 /sound/pci/hda/hda_codec.h
parentALSA: hda - Clear pcm pointer assigned to hda_pcm at device removal (diff)
downloadlinux-1a4ba30cced3002add8459eadcd65b8d3cd1515e.tar.xz
linux-1a4ba30cced3002add8459eadcd65b8d3cd1515e.zip
ALSA: hda - Split snd_hda_build_pcms()
snd_hda_build_pcms() does actually three things: let the codec driver build up hda_pcm list, set the PCM default values, and call the attach_pcm bus ops for each hda_pcm instance. The former two are basically independent from the bus implementation, so it'd make the code a bit more readable. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_codec.h')
-rw-r--r--sound/pci/hda/hda_codec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 457fc589eb46..8cf70369cd10 100644
--- a/sound/pci/hda/hda_codec.h
+++ b/sound/pci/hda/hda_codec.h
@@ -517,6 +517,7 @@ int snd_hda_codec_build_controls(struct hda_codec *codec);
* PCM
*/
int snd_hda_build_pcms(struct hda_bus *bus);
+int snd_hda_codec_parse_pcms(struct hda_codec *codec);
int snd_hda_codec_build_pcms(struct hda_codec *codec);
int snd_hda_codec_prepare(struct hda_codec *codec,