diff options
author | Oliver Endriss <devnull@localhost> | 2005-11-15 19:29:20 +0000 |
---|---|---|
committer | Oliver Endriss <devnull@localhost> | 2005-11-15 19:29:20 +0000 |
commit | b70f2a57ac910dbbe7847f4522a3f65c79b1499c (patch) | |
tree | 0acfaf5f7d8d1ebf0794b30684ed223295a100bb /linux/drivers/media/dvb/ttpci/av7110_av.c | |
parent | 5ed611afbec6fd973f36d37c0d3dd554e43cdc8b (diff) | |
download | mediapointer-dvb-s2-b70f2a57ac910dbbe7847f4522a3f65c79b1499c.tar.gz mediapointer-dvb-s2-b70f2a57ac910dbbe7847f4522a3f65c79b1499c.tar.bz2 |
Driver support for live-ac3, firmware >= 2621 required.
Signed-off-by: Dr. Werner Fink <werner@suse.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110_av.c')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_av.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110_av.c b/linux/drivers/media/dvb/ttpci/av7110_av.c index 2d26ff316..400facec7 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_av.c +++ b/linux/drivers/media/dvb/ttpci/av7110_av.c @@ -1256,7 +1256,9 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file, break; case AUDIO_SET_BYPASS_MODE: - ret = -EINVAL; + if (FW_VERSION(av7110->arm_app) < 0x2621) + ret = -EINVAL; + av7110->audiostate.bypass_mode = (int)arg; break; case AUDIO_CHANNEL_SELECT: @@ -1295,7 +1297,11 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file, break; case AUDIO_GET_CAPABILITIES: - *(int *)parg = AUDIO_CAP_LPCM | AUDIO_CAP_MP1 | AUDIO_CAP_MP2; + if (FW_VERSION(av7110->arm_app) < 0x2621) + *(unsigned int *)parg = AUDIO_CAP_LPCM | AUDIO_CAP_MP1 | AUDIO_CAP_MP2; + else + *(unsigned int *)parg = AUDIO_CAP_LPCM | AUDIO_CAP_DTS | AUDIO_CAP_AC3 | + AUDIO_CAP_MP1 | AUDIO_CAP_MP2; break; case AUDIO_CLEAR_BUFFER: |