* [PATCH] sbcenc: Remove duplicate check for num of channels
@ 2020-08-08 19:30 Pali Rohár
2020-08-11 18:29 ` Luiz Augusto von Dentz
0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2020-08-08 19:30 UTC (permalink / raw)
To: linux-bluetooth
Signed-off-by: Pali Rohár <pali@kernel.org>
---
src/sbcenc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/sbcenc.c b/src/sbcenc.c
index 2a4c240..6f8d794 100644
--- a/src/sbcenc.c
+++ b/src/sbcenc.c
@@ -142,7 +142,6 @@ static void encode(char *filename, int subbands, int bitpool, int joint,
blocks == 12 ? SBC_BLK_12 : SBC_BLK_16;
} else {
if (BE_INT(au_hdr.sample_rate) != 16000 ||
- BE_INT(au_hdr.channels) != 1 ||
BE_INT(au_hdr.channels) != 1) {
fprintf(stderr, "mSBC requires 16 bits, 16kHz, mono "
"input\n");
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sbcenc: Remove duplicate check for num of channels
2020-08-08 19:30 [PATCH] sbcenc: Remove duplicate check for num of channels Pali Rohár
@ 2020-08-11 18:29 ` Luiz Augusto von Dentz
0 siblings, 0 replies; 2+ messages in thread
From: Luiz Augusto von Dentz @ 2020-08-11 18:29 UTC (permalink / raw)
To: Pali Rohár; +Cc: linux-bluetooth@vger.kernel.org
Hi Pali,
On Sat, Aug 8, 2020 at 12:34 PM Pali Rohár <pali@kernel.org> wrote:
>
> Signed-off-by: Pali Rohár <pali@kernel.org>
> ---
> src/sbcenc.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/src/sbcenc.c b/src/sbcenc.c
> index 2a4c240..6f8d794 100644
> --- a/src/sbcenc.c
> +++ b/src/sbcenc.c
> @@ -142,7 +142,6 @@ static void encode(char *filename, int subbands, int bitpool, int joint,
> blocks == 12 ? SBC_BLK_12 : SBC_BLK_16;
> } else {
> if (BE_INT(au_hdr.sample_rate) != 16000 ||
> - BE_INT(au_hdr.channels) != 1 ||
> BE_INT(au_hdr.channels) != 1) {
> fprintf(stderr, "mSBC requires 16 bits, 16kHz, mono "
> "input\n");
> --
> 2.20.1
Applied, thanks.
--
Luiz Augusto von Dentz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-11 18:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-08 19:30 [PATCH] sbcenc: Remove duplicate check for num of channels Pali Rohár
2020-08-11 18:29 ` Luiz Augusto von Dentz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.