diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-08-03 07:50:30 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2005-08-30 02:43:39 -0400 |
commit | 5549d54992391d81a8cbfbaac45a958876fbc9cb (patch) | |
tree | 167448ed62cbf5c60b4237df23945a34b5e38abe /sound/pci/ens1370.c | |
parent | 10e8d78a94fc57f1bf11d50b97ff85b005e46d0b (diff) |
[ALSA] use PCM interface for IEC958 controls
Digigram VX core,ENS1370/1+ driver,CA0106 driver,EMU10K1/EMU10K2 driver
RME HDSP driver,RME9652 driver
For consistency, use the PCM interface instead of MIXER for IEC958
default/mask/stream mixer controls.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/pci/ens1370.c')
-rw-r--r-- | sound/pci/ens1370.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c index bc8272be0031..f06b95f41a1d 100644 --- a/sound/pci/ens1370.c +++ b/sound/pci/ens1370.c | |||
@@ -1446,7 +1446,7 @@ static int snd_es1371_spdif_put(snd_kcontrol_t * kcontrol, snd_ctl_elem_value_t | |||
1446 | static snd_kcontrol_new_t snd_es1371_mixer_spdif[] __devinitdata = { | 1446 | static snd_kcontrol_new_t snd_es1371_mixer_spdif[] __devinitdata = { |
1447 | ES1371_SPDIF(SNDRV_CTL_NAME_IEC958("",PLAYBACK,SWITCH)), | 1447 | ES1371_SPDIF(SNDRV_CTL_NAME_IEC958("",PLAYBACK,SWITCH)), |
1448 | { | 1448 | { |
1449 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1449 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
1450 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), | 1450 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT), |
1451 | .info = snd_ens1373_spdif_info, | 1451 | .info = snd_ens1373_spdif_info, |
1452 | .get = snd_ens1373_spdif_default_get, | 1452 | .get = snd_ens1373_spdif_default_get, |
@@ -1454,13 +1454,13 @@ static snd_kcontrol_new_t snd_es1371_mixer_spdif[] __devinitdata = { | |||
1454 | }, | 1454 | }, |
1455 | { | 1455 | { |
1456 | .access = SNDRV_CTL_ELEM_ACCESS_READ, | 1456 | .access = SNDRV_CTL_ELEM_ACCESS_READ, |
1457 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1457 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
1458 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,MASK), | 1458 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,MASK), |
1459 | .info = snd_ens1373_spdif_info, | 1459 | .info = snd_ens1373_spdif_info, |
1460 | .get = snd_ens1373_spdif_mask_get | 1460 | .get = snd_ens1373_spdif_mask_get |
1461 | }, | 1461 | }, |
1462 | { | 1462 | { |
1463 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 1463 | .iface = SNDRV_CTL_ELEM_IFACE_PCM, |
1464 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,PCM_STREAM), | 1464 | .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,PCM_STREAM), |
1465 | .info = snd_ens1373_spdif_info, | 1465 | .info = snd_ens1373_spdif_info, |
1466 | .get = snd_ens1373_spdif_stream_get, | 1466 | .get = snd_ens1373_spdif_stream_get, |