hdsp.c (67ed4161f60d76b3b27efc085b36357a6a90768c) hdsp.c (5549d54992391d81a8cbfbaac45a958876fbc9cb)
1/*
2 * ALSA driver for RME Hammerfall DSP audio interface(s)
3 *
4 * Copyright (c) 2002 Paul Davis
5 * Marcus Andersson
6 * Thomas Charbonnel
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 3090 unchanged lines hidden (view full) ---

3099HDSP_DA_GAIN("DA Gain", 0),
3100HDSP_AD_GAIN("AD Gain", 0),
3101HDSP_PHONE_GAIN("Phones Gain", 0),
3102HDSP_XLR_BREAKOUT_CABLE("XLR Breakout Cable", 0)
3103};
3104
3105static snd_kcontrol_new_t snd_hdsp_controls[] = {
3106{
1/*
2 * ALSA driver for RME Hammerfall DSP audio interface(s)
3 *
4 * Copyright (c) 2002 Paul Davis
5 * Marcus Andersson
6 * Thomas Charbonnel
7 *
8 * This program is free software; you can redistribute it and/or modify

--- 3090 unchanged lines hidden (view full) ---

3099HDSP_DA_GAIN("DA Gain", 0),
3100HDSP_AD_GAIN("AD Gain", 0),
3101HDSP_PHONE_GAIN("Phones Gain", 0),
3102HDSP_XLR_BREAKOUT_CABLE("XLR Breakout Cable", 0)
3103};
3104
3105static snd_kcontrol_new_t snd_hdsp_controls[] = {
3106{
3107 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
3107 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
3108 .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT),
3109 .info = snd_hdsp_control_spdif_info,
3110 .get = snd_hdsp_control_spdif_get,
3111 .put = snd_hdsp_control_spdif_put,
3112},
3113{
3114 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE,
3108 .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,DEFAULT),
3109 .info = snd_hdsp_control_spdif_info,
3110 .get = snd_hdsp_control_spdif_get,
3111 .put = snd_hdsp_control_spdif_put,
3112},
3113{
3114 .access = SNDRV_CTL_ELEM_ACCESS_READWRITE | SNDRV_CTL_ELEM_ACCESS_INACTIVE,
3115 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
3115 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
3116 .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,PCM_STREAM),
3117 .info = snd_hdsp_control_spdif_stream_info,
3118 .get = snd_hdsp_control_spdif_stream_get,
3119 .put = snd_hdsp_control_spdif_stream_put,
3120},
3121{
3122 .access = SNDRV_CTL_ELEM_ACCESS_READ,
3116 .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,PCM_STREAM),
3117 .info = snd_hdsp_control_spdif_stream_info,
3118 .get = snd_hdsp_control_spdif_stream_get,
3119 .put = snd_hdsp_control_spdif_stream_put,
3120},
3121{
3122 .access = SNDRV_CTL_ELEM_ACCESS_READ,
3123 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
3123 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
3124 .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,CON_MASK),
3125 .info = snd_hdsp_control_spdif_mask_info,
3126 .get = snd_hdsp_control_spdif_mask_get,
3127 .private_value = IEC958_AES0_NONAUDIO |
3128 IEC958_AES0_PROFESSIONAL |
3129 IEC958_AES0_CON_EMPHASIS,
3130},
3131{
3132 .access = SNDRV_CTL_ELEM_ACCESS_READ,
3124 .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,CON_MASK),
3125 .info = snd_hdsp_control_spdif_mask_info,
3126 .get = snd_hdsp_control_spdif_mask_get,
3127 .private_value = IEC958_AES0_NONAUDIO |
3128 IEC958_AES0_PROFESSIONAL |
3129 IEC958_AES0_CON_EMPHASIS,
3130},
3131{
3132 .access = SNDRV_CTL_ELEM_ACCESS_READ,
3133 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
3133 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
3134 .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,PRO_MASK),
3135 .info = snd_hdsp_control_spdif_mask_info,
3136 .get = snd_hdsp_control_spdif_mask_get,
3137 .private_value = IEC958_AES0_NONAUDIO |
3138 IEC958_AES0_PROFESSIONAL |
3139 IEC958_AES0_PRO_EMPHASIS,
3140},
3141HDSP_MIXER("Mixer", 0),

--- 2100 unchanged lines hidden ---
3134 .name = SNDRV_CTL_NAME_IEC958("",PLAYBACK,PRO_MASK),
3135 .info = snd_hdsp_control_spdif_mask_info,
3136 .get = snd_hdsp_control_spdif_mask_get,
3137 .private_value = IEC958_AES0_NONAUDIO |
3138 IEC958_AES0_PROFESSIONAL |
3139 IEC958_AES0_PRO_EMPHASIS,
3140},
3141HDSP_MIXER("Mixer", 0),

--- 2100 unchanged lines hidden ---