alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [alsa-plugins PATCH] pulse: Support 24-bit formats
@ 2012-08-17 20:41 Andrew Eikum
  2012-08-20  9:30 ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Eikum @ 2012-08-17 20:41 UTC (permalink / raw)
  To: alsa-devel, Takashi Iwai

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


These formats were introduced in PulseAudio 0.9.15. There aren't any
new formats supported since then, so this also brings the PulseAudio
plugin in sync with current PulseAudio.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
---

There was a problem once before with a patch I submitted. This is
using format-patch and imap-send, so hopefully it goes through better
than it did before :)

 pulse/pcm_pulse.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)


[-- Attachment #2: 0001-pulse-Support-24-bit-formats.patch --]
[-- Type: text/x-patch, Size: 834 bytes --]

diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c
index e0fbd4c..24fd4da 100644
--- a/pulse/pcm_pulse.c
+++ b/pulse/pcm_pulse.c
@@ -820,6 +820,26 @@ static int pulse_hw_params(snd_pcm_ioplug_t * io,
 		pcm->ss.format = PA_SAMPLE_S32BE;
 		break;
 #endif
+#ifdef PA_SAMPLE_S24LE
+	case SND_PCM_FORMAT_S24_3LE:
+		pcm->ss.format = PA_SAMPLE_S24LE;
+		break;
+#endif
+#ifdef PA_SAMPLE_S24BE
+	case SND_PCM_FORMAT_S24_3BE:
+		pcm->ss.format = PA_SAMPLE_S24BE;
+		break;
+#endif
+#ifdef PA_SAMPLE_S24_32LE
+	case SND_PCM_FORMAT_S24_LE:
+		pcm->ss.format = PA_SAMPLE_S24_32LE;
+		break;
+#endif
+#ifdef PA_SAMPLE_S24_32BE
+	case SND_PCM_FORMAT_S24_BE:
+		pcm->ss.format = PA_SAMPLE_S24_32BE;
+		break;
+#endif
 	default:
 		SNDERR("PulseAudio: Unsupported format %s\n",
 			snd_pcm_format_name(io->format));

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [alsa-plugins PATCH] pulse: Support 24-bit formats
  2012-08-17 20:41 [alsa-plugins PATCH] pulse: Support 24-bit formats Andrew Eikum
@ 2012-08-20  9:30 ` Takashi Iwai
  2012-08-20 12:42   ` Andrew Eikum
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2012-08-20  9:30 UTC (permalink / raw)
  To: alsa-devel, Andrew Eikum

At Fri, 17 Aug 2012 15:41:07 -0500,
Andrew Eikum wrote:
> 
> These formats were introduced in PulseAudio 0.9.15. There aren't any
> new formats supported since then, so this also brings the PulseAudio
> plugin in sync with current PulseAudio.
> 
> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
> ---
> 
> There was a problem once before with a patch I submitted. This is
> using format-patch and imap-send, so hopefully it goes through better
> than it did before :)

Well, unfortunately it's not a preferred form of the patch.
The patch commit log must be embedded in the patch itself.  That is,
the text above including your sign-off must be in the git commit log,
then generate the patch via git-format-patch or git show --pretty=email.

In anyway, I applied your patch manually now.
Please try the right way at the next time.


thanks,

Takashi

> 
>  pulse/pcm_pulse.c | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
> 
> [2 0001-pulse-Support-24-bit-formats.patch <text/x-patch; us-ascii (8bit)>]
> diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c
> index e0fbd4c..24fd4da 100644
> --- a/pulse/pcm_pulse.c
> +++ b/pulse/pcm_pulse.c
> @@ -820,6 +820,26 @@ static int pulse_hw_params(snd_pcm_ioplug_t * io,
>  		pcm->ss.format = PA_SAMPLE_S32BE;
>  		break;
>  #endif
> +#ifdef PA_SAMPLE_S24LE
> +	case SND_PCM_FORMAT_S24_3LE:
> +		pcm->ss.format = PA_SAMPLE_S24LE;
> +		break;
> +#endif
> +#ifdef PA_SAMPLE_S24BE
> +	case SND_PCM_FORMAT_S24_3BE:
> +		pcm->ss.format = PA_SAMPLE_S24BE;
> +		break;
> +#endif
> +#ifdef PA_SAMPLE_S24_32LE
> +	case SND_PCM_FORMAT_S24_LE:
> +		pcm->ss.format = PA_SAMPLE_S24_32LE;
> +		break;
> +#endif
> +#ifdef PA_SAMPLE_S24_32BE
> +	case SND_PCM_FORMAT_S24_BE:
> +		pcm->ss.format = PA_SAMPLE_S24_32BE;
> +		break;
> +#endif
>  	default:
>  		SNDERR("PulseAudio: Unsupported format %s\n",
>  			snd_pcm_format_name(io->format));
> [3  <text/plain; us-ascii (7bit)>]
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [alsa-plugins PATCH] pulse: Support 24-bit formats
  2012-08-20  9:30 ` Takashi Iwai
@ 2012-08-20 12:42   ` Andrew Eikum
  2012-08-20 12:56     ` Takashi Iwai
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Eikum @ 2012-08-20 12:42 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Andrew Eikum, alsa-devel

On Mon, Aug 20, 2012 at 11:30:45AM +0200, Takashi Iwai wrote:
> At Fri, 17 Aug 2012 15:41:07 -0500,
> Andrew Eikum wrote:
> > These formats were introduced in PulseAudio 0.9.15. There aren't any
> > new formats supported since then, so this also brings the PulseAudio
> > plugin in sync with current PulseAudio.
> > 
> > Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
> > ---
> > 
> > There was a problem once before with a patch I submitted. This is
> > using format-patch and imap-send, so hopefully it goes through better
> > than it did before :)
> 
> Well, unfortunately it's not a preferred form of the patch.
> The patch commit log must be embedded in the patch itself.  That is,
> the text above including your sign-off must be in the git commit log,
> then generate the patch via git-format-patch or git show --pretty=email.
> 
> In anyway, I applied your patch manually now.
> Please try the right way at the next time.
> 

I guess I'm used to how the Git project and the Wine maintainer do it.
They import the entire mbox file with 'git am'. This works properly
for the mail I sent, including putting the message and S-o-b line into
the commit log and ignoring the bit between the --- and the patch.

I'll make sure the attachment itself contains all of those details
next time.

Thanks for applying,
Andrew

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [alsa-plugins PATCH] pulse: Support 24-bit formats
  2012-08-20 12:42   ` Andrew Eikum
@ 2012-08-20 12:56     ` Takashi Iwai
  2012-08-20 13:04       ` Andrew Eikum
  0 siblings, 1 reply; 5+ messages in thread
From: Takashi Iwai @ 2012-08-20 12:56 UTC (permalink / raw)
  To: Andrew Eikum; +Cc: alsa-devel

At Mon, 20 Aug 2012 07:42:05 -0500,
Andrew Eikum wrote:
> 
> On Mon, Aug 20, 2012 at 11:30:45AM +0200, Takashi Iwai wrote:
> > At Fri, 17 Aug 2012 15:41:07 -0500,
> > Andrew Eikum wrote:
> > > These formats were introduced in PulseAudio 0.9.15. There aren't any
> > > new formats supported since then, so this also brings the PulseAudio
> > > plugin in sync with current PulseAudio.
> > > 
> > > Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
> > > ---
> > > 
> > > There was a problem once before with a patch I submitted. This is
> > > using format-patch and imap-send, so hopefully it goes through better
> > > than it did before :)
> > 
> > Well, unfortunately it's not a preferred form of the patch.
> > The patch commit log must be embedded in the patch itself.  That is,
> > the text above including your sign-off must be in the git commit log,
> > then generate the patch via git-format-patch or git show --pretty=email.
> > 
> > In anyway, I applied your patch manually now.
> > Please try the right way at the next time.
> > 
> 
> I guess I'm used to how the Git project and the Wine maintainer do it.
> They import the entire mbox file with 'git am'. This works properly
> for the mail I sent, including putting the message and S-o-b line into
> the commit log and ignoring the bit between the --- and the patch.

git-am isn't designed for a separate patch with attachment.  It's for
an embedded patch.  It might work with attachment casually but it's
not the intended workflow.


Takashi

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [alsa-plugins PATCH] pulse: Support 24-bit formats
  2012-08-20 12:56     ` Takashi Iwai
@ 2012-08-20 13:04       ` Andrew Eikum
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Eikum @ 2012-08-20 13:04 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Andrew Eikum, alsa-devel

On Mon, Aug 20, 2012 at 02:56:33PM +0200, Takashi Iwai wrote:
> At Mon, 20 Aug 2012 07:42:05 -0500,
> Andrew Eikum wrote:
> > 
> > On Mon, Aug 20, 2012 at 11:30:45AM +0200, Takashi Iwai wrote:
> > > At Fri, 17 Aug 2012 15:41:07 -0500,
> > > Andrew Eikum wrote:
> > > > These formats were introduced in PulseAudio 0.9.15. There aren't any
> > > > new formats supported since then, so this also brings the PulseAudio
> > > > plugin in sync with current PulseAudio.
> > > > 
> > > > Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
> > > > ---
> > > > 
> > > > There was a problem once before with a patch I submitted. This is
> > > > using format-patch and imap-send, so hopefully it goes through better
> > > > than it did before :)
> > > 
> > > Well, unfortunately it's not a preferred form of the patch.
> > > The patch commit log must be embedded in the patch itself.  That is,
> > > the text above including your sign-off must be in the git commit log,
> > > then generate the patch via git-format-patch or git show --pretty=email.
> > > 
> > > In anyway, I applied your patch manually now.
> > > Please try the right way at the next time.
> > > 
> > 
> > I guess I'm used to how the Git project and the Wine maintainer do it.
> > They import the entire mbox file with 'git am'. This works properly
> > for the mail I sent, including putting the message and S-o-b line into
> > the commit log and ignoring the bit between the --- and the patch.
> 
> git-am isn't designed for a separate patch with attachment.  It's for
> an embedded patch.  It might work with attachment casually but it's
> not the intended workflow.
> 

Ah, I didn't know that. Thanks for the info.

Andrew

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-08-20 13:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-17 20:41 [alsa-plugins PATCH] pulse: Support 24-bit formats Andrew Eikum
2012-08-20  9:30 ` Takashi Iwai
2012-08-20 12:42   ` Andrew Eikum
2012-08-20 12:56     ` Takashi Iwai
2012-08-20 13:04       ` Andrew Eikum

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).