[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGrhNMznQrbCxMs=0pVRDL9ott8kBX15yT9EyyS8zpzq03Fwuw@mail.gmail.com>
Date: Fri, 26 Jul 2013 12:04:17 -0700
From: Felipe Tonello <eu@...ipetonello.com>
To: Mark Brown <broonie@...nel.org>
Cc: alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
Takashi Iwai <tiwai@...e.de>,
David Henningsson <david.henningsson@...onical.com>,
Wang Xingchao <xingchao.wang@...ux.intel.com>,
Jaroslav Kysela <perex@...ex.cz>
Subject: Re: [PATCH 1/4] ALSA: Added jack detection kcontrol support
Hi Mark,
On Fri, Jul 26, 2013 at 11:46 AM, Mark Brown <broonie@...nel.org> wrote:
> On Fri, Jul 26, 2013 at 11:25:30AM -0700, Felipe F. Tonello wrote:
>
>> - snprintf(kctl->id.name, sizeof(kctl->id.name), "%s Jack", name);
>> +
>> + strlcpy(kctl->id.name, name, sizeof(kctl->id.name));
>
> This looks like it'd break existing users unless they are updated to
> remove the "Jack" from their calls?
Yes, that's why I appended the " Jack" in snd_jack_new().
>
>> * @type: a bitmask of enum snd_jack_type values that can be detected by
>> * this jack
>> + * @idx: index of this control item
>> * @jjack: Used to provide the allocated jack object to the caller.
>
> "The index of the ALSA control created to represent the jack.
Ok.
Felipe Tonello
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists