Update of /cvsroot/alsa/alsa-kernel/pci
In directory sc8-pr-cvs1:/tmp/cvs-serv17648/pci
Modified Files:
cmipci.c rme32.c rme96.c
Log Message:
Control API update
- separated volatile data from snd_kcontrol_t to reduce space for multi elements
- added multi elements
- changed trident driver to use multi elements
- added dimen union to the info structure to describe matrix
Index: cmipci.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/cmipci.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- cmipci.c 31 Jan 2003 15:20:02 -0000 1.43
+++ cmipci.c 1 Apr 2003 13:55:43 -0000 1.44
@@ -1443,7 +1443,7 @@
ctl->put(ctl, &val); /* toggle */
event |= SNDRV_CTL_EVENT_MASK_VALUE;
}
- ctl->access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
+ ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
snd_ctl_notify(cm->card, event, &ctl->id);
}
}
@@ -1466,7 +1466,7 @@
int event;
memset(&val, 0, sizeof(val));
- ctl->access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
+ ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
ctl->get(ctl, &val);
event = SNDRV_CTL_EVENT_MASK_INFO;
if (val.value.integer.value[0] !=
cm->mixer_res_status[i]) {
Index: rme32.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/rme32.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- rme32.c 31 Jan 2003 15:20:31 -0000 1.22
+++ rme32.c 1 Apr 2003 13:55:44 -0000 1.23
@@ -904,7 +904,7 @@
&hw_constraints_period_bytes);
rme32->wcreg_spdif_stream = rme32->wcreg_spdif;
- rme32->spdif_ctl->access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
+ rme32->spdif_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
snd_ctl_notify(rme32->card, SNDRV_CTL_EVENT_MASK_VALUE |
SNDRV_CTL_EVENT_MASK_INFO, &rme32->spdif_ctl->id);
return 0;
@@ -1037,7 +1037,7 @@
spdif = (rme32->wcreg & RME32_WCR_ADAT) == 0;
spin_unlock_irqrestore(&rme32->lock, flags);
if (spdif) {
- rme32->spdif_ctl->access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
+ rme32->spdif_ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
snd_ctl_notify(rme32->card, SNDRV_CTL_EVENT_MASK_VALUE |
SNDRV_CTL_EVENT_MASK_INFO,
&rme32->spdif_ctl->id);
Index: rme96.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/rme96.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- rme96.c 31 Jan 2003 15:20:32 -0000 1.23
+++ rme96.c 1 Apr 2003 13:55:44 -0000 1.24
@@ -1226,7 +1226,7 @@
snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
&hw_constraints_period_bytes);
rme96->wcreg_spdif_stream = rme96->wcreg_spdif;
- rme96->spdif_ctl->access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
+ rme96->spdif_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE;
snd_ctl_notify(rme96->card, SNDRV_CTL_EVENT_MASK_VALUE |
SNDRV_CTL_EVENT_MASK_INFO, &rme96->spdif_ctl->id);
return 0;
@@ -1361,7 +1361,7 @@
spdif = (rme96->wcreg & RME96_WCR_ADAT) == 0;
spin_unlock_irqrestore(&rme96->lock, flags);
if (spdif) {
- rme96->spdif_ctl->access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
+ rme96->spdif_ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE;
snd_ctl_notify(rme96->card, SNDRV_CTL_EVENT_MASK_VALUE |
SNDRV_CTL_EVENT_MASK_INFO, &rme96->spdif_ctl->id);
}
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog