Skip to content

Commit

Permalink
READ COMMIT MESSAGE! macaudio: Enable first round of models
Browse files Browse the repository at this point in the history
Enables j313, j293, j493, j314, j414, j274, j375, j473, j474, j475

*** WARNING FOR DISTRO PACKAGERS WANTING TO APPLY THIS: ***
*** YOU ABSOLUTELY NEED THIS PATCH IN YOUR LSP-PLUGINS PACKAGE ***

lsp-plugins/lsp-dsp-lib#20

Do NOT enable speakers without that patch, on any model. It can/will
result in nasty noise that could damage them.

Signed-off-by: Hector Martin <[email protected]>
  • Loading branch information
marcan authored and herrnst committed Nov 22, 2024
1 parent 73479d5 commit 4341292
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions sound/soc/apple/macaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1490,23 +1490,27 @@ struct macaudio_platform_cfg macaudio_j180_cfg = {
false, AMP_SN012776, SPKR_1W1T, false, 10, -20,
};
struct macaudio_platform_cfg macaudio_j274_cfg = {
false, AMP_TAS5770, SPKR_1W, false, 20, -20,
true, AMP_TAS5770, SPKR_1W, false, 20, -20,
};

struct macaudio_platform_cfg macaudio_j293_cfg = {
false, AMP_TAS5770, SPKR_2W, true, 15, -20,
true, AMP_TAS5770, SPKR_2W, true, 15, -20,
};

struct macaudio_platform_cfg macaudio_j313_cfg = {
false, AMP_TAS5770, SPKR_1W, true, 10, -20,
true, AMP_TAS5770, SPKR_1W, true, 10, -20,
};

struct macaudio_platform_cfg macaudio_j314_j316_cfg = {
struct macaudio_platform_cfg macaudio_j314_cfg = {
true, AMP_SN012776, SPKR_2W1T, true, 15, -20,
};

struct macaudio_platform_cfg macaudio_j316_cfg = {
false, AMP_SN012776, SPKR_2W1T, true, 15, -20,
};

struct macaudio_platform_cfg macaudio_j37x_j47x_cfg = {
false, AMP_SN012776, SPKR_1W, false, 20, -20,
true, AMP_SN012776, SPKR_1W, false, 20, -20,
};

struct macaudio_platform_cfg macaudio_j413_cfg = {
Expand All @@ -1522,7 +1526,7 @@ struct macaudio_platform_cfg macaudio_j45x_cfg = {
};

struct macaudio_platform_cfg macaudio_j493_cfg = {
false, AMP_SN012776, SPKR_2W, true, 15, -20,
true, AMP_SN012776, SPKR_2W, true, 15, -20,
};

struct macaudio_platform_cfg macaudio_fallback_cfg = {
Expand Down Expand Up @@ -1558,9 +1562,9 @@ static const struct of_device_id macaudio_snd_device_id[] = {
/* j313 AID4 tas5770 10 2× 1W */
{ .compatible = "apple,j313-macaudio", .data = &macaudio_j313_cfg },
/* j314 AID8 sn012776 15 2× 2W+1T */
{ .compatible = "apple,j314-macaudio", .data = &macaudio_j314_j316_cfg },
{ .compatible = "apple,j314-macaudio", .data = &macaudio_j314_cfg },
/* j316 AID9 sn012776 15 2× 2W+1T */
{ .compatible = "apple,j316-macaudio", .data = &macaudio_j314_j316_cfg },
{ .compatible = "apple,j316-macaudio", .data = &macaudio_j316_cfg },
/* j375 AID10 sn012776 15 1× 1W */
{ .compatible = "apple,j375-macaudio", .data = &macaudio_j37x_j47x_cfg },
/* j413 AID13 sn012776 15 2× 1W+1T */
Expand Down

0 comments on commit 4341292

Please sign in to comment.