Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6074b367 authored by Johannes Stezenbach's avatar Johannes Stezenbach Committed by Linus Torvalds
Browse files

[PATCH] dvb: av7110: audio out fix



Switch analog output of the Crystal sound chip to left/stereo/right mode.
This will fix problems with some (most?) channels which do not encode
2-channel audio correctly.  (Oliver Endriss)

Signed-off-by: default avatarJohannes Stezenbach <js@linuxtv.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f4f009a7
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1230,14 +1230,20 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file,
		switch(av7110->audiostate.channel_select) {
		switch(av7110->audiostate.channel_select) {
		case AUDIO_STEREO:
		case AUDIO_STEREO:
			audcom(av7110, AUDIO_CMD_STEREO);
			audcom(av7110, AUDIO_CMD_STEREO);
			if (av7110->adac_type == DVB_ADAC_CRYSTAL)
				i2c_writereg(av7110, 0x20, 0x02, 0x49);
			break;
			break;


		case AUDIO_MONO_LEFT:
		case AUDIO_MONO_LEFT:
			audcom(av7110, AUDIO_CMD_MONO_L);
			audcom(av7110, AUDIO_CMD_MONO_L);
			if (av7110->adac_type == DVB_ADAC_CRYSTAL)
				i2c_writereg(av7110, 0x20, 0x02, 0x4a);
			break;
			break;


		case AUDIO_MONO_RIGHT:
		case AUDIO_MONO_RIGHT:
			audcom(av7110, AUDIO_CMD_MONO_R);
			audcom(av7110, AUDIO_CMD_MONO_R);
			if (av7110->adac_type == DVB_ADAC_CRYSTAL)
				i2c_writereg(av7110, 0x20, 0x02, 0x45);
			break;
			break;


		default:
		default: