diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-07-30 09:01:44 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-10-12 20:42:58 -0400 |
commit | 176d5335fe66f379a339b0ab99cc7566e90ff1a9 (patch) | |
tree | 00f294bebf1270f65fe527141d3e6c1f440bba36 /sound/pci/hda/hda_codec.h | |
parent | 687cb98e893f492932abb3e92660d7d828bd44fb (diff) |
ALSA: hda - Add infrastructure for dynamic stream allocation
Added the infrastructure for dynamic stream allocation on HD-audio.
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.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 60468f562400..70e8fa09273d 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h | |||
@@ -542,6 +542,8 @@ struct hda_bus_ops { | |||
542 | unsigned int (*get_response)(struct hda_codec *codec); | 542 | unsigned int (*get_response)(struct hda_codec *codec); |
543 | /* free the private data */ | 543 | /* free the private data */ |
544 | void (*private_free)(struct hda_bus *); | 544 | void (*private_free)(struct hda_bus *); |
545 | /* attach a PCM stream */ | ||
546 | int (*attach_pcm)(struct hda_codec *codec, struct hda_pcm *pcm); | ||
545 | #ifdef CONFIG_SND_HDA_POWER_SAVE | 547 | #ifdef CONFIG_SND_HDA_POWER_SAVE |
546 | /* notify power-up/down from codec to controller */ | 548 | /* notify power-up/down from codec to controller */ |
547 | void (*pm_notify)(struct hda_codec *codec); | 549 | void (*pm_notify)(struct hda_codec *codec); |
@@ -680,7 +682,8 @@ struct hda_pcm { | |||
680 | char *name; | 682 | char *name; |
681 | struct hda_pcm_stream stream[2]; | 683 | struct hda_pcm_stream stream[2]; |
682 | unsigned int pcm_type; /* HDA_PCM_TYPE_XXX */ | 684 | unsigned int pcm_type; /* HDA_PCM_TYPE_XXX */ |
683 | int device; /* assigned device number */ | 685 | int device; /* device number to assign */ |
686 | struct snd_pcm *pcm; /* assigned PCM instance */ | ||
684 | }; | 687 | }; |
685 | 688 | ||
686 | /* codec information */ | 689 | /* codec information */ |