All of lore.kernel.org
 help / color / mirror / Atom feed
From: Detlef Urban <onkel@paraair.de>
To: tiwai@suse.com
Cc: alsa-devel@alsa-project.org
Subject: Fwd: Re: [PATCH v6 1/1] ALSA: Tascam US-16x08 DSP mixer quirk
Date: Wed, 15 Feb 2017 18:32:07 +0100	[thread overview]
Message-ID: <9f0131bf-1bf2-1488-ef24-831612447fa2@paraair.de> (raw)
In-Reply-To: <201702152346.f2qgk7s0%fengguang.wu@intel.com>

[-- Attachment #1: Type: text/plain, Size: 2686 bytes --]


It seems that my approach to add names to snd_ctl_elem_info enumeration 
is wrong (see bleow).
I couldn't find documentation or any example to lean on.
Any hints ?


-------- Weitergeleitete Nachricht --------
Betreff: 	Re: [alsa-devel] [PATCH v6 1/1] ALSA: Tascam US-16x08 DSP 
mixer quirk
Datum: 	Wed, 15 Feb 2017 23:46:04 +0800
Von: 	kbuild test robot <lkp@intel.com>
An: 	OnkelDead <onkel@paraair.de>
Kopie (CC): 	OnkelDead <onkel@paraair.de>, alsa-devel@alsa-project.org, 
kbuild-all@01.org, tiwai@suse.com



Hi OnkelDead,

[auto build test WARNING on sound/for-next]
[also build test WARNING on v4.10-rc8 next-20170215]
[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/OnkelDead/ALSA-Tascam-US-16x08-DSP-mixer-quirk/20170215-222805
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: blackfin-allmodconfig (attached as .config)
compiler: bfin-uclinux-gcc (GCC) 6.2.0
reproduce:
         wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
         chmod +x ~/bin/make.cross
         # save the attached .config to linux build tree
         make.cross ARCH=blackfin

All warnings (new ones prefixed by >>):

    sound/usb/mixer_us16x08.c: In function 'snd_us16x08_route_info':
>> sound/usb/mixer_us16x08.c:201:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
      uinfo->value.enumerated.names_ptr = (__u64) route_names;
                                          ^

vim +201 sound/usb/mixer_us16x08.c

    185		}
    186	
    187		return err;
    188	}
    189	
    190	static int snd_us16x08_route_info(struct snd_kcontrol *kcontrol,
    191		struct snd_ctl_elem_info *uinfo)
    192	{
    193		int i;
    194	
    195		uinfo->count = 1;
    196		uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
    197		uinfo->value.integer.max = SND_US16X08_KCMAX(kcontrol);
    198		uinfo->value.integer.min = SND_US16X08_KCMIN(kcontrol);
    199		uinfo->value.integer.step = SND_US16X08_KCSTEP(kcontrol);
    200		uinfo->value.enumerated.items = 10;
  > 201		uinfo->value.enumerated.names_ptr = (__u64) route_names;
    202		uinfo->value.enumerated.names_length = 0;
    203		for (i = 0; i < 10; i++)
    204			uinfo->value.enumerated.names_length +=
    205				strlen(route_names[i]) + 1;
    206		return 0;
    207	}
    208	
    209	static int snd_us16x08_route_get(struct snd_kcontrol *kcontrol,

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


[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42766 bytes --]

[-- Attachment #3: Nachrichtenteil als Anhang --]
[-- Type: text/plain, Size: 161 bytes --]

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[-- Attachment #4: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2017-02-15 17:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-15 14:23 [PATCH v6 1/1] ALSA: Tascam US-16x08 DSP mixer quirk OnkelDead
2017-02-15 15:46 ` kbuild test robot
2017-02-15 17:32   ` Detlef Urban [this message]
2017-02-15 17:37     ` Fwd: " Clemens Ladisch
2017-02-16  7:56     ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9f0131bf-1bf2-1488-ef24-831612447fa2@paraair.de \
    --to=onkel@paraair.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.