mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 18:43:33 -05:00
media: saa7134: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 [hverkuil: fix checkpatch TAB indendation issues] Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
bbcab30420
commit
69518b52e9
1 changed files with 13 additions and 12 deletions
|
@ -871,23 +871,24 @@ void saa7134_enable_i2s(struct saa7134_dev *dev)
|
||||||
switch (dev->pci->device) {
|
switch (dev->pci->device) {
|
||||||
case PCI_DEVICE_ID_PHILIPS_SAA7133:
|
case PCI_DEVICE_ID_PHILIPS_SAA7133:
|
||||||
case PCI_DEVICE_ID_PHILIPS_SAA7135:
|
case PCI_DEVICE_ID_PHILIPS_SAA7135:
|
||||||
/* Set I2S format (SONY) */
|
/* Set I2S format (SONY) */
|
||||||
saa_writeb(SAA7133_I2S_AUDIO_CONTROL, 0x00);
|
saa_writeb(SAA7133_I2S_AUDIO_CONTROL, 0x00);
|
||||||
/* Start I2S */
|
/* Start I2S */
|
||||||
saa_writeb(SAA7134_I2S_AUDIO_OUTPUT, 0x11);
|
saa_writeb(SAA7134_I2S_AUDIO_OUTPUT, 0x11);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PCI_DEVICE_ID_PHILIPS_SAA7134:
|
case PCI_DEVICE_ID_PHILIPS_SAA7134:
|
||||||
i2s_format = (dev->input->amux == TV) ? 0x00 : 0x01;
|
i2s_format = (dev->input->amux == TV) ? 0x00 : 0x01;
|
||||||
|
|
||||||
/* enable I2S audio output for the mpeg encoder */
|
/* enable I2S audio output for the mpeg encoder */
|
||||||
saa_writeb(SAA7134_I2S_OUTPUT_SELECT, 0x80);
|
saa_writeb(SAA7134_I2S_OUTPUT_SELECT, 0x80);
|
||||||
saa_writeb(SAA7134_I2S_OUTPUT_FORMAT, i2s_format);
|
saa_writeb(SAA7134_I2S_OUTPUT_FORMAT, i2s_format);
|
||||||
saa_writeb(SAA7134_I2S_OUTPUT_LEVEL, 0x0F);
|
saa_writeb(SAA7134_I2S_OUTPUT_LEVEL, 0x0F);
|
||||||
saa_writeb(SAA7134_I2S_AUDIO_OUTPUT, 0x01);
|
saa_writeb(SAA7134_I2S_AUDIO_OUTPUT, 0x01);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue