alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: "René Herman" <rene.herman@gmail.com>
To: alsa-devel@alsa-project.org
Cc: Torsten Schenk <torsten.schenk@zoho.com>
Subject: [snd-usb-6fire] Pulseaudio needs snd_pcm_hardware.channels_min > 1
Date: Tue, 14 Jul 2020 17:02:39 +0200	[thread overview]
Message-ID: <8d3495ee-82d6-245c-9fa7-ba1fb6d375e5@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 130 bytes --]

Pulseaudio with snd_pcm_hardware.channels_min=1 creates a mono device
only.

Signed-off-by: René Herman <rene.herman@gmail.com>


[-- Attachment #2: 0002-snd-usb-6fire-Pulseaudio-needs-snd_pcm_hardware.chan.patch --]
[-- Type: text/x-patch, Size: 1063 bytes --]

From 070d3a9b76cebf9f66ca092fc097753e165ddd77 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ren=C3=A9=20Herman?= <rene.herman@gmail.com>
Date: Sun, 12 Jul 2020 01:31:29 +0200
Subject: [PATCH 2/3] [snd-usb-6fire] Pulseaudio needs
 snd_pcm_hardware.channels_min > 1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Pulseaudio with snd_pcm_hardware.channels_min=1 creates a mono device
only.

Signed-off-by: René Herman <rene.herman@gmail.com>
---
 sound/usb/6fire/pcm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/usb/6fire/pcm.c b/sound/usb/6fire/pcm.c
index 88ac1c4ee163..cce1312db93a 100644
--- a/sound/usb/6fire/pcm.c
+++ b/sound/usb/6fire/pcm.c
@@ -58,7 +58,7 @@ static const struct snd_pcm_hardware pcm_hw = {
 
 	.rate_min = 44100,
 	.rate_max = 192000,
-	.channels_min = 1,
+	.channels_min = 2,
 	.channels_max = 0, /* set in pcm_open, depending on capture/playback */
 	.buffer_bytes_max = MAX_BUFSIZE,
 	.period_bytes_min = PCM_N_PACKETS_PER_URB * (PCM_MAX_PACKET_SIZE - 4),
-- 
2.17.1


                 reply	other threads:[~2020-07-14 15:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8d3495ee-82d6-245c-9fa7-ba1fb6d375e5@gmail.com \
    --to=rene.herman@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=torsten.schenk@zoho.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).