mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-01 12:19:28 +00:00
Fix a brain-o: wrong case statement semantics.
Found with: clang
This commit is contained in:
parent
a6d8c83fd9
commit
577fedb6b1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213779
@ -2236,7 +2236,8 @@ envy24ht_putcfg(struct sc_info *sc)
|
|||||||
else
|
else
|
||||||
printf("not implemented\n");
|
printf("not implemented\n");
|
||||||
switch (sc->adcn) {
|
switch (sc->adcn) {
|
||||||
case 0x01 || 0x02:
|
case 0x01:
|
||||||
|
case 0x02:
|
||||||
printf(" ADC #: ");
|
printf(" ADC #: ");
|
||||||
printf("%d\n", sc->adcn);
|
printf("%d\n", sc->adcn);
|
||||||
break;
|
break;
|
||||||
|
@ -283,7 +283,8 @@ spicds_set(struct spicds_info *codec, int dir, unsigned int left, unsigned int r
|
|||||||
case SPICDS_TYPE_WM8770:
|
case SPICDS_TYPE_WM8770:
|
||||||
left = left + 27;
|
left = left + 27;
|
||||||
break;
|
break;
|
||||||
case SPICDS_TYPE_AK4381 || SPICDS_TYPE_AK4396:
|
case SPICDS_TYPE_AK4381:
|
||||||
|
case SPICDS_TYPE_AK4396:
|
||||||
left = left * 255 / 100;
|
left = left * 255 / 100;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user