Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2724486imm; Tue, 4 Sep 2018 09:01:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY2A62oyaIANmwB/rmyzEZ4YB/KgX24tPMj1su27icxKS+LZ+68h/41cs18gATb9NS8QoiP X-Received: by 2002:a17:902:292b:: with SMTP id g40-v6mr34039449plb.223.1536076915464; Tue, 04 Sep 2018 09:01:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536076915; cv=none; d=google.com; s=arc-20160816; b=nYsrUY1Mq8dmZotRcwC0I9OaTtDDsVHmXT416PFkLUWlMvvp8URVsHCmB5hVG23GwH v/B6hVyHsM3cQt+7purSqFNIWGwfkRJ7xnGPBKykSbMkEon7lEUgfyEC9CERFwHdApi7 SIzq4wuUc7oHXt+I1wur3F+m8tixLGjNYQCPjkh4CP3iE3xzVBnfOgq8DQgkiMSptWOS fvdWL6GRCb4q0bqjWFhVT5pVHGiitzVnfdR8OQyIFZ85qlQqTQW6ltPqK0JtCtlKuRiV NQqUdSGnVYt7Xk66OWNAjhr+DlzjLC/AffciN8D/rcdHiubs+zfv9H4KZydah+LVNZqL wZdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=GnatuYbIHg35/DxqOklKMpf8W1ypaqv5MWm6dBkg7Wg=; b=fLJxmViodvUIn7kkih2nZL9oWuudxXKKAc0hxIcf9R8crRqDkHnW1ciYAOkz8L+WLv hbuiFbakAK4jZko+YIuMNBXU4f/4yYX4cS/X7aRWFf2FIiZVHJJNd3WLBxsyZBgbtNuH KDq/fscxCTE79SNNYKKCnojQnIxPaccb5sJDWOxHdphkpGftzwaRkU5LIUzLJi0w/18w SzNDifsUKVaZRWX3zsbTXGqgStG5tuHD6xFfe9SkyjsEb6DLlWYx/n8yw9294s21c2MZ fRb2Tc7F9PqpcbpfqgFc5/3u4oK1KCxsWo26AtH6ZAGeJltMkNE2gFgfbdDorg+JKh7V dfPg== 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 h11-v6si21599437pgf.558.2018.09.04.09.01.35; Tue, 04 Sep 2018 09:01: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 S1728059AbeIDUZe (ORCPT + 99 others); Tue, 4 Sep 2018 16:25:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:51066 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727814AbeIDUYv (ORCPT ); Tue, 4 Sep 2018 16:24:51 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id DCC4FB0B5; Tue, 4 Sep 2018 15:59:02 +0000 (UTC) From: Takashi Iwai To: Greg Kroah-Hartman Cc: Eric Anholt , Stefan Wahren , linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 26/29] staging: bcm2835-audio: Set SNDRV_PCM_INFO_SYNC_APPLPTR Date: Tue, 4 Sep 2018 17:58:55 +0200 Message-Id: <20180904155858.8001-27-tiwai@suse.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180904155858.8001-1-tiwai@suse.de> References: <20180904155858.8001-1-tiwai@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The recent ALSA PCM core supports the SNDRV_PCM_INFO_SYNC_APPLPTR flag indicating that the driver needs the ack call at each appl_ptr update. This is requirement for the indirect PCM implementations like bcm2835-audio driver, too. Signed-off-by: Takashi Iwai --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c index 8b8e286587cb..5ddb8ee93cb2 100644 --- a/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c +++ b/drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c @@ -12,7 +12,7 @@ static const struct snd_pcm_hardware snd_bcm2835_playback_hw = { .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | - SNDRV_PCM_INFO_DRAIN_TRIGGER), + SNDRV_PCM_INFO_DRAIN_TRIGGER | SNDRV_PCM_INFO_SYNC_APPLPTR), .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE, .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000, .rate_min = 8000, @@ -29,7 +29,7 @@ static const struct snd_pcm_hardware snd_bcm2835_playback_hw = { static const struct snd_pcm_hardware snd_bcm2835_playback_spdif_hw = { .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | - SNDRV_PCM_INFO_DRAIN_TRIGGER), + SNDRV_PCM_INFO_DRAIN_TRIGGER | SNDRV_PCM_INFO_SYNC_APPLPTR), .formats = SNDRV_PCM_FMTBIT_S16_LE, .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_44100 | SNDRV_PCM_RATE_48000, -- 2.18.0