From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans de Goede Subject: Re: [PATCH 0/6] ASoC: rt5651: Various fixes and quirks Date: Mon, 24 Dec 2018 15:15:00 +0100 Message-ID: References: <20180718205542.12364-1-hdegoede@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ed1-f65.google.com (mail-ed1-f65.google.com [209.85.208.65]) by alsa0.perex.cz (Postfix) with ESMTP id 0B13D267A65 for ; Mon, 24 Dec 2018 15:15:02 +0100 (CET) Received: by mail-ed1-f65.google.com with SMTP id f9so10126712eds.10 for ; Mon, 24 Dec 2018 06:15:02 -0800 (PST) In-Reply-To: <20180718205542.12364-1-hdegoede@redhat.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Liam Girdwood , Mark Brown , Bard Liao , Oder Chiou Cc: Tanu Kaskinen , alsa-devel@alsa-project.org, Pierre-Louis Bossart , Carlo Caione List-Id: alsa-devel@alsa-project.org Hi all, On 18-07-18 22:55, Hans de Goede wrote: > Note that unfortunately my previous round of cleanup patches removed > 1 input mapping (of the 3 mappings in total it removed) which is > actually necessary. So this series re-introduces that 1 mapping. I did > not notice this before because UCM input profile switching does not work > reliably for some reason, something which I still need to investigate. While doing some bytcr_rt5651 work this weekend (the x86 ASoC work I do is a spare time project for me) I hit this again, so this time I've spend some time getting to the bottom of this. The cause is a pulseaudio bug, where pulseaudio uses a strncmp without first checking the lengths of the 2 strings match, causing it to see selecting the "InternalMic-IN1" UCM device as selecting both the "InternalMic-IN1" and the "InternalMic-IN12" device. A pull-req fixing this is here: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/merge_requests/40 Regards, Hans