From patchwork Tue Apr 16 12:17:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Hofman X-Patchwork-Id: 789347 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D0909C4345F for ; Tue, 16 Apr 2024 12:18:17 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 6B4A4E97; Tue, 16 Apr 2024 14:18:05 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6B4A4E97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1713269895; bh=FgviWFGwf9CMO7Zp1Ce05FWvQLhIYD6uwo7L3B7g/Gs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=XzELC3n4Rte9mQgratXC0M5A+hhOQlA3gVxpcS7nzqZeGsIdJBfpmb64ZvdmAIQ1y njSoe7zO3zKTLrJih04VrSYdajH+LmMPsf3Lx14bPIzPzYFQ/JlDD93UEmWK5UNRT2 lCpboWoLytARl2IC13NdcYkEOQmr7IFbSipbFQZk= Received: by alsa1.perex.cz (Postfix, from userid 50401) id C0A18F805B1; Tue, 16 Apr 2024 14:17:43 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 189D7F80570; Tue, 16 Apr 2024 14:17:43 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9F6AEF80496; Tue, 16 Apr 2024 14:17:34 +0200 (CEST) Received: from smtp.ivitera.com (smtp.ivitera.com [88.101.85.59]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 516B4F80236 for ; Tue, 16 Apr 2024 14:17:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 516B4F80236 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=ivitera.com header.i=@ivitera.com header.a=rsa-sha256 header.s=mail header.b=d7pHGA3p; dkim=pass (1024-bit key) header.d=ivitera.com header.i=@ivitera.com header.a=rsa-sha256 header.s=mail header.b=dJH2apKX Received: from localhost (localhost [127.0.0.1]) by smtp.ivitera.com (Postfix) with ESMTP id 15D171722D3; Tue, 16 Apr 2024 14:17:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ivitera.com; s=mail; t=1713269848; bh=FgviWFGwf9CMO7Zp1Ce05FWvQLhIYD6uwo7L3B7g/Gs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=d7pHGA3p7v59QvkDqdBilYZX2k8+KPoa6LTdEKiPDnXbI3nKpQigMxYJGTi4xVhas GSif7Mobr2UciA0Fy0m9d6jtYKrimrfQvbKt07T6bxqJHfr/c/ha+HkmIpE/gqZwgS QX8Hi++TGeZQ1pfS58f9d478boL+ggdxAAySGoX0= Received: from smtp.ivitera.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VvXwtzzLDrO7; Tue, 16 Apr 2024 14:17:27 +0200 (CEST) Received: from precision.insite.cz (dustin.pilsfree.net [81.201.58.138]) (Authenticated sender: pavel) by smtp.ivitera.com (Postfix) with ESMTPSA id 96ECD173697; Tue, 16 Apr 2024 14:17:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ivitera.com; s=mail; t=1713269847; bh=FgviWFGwf9CMO7Zp1Ce05FWvQLhIYD6uwo7L3B7g/Gs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dJH2apKXw3hYcBBiyGDCj3ZSJwVsMqt5F76PVaJoJc53sb3hZE5zsyrdafIAT2NSp 40ZYLZGghfXjE1bAFI+Dpbe+Nz2ntwtABgzxBHv1mBG3qLSqZSGsjRYuqhF82JoNgg gWvZouebm8TOAZWcxfpaHNWOoIot7FE9TjJScYvU= From: Pavel Hofman To: alsa-devel@alsa-project.org Cc: Jaroslav Kysela , Takashi Iwai , Pavel Hofman Subject: [PATCH 1/3] ALSA:aloop: add DSD formats Date: Tue, 16 Apr 2024 14:17:24 +0200 Message-Id: <20240416121726.628679-2-pavel.hofman@ivitera.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240416121726.628679-1-pavel.hofman@ivitera.com> References: <20240416121726.628679-1-pavel.hofman@ivitera.com> MIME-Version: 1.0 Message-ID-Hash: RDDNYDFJ2HLDA5XLQTBZ5LLUIZ4OZMFF X-Message-ID-Hash: RDDNYDFJ2HLDA5XLQTBZ5LLUIZ4OZMFF X-MailFrom: pavel.hofman@ivitera.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: <> List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The snd-aloop loopback driver does not modify or access the actual samples in any way, defines no volume or mute controls, it's strictly bitperfect. Therefore DSD formats can be supported without any modification. Add all DSD formats to the list of supported formats. Signed-off-by: Pavel Hofman --- sound/drivers/aloop.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index 892c4e29c0a3..44ee2a4bc2b0 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c @@ -927,7 +927,10 @@ static const struct snd_pcm_hardware loopback_pcm_hardware = SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S24_BE | SNDRV_PCM_FMTBIT_S24_3LE | SNDRV_PCM_FMTBIT_S24_3BE | SNDRV_PCM_FMTBIT_S32_LE | SNDRV_PCM_FMTBIT_S32_BE | - SNDRV_PCM_FMTBIT_FLOAT_LE | SNDRV_PCM_FMTBIT_FLOAT_BE), + SNDRV_PCM_FMTBIT_FLOAT_LE | SNDRV_PCM_FMTBIT_FLOAT_BE | + SNDRV_PCM_FMTBIT_DSD_U8 | + SNDRV_PCM_FMTBIT_DSD_U16_LE | SNDRV_PCM_FMTBIT_DSD_U16_BE | + SNDRV_PCM_FMTBIT_DSD_U32_LE | SNDRV_PCM_FMTBIT_DSD_U32_BE), .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_192000, .rate_min = 8000, .rate_max = 192000, From patchwork Tue Apr 16 12:17:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Hofman X-Patchwork-Id: 789907 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4A9BAC4345F for ; Tue, 16 Apr 2024 12:18:37 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 60B221F1; Tue, 16 Apr 2024 14:18:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 60B221F1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1713269915; bh=h0FjqXKWDHaiJdhJimUQ5KYctoiR+sYhWz1IQ2fYOKY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=RcnnElbVUYwsvGidVa9kYc3R6kO4ysQ5yUgAAyon6caj9JxN85frXufGfrdyDzIKi ZKWet1LCmBwA/lmZwTnFme1Ma7oZJMrPru2OqXqjeDIOmrJMQBIjiZK6dPL0/5znU1 yTmtvLg7Xzp00Y33zvXEMUMun72d/Z1PxuRrYe/Y= Received: by alsa1.perex.cz (Postfix, from userid 50401) id D901CF805D6; Tue, 16 Apr 2024 14:17:46 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id CAA0EF805DA; Tue, 16 Apr 2024 14:17:45 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0356DF80494; Tue, 16 Apr 2024 14:17:36 +0200 (CEST) Received: from smtp.ivitera.com (smtp.ivitera.com [88.101.85.59]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id BED14F80124 for ; Tue, 16 Apr 2024 14:17:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz BED14F80124 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=ivitera.com header.i=@ivitera.com header.a=rsa-sha256 header.s=mail header.b=QNk/gMtQ; dkim=pass (1024-bit key) header.d=ivitera.com header.i=@ivitera.com header.a=rsa-sha256 header.s=mail header.b=BcVfCdGQ Received: from localhost (localhost [127.0.0.1]) by smtp.ivitera.com (Postfix) with ESMTP id 4BD0217329D; Tue, 16 Apr 2024 14:17:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ivitera.com; s=mail; t=1713269848; bh=h0FjqXKWDHaiJdhJimUQ5KYctoiR+sYhWz1IQ2fYOKY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QNk/gMtQMJy+ZThP/E+ut0L60OTFoYsrA7kWDZ//VgLCpXUGXsbETYSwkiRpGCLz0 A4yz4DF5ONqu84+8w7Zfi4+ZL1fZ6qeVYzgFFD6/euS3RNBm//6qDU4zTHYXM4/KLJ QU28R806yiioV1Xyq7T3mCOrhz87lgDiKqz/itkg= Received: from smtp.ivitera.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lkNrOpZtwDP6; Tue, 16 Apr 2024 14:17:28 +0200 (CEST) Received: from precision.insite.cz (dustin.pilsfree.net [81.201.58.138]) (Authenticated sender: pavel) by smtp.ivitera.com (Postfix) with ESMTPSA id D1675173704; Tue, 16 Apr 2024 14:17:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ivitera.com; s=mail; t=1713269847; bh=h0FjqXKWDHaiJdhJimUQ5KYctoiR+sYhWz1IQ2fYOKY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BcVfCdGQuwGDNyX+PGqx8JtoMs07aYJx0pwvGU+ByenpquZzzreERU6lN7itI6oa8 oX/dnMFrFbftWrc00teFTGflHsx1Aih2NXyAN+CKmunt/FhTM61d30xU15ciq6LK0a VCq/pc9/mbtS+Z/Ga0Ii6Mqvx897VTDnjSRp+bLg= From: Pavel Hofman To: alsa-devel@alsa-project.org Cc: Jaroslav Kysela , Takashi Iwai , Pavel Hofman Subject: [PATCH 2/3] ALSA:pcm: add support for 705.6kHz and 768kHz sample rates Date: Tue, 16 Apr 2024 14:17:25 +0200 Message-Id: <20240416121726.628679-3-pavel.hofman@ivitera.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240416121726.628679-1-pavel.hofman@ivitera.com> References: <20240416121726.628679-1-pavel.hofman@ivitera.com> MIME-Version: 1.0 Message-ID-Hash: SOXEAW53AUJ5TJRR3XMKOSUESW5JUXJ6 X-Message-ID-Hash: SOXEAW53AUJ5TJRR3XMKOSUESW5JUXJ6 X-MailFrom: pavel.hofman@ivitera.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Many modern codecs support 705.6kHz and 768kHz sample rates. Current HW params fail to set 705.6kHz and 768kHz sample rates as these are not in the known-rates list. Add these new rates to the known-rates list to allow them. Also add defines in pcm.h so that drivers can use it. Signed-off-by: Pavel Hofman --- include/sound/pcm.h | 5 +++++ sound/core/pcm_native.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 210096f124ee..61c6054618c8 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -120,6 +120,8 @@ struct snd_pcm_ops { #define SNDRV_PCM_RATE_192000 (1U<<12) /* 192000Hz */ #define SNDRV_PCM_RATE_352800 (1U<<13) /* 352800Hz */ #define SNDRV_PCM_RATE_384000 (1U<<14) /* 384000Hz */ +#define SNDRV_PCM_RATE_705600 (1U<<15) /* 705600Hz */ +#define SNDRV_PCM_RATE_768000 (1U<<16) /* 768000Hz */ #define SNDRV_PCM_RATE_CONTINUOUS (1U<<30) /* continuous range */ #define SNDRV_PCM_RATE_KNOT (1U<<31) /* supports more non-continuos rates */ @@ -135,6 +137,9 @@ struct snd_pcm_ops { #define SNDRV_PCM_RATE_8000_384000 (SNDRV_PCM_RATE_8000_192000|\ SNDRV_PCM_RATE_352800|\ SNDRV_PCM_RATE_384000) +#define SNDRV_PCM_RATE_8000_768000 (SNDRV_PCM_RATE_8000_384000|\ + SNDRV_PCM_RATE_705600|\ + SNDRV_PCM_RATE_768000) #define _SNDRV_PCM_FMTBIT(fmt) (1ULL << (__force int)SNDRV_PCM_FORMAT_##fmt) #define SNDRV_PCM_FMTBIT_S8 _SNDRV_PCM_FMTBIT(S8) #define SNDRV_PCM_FMTBIT_U8 _SNDRV_PCM_FMTBIT(U8) diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index 0b76e76823d2..521ba56392a0 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -2416,7 +2416,7 @@ static int snd_pcm_hw_rule_sample_bits(struct snd_pcm_hw_params *params, static const unsigned int rates[] = { 5512, 8000, 11025, 16000, 22050, 32000, 44100, - 48000, 64000, 88200, 96000, 176400, 192000, 352800, 384000 + 48000, 64000, 88200, 96000, 176400, 192000, 352800, 384000, 705600, 768000 }; const struct snd_pcm_hw_constraint_list snd_pcm_known_rates = { From patchwork Tue Apr 16 12:17:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Hofman X-Patchwork-Id: 789906 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DDB0FC4345F for ; Tue, 16 Apr 2024 12:19:00 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id C6B731923; Tue, 16 Apr 2024 14:18:48 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C6B731923 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1713269938; bh=Po9JsvvQFIs+av+zg4F0ovlQ3vsrMgHU61mOQKoQK0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=k5ki5iGAtTRdgjTrk3arjqlFG8RQcUpFLbTdKC5bE5KVPEHoKWCPbFq3GG1B2NQaQ QpKDqhm4WqfTCuOqoG2L7SAZd2p8L3FTQX751NsSdGjhwU0kfgopeoPwX36cc6tmoB JZTfYQSjGmNFuWSV1Xo7OiY9wtxTXvbRTOFZnrIQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id BF7DAF8060B; Tue, 16 Apr 2024 14:17:49 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 1BDB8F80619; Tue, 16 Apr 2024 14:17:49 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 4FFD5F80236; Tue, 16 Apr 2024 14:17:39 +0200 (CEST) Received: from smtp.ivitera.com (smtp.ivitera.com [88.101.85.59]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 05103F8025A for ; Tue, 16 Apr 2024 14:17:29 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 05103F8025A Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=ivitera.com header.i=@ivitera.com header.a=rsa-sha256 header.s=mail header.b=JOpDsHuy; dkim=pass (1024-bit key) header.d=ivitera.com header.i=@ivitera.com header.a=rsa-sha256 header.s=mail header.b=JOpDsHuy Received: from localhost (localhost [127.0.0.1]) by smtp.ivitera.com (Postfix) with ESMTP id 7BBF8173312; Tue, 16 Apr 2024 14:17:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ivitera.com; s=mail; t=1713269848; bh=Po9JsvvQFIs+av+zg4F0ovlQ3vsrMgHU61mOQKoQK0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JOpDsHuyxaK15TREJpEkgMn79dHnBsP/ZdDRnS42f+6ZKCnLLiFQkMyJ8ZexuGW2S Bw+50SWsP2A+QxCq2UwNvBHBFif6fZll6hFHLBr4MYuG/+C1lGwvjV5zb1bTxirZqe ZKSQcN/q854P5LpwKExRdnu4SoqlTpe4ATj7PDo4= Received: from smtp.ivitera.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h-iAE4tPRGdK; Tue, 16 Apr 2024 14:17:28 +0200 (CEST) Received: from precision.insite.cz (dustin.pilsfree.net [81.201.58.138]) (Authenticated sender: pavel) by smtp.ivitera.com (Postfix) with ESMTPSA id 179BA1730F9; Tue, 16 Apr 2024 14:17:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ivitera.com; s=mail; t=1713269848; bh=Po9JsvvQFIs+av+zg4F0ovlQ3vsrMgHU61mOQKoQK0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JOpDsHuyxaK15TREJpEkgMn79dHnBsP/ZdDRnS42f+6ZKCnLLiFQkMyJ8ZexuGW2S Bw+50SWsP2A+QxCq2UwNvBHBFif6fZll6hFHLBr4MYuG/+C1lGwvjV5zb1bTxirZqe ZKSQcN/q854P5LpwKExRdnu4SoqlTpe4ATj7PDo4= From: Pavel Hofman To: alsa-devel@alsa-project.org Cc: Jaroslav Kysela , Takashi Iwai , Pavel Hofman Subject: [PATCH 3/3] ALSA:aloop: add support for up to 768kHz sample rate Date: Tue, 16 Apr 2024 14:17:26 +0200 Message-Id: <20240416121726.628679-4-pavel.hofman@ivitera.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240416121726.628679-1-pavel.hofman@ivitera.com> References: <20240416121726.628679-1-pavel.hofman@ivitera.com> MIME-Version: 1.0 Message-ID-Hash: FSFOOKOO3F5GLHF2OTZ5KLMKVP6ZTWEU X-Message-ID-Hash: FSFOOKOO3F5GLHF2OTZ5KLMKVP6ZTWEU X-MailFrom: pavel.hofman@ivitera.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Many modern codecs support rates up to 768kHz (including DSD1024). Add support for rates up to 768kHz to the loopback driver. Signed-off-by: Pavel Hofman --- sound/drivers/aloop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c index 44ee2a4bc2b0..d6dd4b8c750a 100644 --- a/sound/drivers/aloop.c +++ b/sound/drivers/aloop.c @@ -931,9 +931,9 @@ static const struct snd_pcm_hardware loopback_pcm_hardware = SNDRV_PCM_FMTBIT_DSD_U8 | SNDRV_PCM_FMTBIT_DSD_U16_LE | SNDRV_PCM_FMTBIT_DSD_U16_BE | SNDRV_PCM_FMTBIT_DSD_U32_LE | SNDRV_PCM_FMTBIT_DSD_U32_BE), - .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_192000, + .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_768000, .rate_min = 8000, - .rate_max = 192000, + .rate_max = 768000, .channels_min = 1, .channels_max = 32, .buffer_bytes_max = 2 * 1024 * 1024,