From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752178AbdBBR2w (ORCPT ); Thu, 2 Feb 2017 12:28:52 -0500 Received: from webclient5.webclient5.de ([136.243.32.179]:37010 "EHLO webclient5.webclient5.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751880AbdBBR2u (ORCPT ); Thu, 2 Feb 2017 12:28:50 -0500 X-Greylist: delayed 306 seconds by postgrey-1.27 at vger.kernel.org; Thu, 02 Feb 2017 12:28:50 EST Subject: Re: [alsa-devel] [RFC] [ALSA][CONTROL] Added 2 ioctls for reading/writing values of multiple controls in one go (at once) To: Satendra Singh Thakur References: <1486005286-25625-1-git-send-email-satendra.t@samsung.com> Cc: alsa-devel@alsa-project.org, ycheon.song@samsung.com, tiwai@suse.com, linux-kernel@vger.kernel.org, nishant.s4@samsung.com, hemanshu.s@samsung.com, o-takashi@sakamocchi.jp From: Clemens Ladisch Message-ID: <0cee3189-8090-b2dd-657a-cd1ac034a441@ladisch.de> Date: Thu, 2 Feb 2017 18:22:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1486005286-25625-1-git-send-email-satendra.t@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Satendra Singh Thakur wrote: > -Added an ioctl to read values of multiple elements at once > -Added an ioctl to write values of multiple elements at once > -In the absence of above ioctls user needs to call N ioctls to > read/write value of N elements which requires N context switches And why are these N context switches a problem? > -Above mentioned ioctl will be useful for alsa utils such as amixer > which reads all controls of given sound card Is there a noticeable difference? Regards, Clemens