Lines Matching +full:hdmi +full:- +full:switch
1 // SPDX-License-Identifier: GPL-2.0-only
3 * helper functions for HDMI models (Xonar HDAV1.3/HDAV1.3 Slim)
37 struct xonar_hdmi *hdmi) in xonar_hdmi_init_commands() argument
46 hdmi_write_command(chip, 0x54, 5, hdmi->params); in xonar_hdmi_init_commands()
49 void xonar_hdmi_init(struct oxygen *chip, struct xonar_hdmi *hdmi) in xonar_hdmi_init() argument
51 hdmi->params[1] = IEC958_AES3_CON_FS_48000; in xonar_hdmi_init()
52 hdmi->params[4] = 1; in xonar_hdmi_init()
53 xonar_hdmi_init_commands(chip, hdmi); in xonar_hdmi_init()
63 void xonar_hdmi_resume(struct oxygen *chip, struct xonar_hdmi *hdmi) in xonar_hdmi_resume() argument
65 xonar_hdmi_init_commands(chip, hdmi); in xonar_hdmi_resume()
72 hardware->rates = SNDRV_PCM_RATE_44100 | in xonar_hdmi_pcm_hardware_filter()
76 hardware->rate_min = 44100; in xonar_hdmi_pcm_hardware_filter()
80 void xonar_set_hdmi_params(struct oxygen *chip, struct xonar_hdmi *hdmi, in xonar_set_hdmi_params() argument
83 hdmi->params[0] = 0; /* 1 = non-audio */ in xonar_set_hdmi_params()
84 switch (params_rate(params)) { in xonar_set_hdmi_params()
86 hdmi->params[1] = IEC958_AES3_CON_FS_44100; in xonar_set_hdmi_params()
89 hdmi->params[1] = IEC958_AES3_CON_FS_48000; in xonar_set_hdmi_params()
92 hdmi->params[1] = IEC958_AES3_CON_FS_96000; in xonar_set_hdmi_params()
95 hdmi->params[1] = IEC958_AES3_CON_FS_192000; in xonar_set_hdmi_params()
98 hdmi->params[2] = params_channels(params) / 2 - 1; in xonar_set_hdmi_params()
100 hdmi->params[3] = 0; in xonar_set_hdmi_params()
102 hdmi->params[3] = 0xc0; in xonar_set_hdmi_params()
103 hdmi->params[4] = 1; /* ? */ in xonar_set_hdmi_params()
104 hdmi_write_command(chip, 0x54, 5, hdmi->params); in xonar_set_hdmi_params()
109 if (chip->uart_input_count >= 2 && in xonar_hdmi_uart_input()
110 chip->uart_input[chip->uart_input_count - 2] == 'O' && in xonar_hdmi_uart_input()
111 chip->uart_input[chip->uart_input_count - 1] == 'K') { in xonar_hdmi_uart_input()
112 dev_dbg(chip->card->dev, "message from HDMI chip received:\n"); in xonar_hdmi_uart_input()
114 chip->uart_input, chip->uart_input_count); in xonar_hdmi_uart_input()
115 chip->uart_input_count = 0; in xonar_hdmi_uart_input()