summaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_codec.h
diff options
context:
space:
mode:
authorTakashi Iwai2008-07-30 15:01:44 +0200
committerTakashi Iwai2008-10-13 02:42:58 +0200
commit176d5335fe66f379a339b0ab99cc7566e90ff1a9 (patch)
tree00f294bebf1270f65fe527141d3e6c1f440bba36 /sound/pci/hda/hda_codec.h
parentALSA: hda: corrected invalid mixer values (diff)
downloadkernel-qcow2-linux-176d5335fe66f379a339b0ab99cc7566e90ff1a9.tar.gz
kernel-qcow2-linux-176d5335fe66f379a339b0ab99cc7566e90ff1a9.tar.xz
kernel-qcow2-linux-176d5335fe66f379a339b0ab99cc7566e90ff1a9.zip
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.h5
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 {
unsigned int (*get_response)(struct hda_codec *codec);
/* free the private data */
void (*private_free)(struct hda_bus *);
+ /* attach a PCM stream */
+ int (*attach_pcm)(struct hda_codec *codec, struct hda_pcm *pcm);
#ifdef CONFIG_SND_HDA_POWER_SAVE
/* notify power-up/down from codec to controller */
void (*pm_notify)(struct hda_codec *codec);
@@ -680,7 +682,8 @@ struct hda_pcm {
char *name;
struct hda_pcm_stream stream[2];
unsigned int pcm_type; /* HDA_PCM_TYPE_XXX */
- int device; /* assigned device number */
+ int device; /* device number to assign */
+ struct snd_pcm *pcm; /* assigned PCM instance */
};
/* codec information */