Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp916246imm; Thu, 31 May 2018 11:40:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJiltar5KvsP1bo7D7qQFiYWdKeB9gQA+5g62ORXDSLpMyS7UNbK2OwFnp/3gGLS1fAWr/j X-Received: by 2002:a17:902:bb90:: with SMTP id m16-v6mr5259731pls.50.1527792055657; Thu, 31 May 2018 11:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527792055; cv=none; d=google.com; s=arc-20160816; b=XyNp8v96JoJ7xRy1aEv5c3n2s8ZZhsIwQhjppRQ/Z+9gAwyBtCIjjL/3u4p7AJEFTF o6/loN9cLtAv+LTCyR+lD/2QPAShLhb84kEvmE4/fCO9v7GId5oLu4JHbkAhud2CKanD FAzr8NebdlQm1WfVyr9CrbblS3by07O5DBfYKwYSJESXrzuZJfFOZjhflhX55W3J1NHg 45aorBibISyBZFaCK5RvaynyxcI1nwwJzwI+1+BjKvUhIWAUFP9MsXrSC6bXdmwA8A3D NWL5Q7jOsu6548nv01at3lRXFDxXYNRJnxZ9ja1fVvG8VhvvnAbJov+hpjwe0iDrfoBF 9XcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date :arc-authentication-results; bh=2PCAvGEtKgVSDy2V5wOP1JuUXqwremQc1TtwimB66EY=; b=GoxNRAndEWgIJd7zNQONZ3ZdgH1SZMYmAwyeVe1Mx7l7RP022POhMMmZtXrGj6sAyk 1lC1MDMtNAZiLnE+wsxugDWf3EGclnadQpCo2NfsgLwMT267+e7Es0tTQolrmJwvmpKr JAu0meXYObiWgaIe9q9O226ku7peYePCvXKyNH3RP/hCNqCQKXwjDk55ZnVVvAkcNlIO XapdSyftj8OBewvnF0q5DNPp67ig3lCeFzOTFBRsELRsaTfWc8GGQGYIBb3Uel305SOP LPI6FwNaEGy49iueea6liP90OtSYrb3TVFtaO/3VS+H/BPcVpbdHWeT4jmztR5oQjfTE sWCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z80-v6si38067314pfi.7.2018.05.31.11.40.39; Thu, 31 May 2018 11:40:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755978AbeEaSji (ORCPT + 99 others); Thu, 31 May 2018 14:39:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:56603 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755877AbeEaSjf (ORCPT ); Thu, 31 May 2018 14:39:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 562B3ADD5; Thu, 31 May 2018 18:39:34 +0000 (UTC) Date: Thu, 31 May 2018 20:39:33 +0200 Message-ID: From: Takashi Iwai To: "Yisheng Xie" Cc: , , , "Clemens Ladisch" , "Jaroslav Kysela" Subject: Re: [PATCH v2 15/21] ALSA: oxygen: use match_string() helper In-Reply-To: <1527765086-19873-16-git-send-email-xieyisheng1@huawei.com> References: <1527765086-19873-1-git-send-email-xieyisheng1@huawei.com> <1527765086-19873-16-git-send-email-xieyisheng1@huawei.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 31 May 2018 13:11:20 +0200, Yisheng Xie wrote: > > match_string() returns the index of an array for a matching string, > which can be used instead of open coded variant. > > Cc: Clemens Ladisch > Cc: Jaroslav Kysela > Cc: Takashi Iwai > Cc: alsa-devel@alsa-project.org > Signed-off-by: Yisheng Xie Applied, thanks. Takashi