Commit b784e526 authored by Rafael Bilski's avatar Rafael Bilski Committed by Mauro Carvalho Chehab

V4L/DVB (5776): Hardware MPEG audio fix for SAA7134 based "KNC One TV-Station DVR" card

With previous patch card is generating MPEG audio stream too.
Unfortunatly I2S audio output is muted. Unmute it.
Signed-off-by: default avatarRafal Bilski <rafalbilski@interia.pl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent aac0ca6a
...@@ -96,6 +96,10 @@ static int ts_open(struct inode *inode, struct file *file) ...@@ -96,6 +96,10 @@ static int ts_open(struct inode *inode, struct file *file)
if (dev->empress_users) if (dev->empress_users)
goto done_up; goto done_up;
/* Unmute audio */
saa_writeb(SAA7134_AUDIO_MUTE_CTRL,
saa_readb(SAA7134_AUDIO_MUTE_CTRL) & ~(1 << 6));
dev->empress_users++; dev->empress_users++;
file->private_data = dev; file->private_data = dev;
err = 0; err = 0;
...@@ -121,6 +125,10 @@ static int ts_release(struct inode *inode, struct file *file) ...@@ -121,6 +125,10 @@ static int ts_release(struct inode *inode, struct file *file)
/* stop the encoder */ /* stop the encoder */
ts_reset_encoder(dev); ts_reset_encoder(dev);
/* Mute audio */
saa_writeb(SAA7134_AUDIO_MUTE_CTRL,
saa_readb(SAA7134_AUDIO_MUTE_CTRL) | (1 << 6));
mutex_unlock(&dev->empress_tsq.lock); mutex_unlock(&dev->empress_tsq.lock);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment