aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-02-09 05:45:20 -0500
committerJaroslav Kysela <perex@suse.cz>2006-03-22 04:28:34 -0500
commit50dabc2d1139ba01362418874152aeeb591a4544 (patch)
tree8ade72febf95b39a69579db2ee7e7e066506990c /include
parentb2b8229dde970b95e407d90a140e8a8753e1f0f6 (diff)
[ALSA] ac97 - Add support of static resolution tables
Modules: AC97 Codec Added the support of static resolution table support for codecs that the driver cannot probe the volume resolution properly. The table pointer should be set in each codec patch. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/sound/ac97_codec.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sound/ac97_codec.h b/include/sound/ac97_codec.h
index ad3fe046f6cf..9036d25e1bac 100644
--- a/include/sound/ac97_codec.h
+++ b/include/sound/ac97_codec.h
@@ -444,6 +444,12 @@ struct snd_ac97_template {
444 DECLARE_BITMAP(reg_accessed, 0x80); /* bit flags */ 444 DECLARE_BITMAP(reg_accessed, 0x80); /* bit flags */
445}; 445};
446 446
447/* static resolution table */
448struct snd_ac97_res_table {
449 unsigned short reg; /* register */
450 unsigned short bits; /* resolution bitmask */
451};
452
447struct snd_ac97 { 453struct snd_ac97 {
448 /* -- lowlevel (hardware) driver specific -- */ 454 /* -- lowlevel (hardware) driver specific -- */
449 struct snd_ac97_build_ops * build_ops; 455 struct snd_ac97_build_ops * build_ops;
@@ -464,6 +470,7 @@ struct snd_ac97 {
464 unsigned short caps; /* capabilities (register 0) */ 470 unsigned short caps; /* capabilities (register 0) */
465 unsigned short ext_id; /* extended feature identification (register 28) */ 471 unsigned short ext_id; /* extended feature identification (register 28) */
466 unsigned short ext_mid; /* extended modem ID (register 3C) */ 472 unsigned short ext_mid; /* extended modem ID (register 3C) */
473 const struct snd_ac97_res_table *res_table; /* static resolution */
467 unsigned int scaps; /* driver capabilities */ 474 unsigned int scaps; /* driver capabilities */
468 unsigned int flags; /* specific code */ 475 unsigned int flags; /* specific code */
469 unsigned int rates[6]; /* see AC97_RATES_* defines */ 476 unsigned int rates[6]; /* see AC97_RATES_* defines */