Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH] ALSA: hda: Fix all stream interrupts definition
@ 2024-10-14  9:49 Amadeusz Sławiński
  2024-10-14 10:01 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Amadeusz Sławiński @ 2024-10-14  9:49 UTC (permalink / raw)
  To: Takashi Iwai
  Cc: Cezary Rojewski, Jaroslav Kysela, linux-sound,
	Amadeusz Sławiński

It is defined in header to 0xFF, which only allows to set values for 8
streams. In specification it is defined as bits from 0 to 29. In
practice there is no HW with 29 streams, but as the only place where the
value is used is chip initialization, it is best to make sure that all
bits are reset properly.

Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
---
 include/sound/hda_register.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/sound/hda_register.h b/include/sound/hda_register.h
index 5ff31e6d41c19..db1cc0b897fd3 100644
--- a/include/sound/hda_register.h
+++ b/include/sound/hda_register.h
@@ -180,7 +180,7 @@ enum { SDI0, SDI1, SDI2, SDI3, SDO0, SDO1, SDO2, SDO3 };
 #define SD_STS_FIFO_READY	0x20	/* FIFO ready */
 
 /* INTCTL and INTSTS */
-#define AZX_INT_ALL_STREAM	0xff	   /* all stream interrupts */
+#define AZX_INT_ALL_STREAM	0x3fffffff	   /* all stream interrupts */
 #define AZX_INT_CTRL_EN	0x40000000 /* controller interrupt enable bit */
 #define AZX_INT_GLOBAL_EN	0x80000000 /* global interrupt enable bit */
 
-- 
2.34.1


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

* Re: [PATCH] ALSA: hda: Fix all stream interrupts definition
  2024-10-14  9:49 [PATCH] ALSA: hda: Fix all stream interrupts definition Amadeusz Sławiński
@ 2024-10-14 10:01 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2024-10-14 10:01 UTC (permalink / raw)
  To: Amadeusz Sławiński
  Cc: Takashi Iwai, Cezary Rojewski, Jaroslav Kysela, linux-sound

On Mon, 14 Oct 2024 11:49:58 +0200,
Amadeusz Sławiński wrote:
> 
> It is defined in header to 0xFF, which only allows to set values for 8
> streams. In specification it is defined as bits from 0 to 29. In
> practice there is no HW with 29 streams, but as the only place where the
> value is used is chip initialization, it is best to make sure that all
> bits are reset properly.
> 
> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
> Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>

Applied to for-next branch.  Thanks.


Takashi

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

end of thread, other threads:[~2024-10-14 10:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-14  9:49 [PATCH] ALSA: hda: Fix all stream interrupts definition Amadeusz Sławiński
2024-10-14 10:01 ` Takashi Iwai

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