Commit ea3b73dc authored by Oliver Endriss's avatar Oliver Endriss Committed by Mauro Carvalho Chehab

V4L/DVB (11763): dvb-ttpci: Some whitespace adjustments

Some whitespace adjustments.
Signed-off-by: default avatarOliver Endriss <o.endriss@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e76ef133
...@@ -1126,7 +1126,6 @@ static int dvb_video_ioctl(struct inode *inode, struct file *file, ...@@ -1126,7 +1126,6 @@ static int dvb_video_ioctl(struct inode *inode, struct file *file,
if (ret) if (ret)
break; break;
} }
if (av7110->videostate.stream_source == VIDEO_SOURCE_MEMORY) { if (av7110->videostate.stream_source == VIDEO_SOURCE_MEMORY) {
if (av7110->playing == RP_AV) { if (av7110->playing == RP_AV) {
ret = av7110_fw_cmd(av7110, COMTYPE_REC_PLAY, __Stop, 0); ret = av7110_fw_cmd(av7110, COMTYPE_REC_PLAY, __Stop, 0);
...@@ -1186,20 +1185,16 @@ static int dvb_video_ioctl(struct inode *inode, struct file *file, ...@@ -1186,20 +1185,16 @@ static int dvb_video_ioctl(struct inode *inode, struct file *file,
case VIDEO_SET_DISPLAY_FORMAT: case VIDEO_SET_DISPLAY_FORMAT:
{ {
video_displayformat_t format = (video_displayformat_t) arg; video_displayformat_t format = (video_displayformat_t) arg;
switch (format) { switch (format) {
case VIDEO_PAN_SCAN: case VIDEO_PAN_SCAN:
av7110->display_panscan = VID_PAN_SCAN_PREF; av7110->display_panscan = VID_PAN_SCAN_PREF;
break; break;
case VIDEO_LETTER_BOX: case VIDEO_LETTER_BOX:
av7110->display_panscan = VID_VC_AND_PS_PREF; av7110->display_panscan = VID_VC_AND_PS_PREF;
break; break;
case VIDEO_CENTER_CUT_OUT: case VIDEO_CENTER_CUT_OUT:
av7110->display_panscan = VID_CENTRE_CUT_PREF; av7110->display_panscan = VID_CENTRE_CUT_PREF;
break; break;
default: default:
ret = -EINVAL; ret = -EINVAL;
} }
...@@ -1272,7 +1267,6 @@ static int dvb_video_ioctl(struct inode *inode, struct file *file, ...@@ -1272,7 +1267,6 @@ static int dvb_video_ioctl(struct inode *inode, struct file *file,
case VIDEO_CLEAR_BUFFER: case VIDEO_CLEAR_BUFFER:
dvb_ringbuffer_flush_spinlock_wakeup(&av7110->avout); dvb_ringbuffer_flush_spinlock_wakeup(&av7110->avout);
av7110_ipack_reset(&av7110->ipack[1]); av7110_ipack_reset(&av7110->ipack[1]);
if (av7110->playing == RP_AV) { if (av7110->playing == RP_AV) {
ret = av7110_fw_cmd(av7110, COMTYPE_REC_PLAY, ret = av7110_fw_cmd(av7110, COMTYPE_REC_PLAY,
__Play, 2, AV_PES, 0); __Play, 2, AV_PES, 0);
...@@ -1293,13 +1287,13 @@ static int dvb_video_ioctl(struct inode *inode, struct file *file, ...@@ -1293,13 +1287,13 @@ static int dvb_video_ioctl(struct inode *inode, struct file *file,
break; break;
case VIDEO_SET_STREAMTYPE: case VIDEO_SET_STREAMTYPE:
break; break;
default: default:
ret = -ENOIOCTLCMD; ret = -ENOIOCTLCMD;
break; break;
} }
return ret; return ret;
} }
...@@ -1374,7 +1368,6 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file, ...@@ -1374,7 +1368,6 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file,
case AUDIO_CHANNEL_SELECT: case AUDIO_CHANNEL_SELECT:
av7110->audiostate.channel_select = (audio_channel_select_t) arg; av7110->audiostate.channel_select = (audio_channel_select_t) arg;
switch(av7110->audiostate.channel_select) { switch(av7110->audiostate.channel_select) {
case AUDIO_STEREO: case AUDIO_STEREO:
ret = audcom(av7110, AUDIO_CMD_STEREO); ret = audcom(av7110, AUDIO_CMD_STEREO);
...@@ -1385,7 +1378,6 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file, ...@@ -1385,7 +1378,6 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file,
msp_writereg(av7110, MSP_WR_DSP, 0x0008, 0x0220); msp_writereg(av7110, MSP_WR_DSP, 0x0008, 0x0220);
} }
break; break;
case AUDIO_MONO_LEFT: case AUDIO_MONO_LEFT:
ret = audcom(av7110, AUDIO_CMD_MONO_L); ret = audcom(av7110, AUDIO_CMD_MONO_L);
if (!ret) { if (!ret) {
...@@ -1395,7 +1387,6 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file, ...@@ -1395,7 +1387,6 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file,
msp_writereg(av7110, MSP_WR_DSP, 0x0008, 0x0200); msp_writereg(av7110, MSP_WR_DSP, 0x0008, 0x0200);
} }
break; break;
case AUDIO_MONO_RIGHT: case AUDIO_MONO_RIGHT:
ret = audcom(av7110, AUDIO_CMD_MONO_R); ret = audcom(av7110, AUDIO_CMD_MONO_R);
if (!ret) { if (!ret) {
...@@ -1405,7 +1396,6 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file, ...@@ -1405,7 +1396,6 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file,
msp_writereg(av7110, MSP_WR_DSP, 0x0008, 0x0210); msp_writereg(av7110, MSP_WR_DSP, 0x0008, 0x0210);
} }
break; break;
default: default:
ret = -EINVAL; ret = -EINVAL;
break; break;
...@@ -1431,21 +1421,24 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file, ...@@ -1431,21 +1421,24 @@ static int dvb_audio_ioctl(struct inode *inode, struct file *file,
ret = av7110_fw_cmd(av7110, COMTYPE_REC_PLAY, ret = av7110_fw_cmd(av7110, COMTYPE_REC_PLAY,
__Play, 2, AV_PES, 0); __Play, 2, AV_PES, 0);
break; break;
case AUDIO_SET_ID:
case AUDIO_SET_ID:
break; break;
case AUDIO_SET_MIXER: case AUDIO_SET_MIXER:
{ {
struct audio_mixer *amix = (struct audio_mixer *)parg; struct audio_mixer *amix = (struct audio_mixer *)parg;
ret = av7110_set_volume(av7110, amix->volume_left, amix->volume_right); ret = av7110_set_volume(av7110, amix->volume_left, amix->volume_right);
break; break;
} }
case AUDIO_SET_STREAMTYPE: case AUDIO_SET_STREAMTYPE:
break; break;
default: default:
ret = -ENOIOCTLCMD; ret = -ENOIOCTLCMD;
} }
return ret; return ret;
} }
......
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