Bug 217526

Summary: Realtek ALC3234 codec, limited format capabilities (no 96kHZ and 192KHz)
Product: Drivers Reporter: haro41
Component: Sound(ALSA)Assignee: Jaroslav Kysela (perex)
Status: NEW ---    
Severity: normal CC: kailang, pshou, tiwai
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: 6.1.0-9-amd64 Subsystem:
Regression: No Bisected commit-id:
Attachments: the output of 'cat /proc/asound/card0/codec#0' direct linux boot
the output of 'cat /proc/asound/card0/codec#0' with previous boot into windows
a 'hda-verb' based script as workaround (for ALC3234 codec)
output of /proc/asound/card0/codec#0, direct boot into linux
output of /proc/asound/card0/codec#0, after previous boot into windows

Description haro41 2023-06-05 10:38:28 UTC
Created attachment 304374 [details]
the output of 'cat /proc/asound/card0/codec#0' direct linux boot

While a boot in windows 7, followed by a reboot (without power off) into linux, shows the full capabilities of this codec, after a linux only boot, the format capabilities are limited to 44.1kHz and 48kHz.    
A temporarly fix using hda-verb utility works for me (snd_hda_intel needs to be restarted). I think this fix should be better done in the driver code (patch_realtek.c).
Comment 1 haro41 2023-06-05 10:39:46 UTC
Created attachment 304375 [details]
the output of 'cat /proc/asound/card0/codec#0' with previous boot into windows
Comment 2 haro41 2023-06-05 10:46:33 UTC
Created attachment 304376 [details]
a 'hda-verb' based script as workaround (for ALC3234 codec)
Comment 3 Takashi Iwai 2023-06-05 14:09:32 UTC
Adding Realtek guys to Cc.  I'm fine to add init verbs if it's safe.
Comment 4 Kailiang Yang 2023-06-06 07:36:03 UTC
Hi,

I think the verbs only 0x1a has relation.
Could you run below command then get codec#0 for two states?

echo 1 > /sys/module/snd_hda_codec/parameters/dump_coef

Then to cat codec#0 as a file.

BR,
Kailang

> -----Original Message-----
> From: bugzilla-daemon@kernel.org <bugzilla-daemon@kernel.org>
> Sent: Monday, June 5, 2023 10:10 PM
> To: Kailang <kailang@realtek.com>
> Subject: [Bug 217526] Realtek ALC3234 codec, limited format capabilities (no
> 96kHZ and 192KHz)
> 
> 
> External mail.
> 
> 
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=217526
> 
> Takashi Iwai (tiwai@suse.de) changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|
> |kailang@realtek.com,
>                    |
> |pshou@realtek.com,
>                    |                            |tiwai@suse.de
> 
> --- Comment #3 from Takashi Iwai (tiwai@suse.de) --- Adding Realtek guys to
> Cc.  I'm fine to add init verbs if it's safe.
> 
> --
> You may reply to this email to add a comment.
> 
> You are receiving this mail because:
> You are on the CC list for the bug.
> ------Please consider the environment before printing this e-mail.
Comment 5 haro41 2023-06-06 11:21:26 UTC
Hi,
yes, i will attach 2 files, one contains the output from a linux only boot and one with a previous boot into windows 7.
Comment 6 haro41 2023-06-06 11:23:07 UTC
Created attachment 304380 [details]
output of /proc/asound/card0/codec#0, direct boot into linux
Comment 7 haro41 2023-06-06 11:25:05 UTC
Created attachment 304381 [details]
output of /proc/asound/card0/codec#0, after previous boot into windows