summaryrefslogtreecommitdiffstats
path: root/sound/pci/ca0106
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@suse.cz>2006-07-05 17:39:49 +0200
committerJaroslav Kysela <perex@suse.cz>2006-09-23 10:37:36 +0200
commit302e9c5af4fb3ea258917ee6a32e9e45f578b231 (patch)
tree2f3c5f8c48c198fc3a7c7b1460d094549cd7d313 /sound/pci/ca0106
parent7f0e2f8bb851f5e0a2e0fef465b7b6f36c7aa7be (diff)
downloadblackbird-obmc-linux-302e9c5af4fb3ea258917ee6a32e9e45f578b231.tar.gz
blackbird-obmc-linux-302e9c5af4fb3ea258917ee6a32e9e45f578b231.zip
[ALSA] HDA codec & CA0106 - add/fix TLV support
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/ca0106')
-rw-r--r--sound/pci/ca0106/ca0106_mixer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/ca0106/ca0106_mixer.c b/sound/pci/ca0106/ca0106_mixer.c
index 35309b3ed8c0..df75270939ac 100644
--- a/sound/pci/ca0106/ca0106_mixer.c
+++ b/sound/pci/ca0106/ca0106_mixer.c
@@ -472,10 +472,12 @@ static int snd_ca0106_i2c_volume_put(struct snd_kcontrol *kcontrol,
#define CA_VOLUME(xname,chid,reg) \
{ \
.iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
+ .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | \
+ SNDRV_CTL_ELEM_ACCESS_TLV_READ, \
.info = snd_ca0106_volume_info, \
.get = snd_ca0106_volume_get, \
.put = snd_ca0106_volume_put, \
- .tlv = snd_ca0106_db_scale, \
+ .tlv.p = snd_ca0106_db_scale, \
.private_value = ((chid) << 8) | (reg) \
}
OpenPOWER on IntegriCloud