Hi Sebastian,

I love your patch! Perhaps something to improve:

[auto build test WARNING on robh/for-next]
[also build test WARNING on v4.16-rc2 next-20180223]
[if your patch is applied to the wrong git tree, please drop us a note to help 
improve the system]

url:    
https://github.com/0day-ci/linux/commits/Sebastian-Reichel/Motorola-Droid-4-Audio-Support/20180226-063007
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
reproduce:
        # apt-get install sparse
        make ARCH=x86_64 allmodconfig
        make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> sound/soc/codecs/cpcap.c:1406:54: sparse: restricted snd_pcm_format_t 
>> degrades to integer

vim +1406 sound/soc/codecs/cpcap.c

  1396  
  1397  static struct snd_soc_dai_driver cpcap_dai[] = {
  1398  {
  1399          .id = 0,
  1400          .name = "cpcap-hifi",
  1401          .playback = {
  1402                  .stream_name = "HiFi Playback",
  1403                  .channels_min = 2,
  1404                  .channels_max = 2,
  1405                  .rates = SNDRV_PCM_RATE_8000_48000,
> 1406                  .formats = SNDRV_PCM_FMTBIT_S16_LE | 
> SNDRV_PCM_FORMAT_S24_LE,
  1407          },
  1408          .ops = &cpcap_dai_hifi_ops,
  1409  },
  1410  {
  1411          .id = 1,
  1412          .name = "cpcap-voice",
  1413          .playback = {
  1414                  .stream_name = "Voice Playback",
  1415                  .channels_min = 1,
  1416                  .channels_max = 1,
  1417                  .rates = SNDRV_PCM_RATE_8000_48000,
  1418                  .formats = SNDRV_PCM_FMTBIT_S16_LE,
  1419          },
  1420          .capture = {
  1421                  .stream_name = "Voice Capture",
  1422                  .channels_min = 1,
  1423                  .channels_max = 2,
  1424                  .rates = SNDRV_PCM_RATE_8000_48000,
  1425                  .formats = SNDRV_PCM_FMTBIT_S16_LE,
  1426          },
  1427          .ops = &cpcap_dai_voice_ops,
  1428  },
  1429  };
  1430  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Reply via email to