Lines Matching refs:params
30 unsigned int count, const u8 *params) in hdmi_write_command() argument
40 oxygen_write_uart(chip, params[i]); in hdmi_write_command()
43 checksum += params[i]; in hdmi_write_command()
57 hdmi_write_command(chip, 0x54, 5, hdmi->params); in xonar_hdmi_init_commands()
62 hdmi->params[1] = IEC958_AES3_CON_FS_48000; in xonar_hdmi_init()
63 hdmi->params[4] = 1; in xonar_hdmi_init()
92 struct snd_pcm_hw_params *params) in xonar_set_hdmi_params() argument
94 hdmi->params[0] = 0; /* 1 = non-audio */ in xonar_set_hdmi_params()
95 switch (params_rate(params)) { in xonar_set_hdmi_params()
97 hdmi->params[1] = IEC958_AES3_CON_FS_44100; in xonar_set_hdmi_params()
100 hdmi->params[1] = IEC958_AES3_CON_FS_48000; in xonar_set_hdmi_params()
103 hdmi->params[1] = IEC958_AES3_CON_FS_96000; in xonar_set_hdmi_params()
106 hdmi->params[1] = IEC958_AES3_CON_FS_192000; in xonar_set_hdmi_params()
109 hdmi->params[2] = params_channels(params) / 2 - 1; in xonar_set_hdmi_params()
110 if (params_format(params) == SNDRV_PCM_FORMAT_S16_LE) in xonar_set_hdmi_params()
111 hdmi->params[3] = 0; in xonar_set_hdmi_params()
113 hdmi->params[3] = 0xc0; in xonar_set_hdmi_params()
114 hdmi->params[4] = 1; /* ? */ in xonar_set_hdmi_params()
115 hdmi_write_command(chip, 0x54, 5, hdmi->params); in xonar_set_hdmi_params()