snd_ps3.c (5b6e996a6218eb91b8b44c3821b3ae109e9aca52) snd_ps3.c (c031b0cc77a1bef980eb360e317a6bbd54211326)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Audio support for PS3
4 * Copyright (C) 2007 Sony Computer Entertainment Inc.
5 * All rights reserved.
6 * Copyright 2006, 2007 Sony Corporation
7 */
8

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

710{
711 if (memcmp(ps3av_mode_cs_info, ucontrol->value.iec958.status, 8)) {
712 memcpy(ps3av_mode_cs_info, ucontrol->value.iec958.status, 8);
713 return 1;
714 }
715 return 0;
716}
717
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Audio support for PS3
4 * Copyright (C) 2007 Sony Computer Entertainment Inc.
5 * All rights reserved.
6 * Copyright 2006, 2007 Sony Corporation
7 */
8

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

710{
711 if (memcmp(ps3av_mode_cs_info, ucontrol->value.iec958.status, 8)) {
712 memcpy(ps3av_mode_cs_info, ucontrol->value.iec958.status, 8);
713 return 1;
714 }
715 return 0;
716}
717
718static struct snd_kcontrol_new spdif_ctls[] = {
718static const struct snd_kcontrol_new spdif_ctls[] = {
719 {
720 .access = SNDRV_CTL_ELEM_ACCESS_READ,
721 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
722 .name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, CON_MASK),
723 .info = snd_ps3_spdif_mask_info,
724 .get = snd_ps3_spdif_cmask_get,
725 },
726 {

--- 398 unchanged lines hidden ---
719 {
720 .access = SNDRV_CTL_ELEM_ACCESS_READ,
721 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
722 .name = SNDRV_CTL_NAME_IEC958("", PLAYBACK, CON_MASK),
723 .info = snd_ps3_spdif_mask_info,
724 .get = snd_ps3_spdif_cmask_get,
725 },
726 {

--- 398 unchanged lines hidden ---