diff --git a/drivers/wdm/audio/hdaudbus/hdac_stream.cpp b/drivers/wdm/audio/hdaudbus/hdac_stream.cpp index 6828068e0e9..2b24395026d 100644 --- a/drivers/wdm/audio/hdaudbus/hdac_stream.cpp +++ b/drivers/wdm/audio/hdaudbus/hdac_stream.cpp @@ -112,7 +112,7 @@ UINT16 hdac_format(PHDAC_STREAM stream) { return 0; format |= channels - 1; - switch (stream->streamFormat.ContainerSize) { + switch (stream->streamFormat.ValidBitsPerSample) { case 8: format |= AC_FMT_BITS_8; break; @@ -171,6 +171,5 @@ void hdac_stream_setup(PHDAC_STREAM stream) { /* set the interrupt enable bits in the descriptor control register */ stream_update32(stream, SD_CTL, 0, SD_INT_MASK); - stream->fifoSize = 0; stream->fifoSize = stream_read16(stream, SD_FIFOSIZE) + 1; } diff --git a/drivers/wdm/audio/hdaudbus/hdaudbus.inf b/drivers/wdm/audio/hdaudbus/hdaudbus.inf index 23bee61995c..f775588c79c 100644 --- a/drivers/wdm/audio/hdaudbus/hdaudbus.inf +++ b/drivers/wdm/audio/hdaudbus/hdaudbus.inf @@ -39,6 +39,9 @@ ExcludeFromSelect = PCI\CC_0403 %HDAudio.DeviceDesc% = HDAudio_Device, PCI\VEN_8086&DEV_7E28&CC_0401 ;Intel Meteor Lake-P %HDAudio.DeviceDesc% = HDAudio_Device, PCI\VEN_8086&DEV_7728&CC_0401 ;Intel Arrow Lake-P %HDAudio.DeviceDesc% = HDAudio_Device, PCI\VEN_8086&DEV_A828&CC_0401 ;Intel Lunar Lake-P +%HDAudio.DeviceDesc% = HDAudio_Device, PCI\VEN_8086&DEV_D328&CC_0401 ;Intel Nova Lake +%HDAudio.DeviceDesc% = HDAudio_Device, PCI\VEN_8086&DEV_E328&CC_0401 ;Intel Panther Lake-H +%HDAudio.DeviceDesc% = HDAudio_Device, PCI\VEN_8086&DEV_E428&CC_0401 ;Intel Panther Lake [HDAudio_Device.NT] CopyFiles = Drivers_Dir diff --git a/drivers/wdm/audio/hdaudbus/hdaudio.cpp b/drivers/wdm/audio/hdaudbus/hdaudio.cpp index 7fb4b1a47b1..7fb7d578038 100644 --- a/drivers/wdm/audio/hdaudbus/hdaudio.cpp +++ b/drivers/wdm/audio/hdaudbus/hdaudio.cpp @@ -928,7 +928,7 @@ HDA_SetupDmaEngineWithBdl( WdfInterruptAcquireLock(devData->FdoContext->Interrupt); stream->bufSz = BufferLength; - stream->numBlocks = (UINT16)Lvi; + stream->numBlocks = (UINT16)(Lvi + 1); RtlZeroMemory(&stream->isr, sizeof(HDAC_ISR_CALLBACK)); stream->isr.IOC = TRUE; diff --git a/media/doc/3rd Party Files.txt b/media/doc/3rd Party Files.txt index 8361a30ed60..54948ea962e 100644 --- a/media/doc/3rd Party Files.txt +++ b/media/doc/3rd Party Files.txt @@ -176,7 +176,7 @@ URL: https://code.google.com/archive/p/cmediadrivers/ Title: HD Audio Driver for Windows 10 / 11 with Skylake -> Raptor Lake DSP support Path: drivers/wdm/audio/hdaudbus -Used Version: git commit ad50bcc +Used Version: git commit 5477b93 License: BSD-3-Clause (https://opensource.org/licenses/BSD-3-Clause) URL: https://github.com/coolstar/sklhdaudbus/tree/master