"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "sound/usb/proc.c" between
linux-3.16.62.tar.xz and linux-3.16.63.tar.xz

About: The full source of the Linux kernel 3.16.x (longterm stable)

proc.c  (linux-3.16.62.tar.xz):proc.c  (linux-3.16.63.tar.xz)
skipping to change at line 49 skipping to change at line 49
{ {
return (usb_rate * 125 + (1 << 9)) >> 10; return (usb_rate * 125 + (1 << 9)) >> 10;
} }
/* /*
* common proc files to show the usb device info * common proc files to show the usb device info
*/ */
static void proc_audio_usbbus_read(struct snd_info_entry *entry, struct snd_info _buffer *buffer) static void proc_audio_usbbus_read(struct snd_info_entry *entry, struct snd_info _buffer *buffer)
{ {
struct snd_usb_audio *chip = entry->private_data; struct snd_usb_audio *chip = entry->private_data;
if (!chip->shutdown) if (!atomic_read(&chip->shutdown))
snd_iprintf(buffer, "%03d/%03d\n", chip->dev->bus->busnum, chip-> dev->devnum); snd_iprintf(buffer, "%03d/%03d\n", chip->dev->bus->busnum, chip-> dev->devnum);
} }
static void proc_audio_usbid_read(struct snd_info_entry *entry, struct snd_info_ buffer *buffer) static void proc_audio_usbid_read(struct snd_info_entry *entry, struct snd_info_ buffer *buffer)
{ {
struct snd_usb_audio *chip = entry->private_data; struct snd_usb_audio *chip = entry->private_data;
if (!chip->shutdown) if (!atomic_read(&chip->shutdown))
snd_iprintf(buffer, "%04x:%04x\n", snd_iprintf(buffer, "%04x:%04x\n",
USB_ID_VENDOR(chip->usb_id), USB_ID_VENDOR(chip->usb_id),
USB_ID_PRODUCT(chip->usb_id)); USB_ID_PRODUCT(chip->usb_id));
} }
void snd_usb_audio_create_proc(struct snd_usb_audio *chip) void snd_usb_audio_create_proc(struct snd_usb_audio *chip)
{ {
struct snd_info_entry *entry; struct snd_info_entry *entry;
if (!snd_card_proc_new(chip->card, "usbbus", &entry)) if (!snd_card_proc_new(chip->card, "usbbus", &entry))
snd_info_set_text_ops(entry, chip, proc_audio_usbbus_read); snd_info_set_text_ops(entry, chip, proc_audio_usbbus_read);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)