public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ALSA: compress: add opus codec define
@ 2023-07-25  9:30 Robert Lee
  2023-07-25 10:05 ` Takashi Iwai
  0 siblings, 1 reply; 6+ messages in thread
From: Robert Lee @ 2023-07-25  9:30 UTC (permalink / raw)
  To: vkoul, perex, tiwai; +Cc: alsa-devel, linux-kernel, Robert Lee

Add to support decode Opus codec in Ogg container.

Signed-off-by: Robert Lee <lerobert@google.com>
---
 include/uapi/sound/compress_params.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
index ddc77322d571..bac5797bcb02 100644
--- a/include/uapi/sound/compress_params.h
+++ b/include/uapi/sound/compress_params.h
@@ -43,7 +43,8 @@
 #define SND_AUDIOCODEC_BESPOKE               ((__u32) 0x0000000E)
 #define SND_AUDIOCODEC_ALAC                  ((__u32) 0x0000000F)
 #define SND_AUDIOCODEC_APE                   ((__u32) 0x00000010)
-#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_APE
+#define SND_AUDIOCODEC_OPUS                  ((__u32) 0x00000011)
+#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_OPUS
 
 /*
  * Profile and modes are listed with bit masks. This allows for a
-- 
2.41.0.487.g6d72f3e995-goog


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

* Re: [PATCH] ALSA: compress: add opus codec define
  2023-07-25  9:30 [PATCH] ALSA: compress: add opus codec define Robert Lee
@ 2023-07-25 10:05 ` Takashi Iwai
  2023-07-25 10:14   ` Robert Lee
  0 siblings, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2023-07-25 10:05 UTC (permalink / raw)
  To: Robert Lee; +Cc: vkoul, perex, tiwai, alsa-devel, linux-kernel

On Tue, 25 Jul 2023 11:30:05 +0200,
Robert Lee wrote:
> 
> Add to support decode Opus codec in Ogg container.
> 
> Signed-off-by: Robert Lee <lerobert@google.com>

The change makes sense only when it's really used.  So usually it's
better to put into a series that actually implements its usage.


thanks,

Takashi

> ---
>  include/uapi/sound/compress_params.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
> index ddc77322d571..bac5797bcb02 100644
> --- a/include/uapi/sound/compress_params.h
> +++ b/include/uapi/sound/compress_params.h
> @@ -43,7 +43,8 @@
>  #define SND_AUDIOCODEC_BESPOKE               ((__u32) 0x0000000E)
>  #define SND_AUDIOCODEC_ALAC                  ((__u32) 0x0000000F)
>  #define SND_AUDIOCODEC_APE                   ((__u32) 0x00000010)
> -#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_APE
> +#define SND_AUDIOCODEC_OPUS                  ((__u32) 0x00000011)
> +#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_OPUS
>  
>  /*
>   * Profile and modes are listed with bit masks. This allows for a
> -- 
> 2.41.0.487.g6d72f3e995-goog
> 

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

* Re: [PATCH] ALSA: compress: add opus codec define
  2023-07-25 10:05 ` Takashi Iwai
@ 2023-07-25 10:14   ` Robert Lee
  2023-07-25 10:25     ` Takashi Iwai
  0 siblings, 1 reply; 6+ messages in thread
From: Robert Lee @ 2023-07-25 10:14 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: vkoul, perex, tiwai, alsa-devel, linux-kernel

Thanks for reply so quickly.
And yes, there are other changes but it is inside our offload pcm
driver to handle it.
Currently we only use it to decode, and we don't need additional option for it.

Thanks,
Robert.

Takashi Iwai <tiwai@suse.de> 於 2023年7月25日 週二 下午6:05寫道:
>
> On Tue, 25 Jul 2023 11:30:05 +0200,
> Robert Lee wrote:
> >
> > Add to support decode Opus codec in Ogg container.
> >
> > Signed-off-by: Robert Lee <lerobert@google.com>
>
> The change makes sense only when it's really used.  So usually it's
> better to put into a series that actually implements its usage.
>
>
> thanks,
>
> Takashi
>
> > ---
> >  include/uapi/sound/compress_params.h | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
> > index ddc77322d571..bac5797bcb02 100644
> > --- a/include/uapi/sound/compress_params.h
> > +++ b/include/uapi/sound/compress_params.h
> > @@ -43,7 +43,8 @@
> >  #define SND_AUDIOCODEC_BESPOKE               ((__u32) 0x0000000E)
> >  #define SND_AUDIOCODEC_ALAC                  ((__u32) 0x0000000F)
> >  #define SND_AUDIOCODEC_APE                   ((__u32) 0x00000010)
> > -#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_APE
> > +#define SND_AUDIOCODEC_OPUS                  ((__u32) 0x00000011)
> > +#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_OPUS
> >
> >  /*
> >   * Profile and modes are listed with bit masks. This allows for a
> > --
> > 2.41.0.487.g6d72f3e995-goog
> >

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

* Re: [PATCH] ALSA: compress: add opus codec define
  2023-07-25 10:14   ` Robert Lee
@ 2023-07-25 10:25     ` Takashi Iwai
  2023-07-26  1:47       ` Robert Lee
  0 siblings, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2023-07-25 10:25 UTC (permalink / raw)
  To: Robert Lee; +Cc: vkoul, perex, tiwai, alsa-devel, linux-kernel

On Tue, 25 Jul 2023 12:14:56 +0200,
Robert Lee wrote:
> 
> Thanks for reply so quickly.
> And yes, there are other changes but it is inside our offload pcm
> driver to handle it.
> Currently we only use it to decode, and we don't need additional option for it.

It means still a downstream-only change :)

It's nice to upstream changes in general, but from the upstream POV,
only changing this gives no benefit.  Let's tie with the actual use
case *in the upstream*.


thanks,

Takashi

> 
> Thanks,
> Robert.
> 
> Takashi Iwai <tiwai@suse.de> 於 2023年7月25日 週二 下午6:05寫道:
> >
> > On Tue, 25 Jul 2023 11:30:05 +0200,
> > Robert Lee wrote:
> > >
> > > Add to support decode Opus codec in Ogg container.
> > >
> > > Signed-off-by: Robert Lee <lerobert@google.com>
> >
> > The change makes sense only when it's really used.  So usually it's
> > better to put into a series that actually implements its usage.
> >
> >
> > thanks,
> >
> > Takashi
> >
> > > ---
> > >  include/uapi/sound/compress_params.h | 3 ++-
> > >  1 file changed, 2 insertions(+), 1 deletion(-)
> > >
> > > diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
> > > index ddc77322d571..bac5797bcb02 100644
> > > --- a/include/uapi/sound/compress_params.h
> > > +++ b/include/uapi/sound/compress_params.h
> > > @@ -43,7 +43,8 @@
> > >  #define SND_AUDIOCODEC_BESPOKE               ((__u32) 0x0000000E)
> > >  #define SND_AUDIOCODEC_ALAC                  ((__u32) 0x0000000F)
> > >  #define SND_AUDIOCODEC_APE                   ((__u32) 0x00000010)
> > > -#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_APE
> > > +#define SND_AUDIOCODEC_OPUS                  ((__u32) 0x00000011)
> > > +#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_OPUS
> > >
> > >  /*
> > >   * Profile and modes are listed with bit masks. This allows for a
> > > --
> > > 2.41.0.487.g6d72f3e995-goog
> > >
> 

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

* Re: [PATCH] ALSA: compress: add opus codec define
  2023-07-25 10:25     ` Takashi Iwai
@ 2023-07-26  1:47       ` Robert Lee
  2023-07-26  4:55         ` Vinod Koul
  0 siblings, 1 reply; 6+ messages in thread
From: Robert Lee @ 2023-07-26  1:47 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: vkoul, perex, tiwai, alsa-devel, linux-kernel

Yes, but we still need this change to let the sound system can use the
codec. or do you have any suggestions?

Thanks,
Robert.

Takashi Iwai <tiwai@suse.de> 於 2023年7月25日 週二 下午6:25寫道:
>
> On Tue, 25 Jul 2023 12:14:56 +0200,
> Robert Lee wrote:
> >
> > Thanks for reply so quickly.
> > And yes, there are other changes but it is inside our offload pcm
> > driver to handle it.
> > Currently we only use it to decode, and we don't need additional option for it.
>
> It means still a downstream-only change :)
>
> It's nice to upstream changes in general, but from the upstream POV,
> only changing this gives no benefit.  Let's tie with the actual use
> case *in the upstream*.
>
>
> thanks,
>
> Takashi
>
> >
> > Thanks,
> > Robert.
> >
> > Takashi Iwai <tiwai@suse.de> 於 2023年7月25日 週二 下午6:05寫道:
> > >
> > > On Tue, 25 Jul 2023 11:30:05 +0200,
> > > Robert Lee wrote:
> > > >
> > > > Add to support decode Opus codec in Ogg container.
> > > >
> > > > Signed-off-by: Robert Lee <lerobert@google.com>
> > >
> > > The change makes sense only when it's really used.  So usually it's
> > > better to put into a series that actually implements its usage.
> > >
> > >
> > > thanks,
> > >
> > > Takashi
> > >
> > > > ---
> > > >  include/uapi/sound/compress_params.h | 3 ++-
> > > >  1 file changed, 2 insertions(+), 1 deletion(-)
> > > >
> > > > diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
> > > > index ddc77322d571..bac5797bcb02 100644
> > > > --- a/include/uapi/sound/compress_params.h
> > > > +++ b/include/uapi/sound/compress_params.h
> > > > @@ -43,7 +43,8 @@
> > > >  #define SND_AUDIOCODEC_BESPOKE               ((__u32) 0x0000000E)
> > > >  #define SND_AUDIOCODEC_ALAC                  ((__u32) 0x0000000F)
> > > >  #define SND_AUDIOCODEC_APE                   ((__u32) 0x00000010)
> > > > -#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_APE
> > > > +#define SND_AUDIOCODEC_OPUS                  ((__u32) 0x00000011)
> > > > +#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_OPUS
> > > >
> > > >  /*
> > > >   * Profile and modes are listed with bit masks. This allows for a
> > > > --
> > > > 2.41.0.487.g6d72f3e995-goog
> > > >
> >

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

* Re: [PATCH] ALSA: compress: add opus codec define
  2023-07-26  1:47       ` Robert Lee
@ 2023-07-26  4:55         ` Vinod Koul
  0 siblings, 0 replies; 6+ messages in thread
From: Vinod Koul @ 2023-07-26  4:55 UTC (permalink / raw)
  To: Robert Lee; +Cc: Takashi Iwai, perex, tiwai, alsa-devel, linux-kernel

On 26-07-23, 09:47, Robert Lee wrote:

Please stop top posting!

> Yes, but we still need this change to let the sound system can use the
> codec. or do you have any suggestions?

Upstream your driver along with this change should be the way to go

> 
> Thanks,
> Robert.
> 
> Takashi Iwai <tiwai@suse.de> 於 2023年7月25日 週二 下午6:25寫道:
> >
> > On Tue, 25 Jul 2023 12:14:56 +0200,
> > Robert Lee wrote:
> > >
> > > Thanks for reply so quickly.
> > > And yes, there are other changes but it is inside our offload pcm
> > > driver to handle it.
> > > Currently we only use it to decode, and we don't need additional option for it.
> >
> > It means still a downstream-only change :)
> >
> > It's nice to upstream changes in general, but from the upstream POV,
> > only changing this gives no benefit.  Let's tie with the actual use
> > case *in the upstream*.
> >
> >
> > thanks,
> >
> > Takashi
> >
> > >
> > > Thanks,
> > > Robert.
> > >
> > > Takashi Iwai <tiwai@suse.de> 於 2023年7月25日 週二 下午6:05寫道:
> > > >
> > > > On Tue, 25 Jul 2023 11:30:05 +0200,
> > > > Robert Lee wrote:
> > > > >
> > > > > Add to support decode Opus codec in Ogg container.
> > > > >
> > > > > Signed-off-by: Robert Lee <lerobert@google.com>
> > > >
> > > > The change makes sense only when it's really used.  So usually it's
> > > > better to put into a series that actually implements its usage.
> > > >
> > > >
> > > > thanks,
> > > >
> > > > Takashi
> > > >
> > > > > ---
> > > > >  include/uapi/sound/compress_params.h | 3 ++-
> > > > >  1 file changed, 2 insertions(+), 1 deletion(-)
> > > > >
> > > > > diff --git a/include/uapi/sound/compress_params.h b/include/uapi/sound/compress_params.h
> > > > > index ddc77322d571..bac5797bcb02 100644
> > > > > --- a/include/uapi/sound/compress_params.h
> > > > > +++ b/include/uapi/sound/compress_params.h
> > > > > @@ -43,7 +43,8 @@
> > > > >  #define SND_AUDIOCODEC_BESPOKE               ((__u32) 0x0000000E)
> > > > >  #define SND_AUDIOCODEC_ALAC                  ((__u32) 0x0000000F)
> > > > >  #define SND_AUDIOCODEC_APE                   ((__u32) 0x00000010)
> > > > > -#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_APE
> > > > > +#define SND_AUDIOCODEC_OPUS                  ((__u32) 0x00000011)
> > > > > +#define SND_AUDIOCODEC_MAX                   SND_AUDIOCODEC_OPUS
> > > > >
> > > > >  /*
> > > > >   * Profile and modes are listed with bit masks. This allows for a
> > > > > --
> > > > > 2.41.0.487.g6d72f3e995-goog
> > > > >
> > >

-- 
~Vinod

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

end of thread, other threads:[~2023-07-26  4:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-25  9:30 [PATCH] ALSA: compress: add opus codec define Robert Lee
2023-07-25 10:05 ` Takashi Iwai
2023-07-25 10:14   ` Robert Lee
2023-07-25 10:25     ` Takashi Iwai
2023-07-26  1:47       ` Robert Lee
2023-07-26  4:55         ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox