Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audio: th1520: enable soundcard feature #113

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

leeyong5866
Copy link
Collaborator

enable TH1520-Sound-Card feature

simple-audio-card,dai-link@0 {          /* I2S - HDMI*/
     reg = <0>;
     format = "i2s";
     cpu {
         sound-dai = <&ap_i2s 1>;
     };
     codec {
         sound-dai = <&hdmi_codec>;
     };
 };
 simple-audio-card,dai-link@1 {          /* I2S - AUDIO SYS CODEC 7210*/
     reg = <1>;
     format = "i2s";
     cpu {
         sound-dai = <&i2s1 0>;
     };
     codec {
         sound-dai = <&es7210_audio_codec>;
     };
 };
 simple-audio-card,dai-link@2 {          /* I2S - AUDIO SYS CODEC 8156*/
     reg = <2>;
     format = "i2s";
     cpu {
         sound-dai = <&i2s1 0>;
     };
     codec {
         sound-dai = <&es8156_audio_codec>;
     };
 };

@leeyong5866 leeyong5866 requested a review from RevySR June 25, 2024 08:53
@leeyong5866
Copy link
Collaborator Author

@RevySR 目前驱动中(甚至 arch 中)依然在用 LINUX_VERSION_CODE,这一项 check 没有必要,请确认

@RevySR
Copy link
Collaborator

RevySR commented Jun 25, 2024

@RevySR 目前驱动中(甚至 arch 中)依然在用 LINUX_VERSION_CODE,这一项 check 没有必要,请确认

没有必要 合并到内核树中内核版本是确定的 不需要版本检查做兼容行为

enable TH1520-Sound-Card feature
    simple-audio-card,dai-link@0 {          /* I2S - HDMI*/
        reg = <0>;
        format = "i2s";
        cpu {
            sound-dai = <&ap_i2s 1>;
        };
        codec {
            sound-dai = <&hdmi_codec>;
        };
    };
    simple-audio-card,dai-link@1 {          /* I2S - AUDIO SYS CODEC 7210*/
        reg = <1>;
        format = "i2s";
        cpu {
            sound-dai = <&i2s1 0>;
        };
        codec {
            sound-dai = <&es7210_audio_codec>;
        };
    };
    simple-audio-card,dai-link@2 {          /* I2S - AUDIO SYS CODEC 8156*/
        reg = <2>;
        format = "i2s";
        cpu {
            sound-dai = <&i2s1 0>;
        };
        codec {
            sound-dai = <&es8156_audio_codec>;
        };
    };

Signed-off-by: David Li <[email protected]>
@leeyong5866 leeyong5866 reopened this Jun 28, 2024
@leeyong5866
Copy link
Collaborator Author

@RevySR 目前驱动中(甚至 arch 中)依然在用 LINUX_VERSION_CODE,这一项 check 没有必要,请确认

没有必要 合并到内核树中内核版本是确定的 不需要版本检查做兼容行为

已修复

@RevySR RevySR merged commit 54eb817 into ruyisdk:linux-6.6 Jun 28, 2024
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants