diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-03-15 07:52:54 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-03-22 04:38:46 -0500 |
commit | 7c5706bb33687ce82f30d9ac06dd1bdf71b2262e (patch) | |
tree | e27123653733102519235d209e5c4de6be206b4f /sound | |
parent | 4ccb4a4387b3ed8c5a03862ef1e6f7be484ade25 (diff) |
[ALSA] ac97 - Allow drivers to set static volume resolution table
Modules: AC97 Codec
Add the pointer to a static volume resolution table to ac97 template,
so that the drivers can define the volume resolution, too.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/ac97/ac97_codec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/ac97/ac97_codec.c b/sound/pci/ac97/ac97_codec.c index 38b6c65d40c3..c5bbdcbf5422 100644 --- a/sound/pci/ac97/ac97_codec.c +++ b/sound/pci/ac97/ac97_codec.c | |||
@@ -1868,6 +1868,7 @@ int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template, | |||
1868 | ac97->scaps = template->scaps; | 1868 | ac97->scaps = template->scaps; |
1869 | ac97->limited_regs = template->limited_regs; | 1869 | ac97->limited_regs = template->limited_regs; |
1870 | memcpy(ac97->reg_accessed, template->reg_accessed, sizeof(ac97->reg_accessed)); | 1870 | memcpy(ac97->reg_accessed, template->reg_accessed, sizeof(ac97->reg_accessed)); |
1871 | ac97->res_table = template->res_table; | ||
1871 | bus->codec[ac97->num] = ac97; | 1872 | bus->codec[ac97->num] = ac97; |
1872 | mutex_init(&ac97->reg_mutex); | 1873 | mutex_init(&ac97->reg_mutex); |
1873 | mutex_init(&ac97->page_mutex); | 1874 | mutex_init(&ac97->page_mutex); |