diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-27 08:17:01 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-27 08:17:01 -0500 |
commit | 529bd6c4a63f8468fd66f63fdc22d7070439b3cd (patch) | |
tree | 3a45f17bbd45ef3e4ea785ce0bb79e6afef3e438 /sound/pci/hda/hda_hwdep.c | |
parent | fee2fba3586f78762ecc5f432dfd3602765a31b3 (diff) |
ALSA: hda - Fix PCM reconfigure
The reconfiguration of PCM affected all PCM streams on the bus, but
this this should be done rather only for the target codec.
This patch does the following:
- introduce bitmap indicating the PCM device usages on a hda_bus
- refactor the PCM build functions
- fix __devinit prefix in some fucntions
- add a proper ifdef around HDA-reconfig-specific functions
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_hwdep.c')
-rw-r--r-- | sound/pci/hda/hda_hwdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_hwdep.c b/sound/pci/hda/hda_hwdep.c index 5868bbc131cd..173af489322f 100644 --- a/sound/pci/hda/hda_hwdep.c +++ b/sound/pci/hda/hda_hwdep.c | |||
@@ -168,7 +168,7 @@ static int reconfig_codec(struct hda_codec *codec) | |||
168 | if (err < 0) | 168 | if (err < 0) |
169 | return err; | 169 | return err; |
170 | /* rebuild PCMs */ | 170 | /* rebuild PCMs */ |
171 | err = snd_hda_build_pcms(codec->bus); | 171 | err = snd_hda_codec_build_pcms(codec); |
172 | if (err < 0) | 172 | if (err < 0) |
173 | return err; | 173 | return err; |
174 | /* rebuild mixers */ | 174 | /* rebuild mixers */ |